Repo Intelligence 

Ask a codebase how it works. Every claim cites the line it came from.

Open ri.pseo.cloud(opens in a new tab)Private repository; walkthrough on request
Status
Live; this host is not checked from the browser
Access
Overview + sign-in
Runs on
My server, through a Cloudflare tunnel
Year
2026
Area
AI, Tools
Repo Intelligence, screenshot of the live app

Point Repo Intelligence at a TypeScript or JavaScript repository and ask something like “explain authentication”. It answers with the files involved, the request flow, the tables and the config, and every claim carries a path:line citation that is re-read from disk before you see it.

retrieval F1, against 0.274 for grep
0.393
dropped claims and the whole answer is refused
30%
to clone and parse 2,000 files
~12 s
automated test cases
405

Why it exists

Chatting with an LLM about a repository works for questions about one file and fails for questions about a concern. Authentication, for example, is spread across middleware, routes, models, config and utilities, and a chat window only ever sees part of it.

When you're new to a codebase, an answer you have to fact-check yourself is worth less than no answer. So the feature is verifiability, not fluency: every statement points at the exact lines that support it, and the system checks those lines before you read them.

How it works

  1. 1

    Add a repository

    Paste a public git URL. It is shallow-cloned and parsed, about 12 seconds for 2,000 files.

  2. 2

    Build the code graph

    tree-sitter extracts symbols, imports, calls, routes and ORM models (TypeORM, Drizzle, Sequelize, Prisma) without any LLM calls.

  3. 3

    Index it

    Code is chunked on symbol boundaries and indexed with BM25, plus optional local embeddings.

  4. 4

    Retrieve

    Hybrid search finds seed files, then expands along the graph and ranks by role, direction and centrality.

  5. 5

    Answer and verify

    An LLM writes claims with path:line citations. A validator re-reads every cited span, drops claims that fail, and refuses the answer if more than 30% fail.

What it does well

Citations that are checked
A citation must resolve and the claim's identifiers must actually appear in the cited span, because a line can exist and still not support the claim.
Structure from the code, not the model
Routes, ORM models, request flow and Mermaid diagrams come from resolved graph edges.
Docs are first-class
Markdown and docs are indexed and citable alongside the code.
Measured, not assumed
An eval harness scores retrieval against hand-labelled questions across 4 repos. No ranking change lands without a before-and-after score.

Decisions I made

WASM tree-sitter over native bindings
Native parses 1.7× faster, but parsing isn't the bottleneck and WASM needs no native build toolchain.
Free providers for synthesis
A quality gate that costs money to run doesn't get run, so synthesis goes through my own AI Router over free tiers.
Local embeddings, not hosted
A hosted free tier was measured slower than the local CPU, and it would have sent source code off the machine.
Every ranking change is scored
Changes must move the eval score in the same direction on both labelled strata before they land.

What it doesn't do (yet)

  • TypeScript and JavaScript only for now.
  • The evaluation set is small (13 hand-labelled questions), so the graph's extra value is real but not yet stable.
  • The hosted copy accepts public repositories only.