Search

ProofGit indexes both your source code and its .llm summaries. This page is deliberately specific about which parts are on by default, because the honest answer is more useful to you than a confident one.

Lexical search over summaries

Exact and fuzzy text search across .llm summaries. Available on every BNLRepo, always.

Results are ranked by a trust ladder that reflects how much a summary should be believed:

TierMeaning
verified_currentHighest — the summary matches the current source blob.
code_only_currentSource matched; there is no current summary.
legacy_unverifiedImported before ProofGit; provenance unverified.
verified_staleSummary matched, but the source has since changed.
unavailableExcluded by default.

Stale and unverified results are down-ranked and excluded by default. Pass include_stale or include_unverified to opt back in — the point being that you have to ask for the untrustworthy material on purpose.

A summary being regenerated stays available. While a file's summary is regenerated for the same source — queued, running, or after an attempt that failed — the summary already written still matches that source. Hybrid and documentation search keep serving it as verified_current, with the trust reason refresh_pending or refresh_failed_previous_summary_served, and code search reports its freshness as current. Once the source itself has changed, the summary is verified_stale: excluded by default, and counted in the response's excluded_stale.

One hit per statement. Hybrid and documentation search return each summary statement once, even when it cites several places in the file: the hit carries the lines of its first span and lists the others in other_spans. Hybrid search also caps the hits from any one file, so one long file cannot fill the whole answer. The hosted service returns one hit per file; omitted_by_file_cap counts what was left out.

Exact search over your real source files, backed by git grep. Use it when you already know the symbol or string you want. Exposed to agents as the search_bnlgit_code tool, on both the repository and the fleet MCP endpoints: on the fleet endpoint it searches every repository you can read, or the repos you name, with at most 10 hits per repository.

Asking by name

You do not have to choose between a question and an exact search. When a hybrid search question mentions a name, it is also looked up in the source with git grep, and those exact code hits are ranked together with the summary hits. A name is camelCase, PascalCase with an inner capital (ApplyCoupon), snake_case, SCREAMING_CASE, Class::method, pkg.Func or a file name with an extension, of at least 4 characters; at most 5 names are taken from one question. A question without one runs no grep.

So a function in a large file whose short summary never names it is still found. Each name is looked up first by how it is defined (in PHP, Go, JavaScript and TypeScript, Python, shell and SQL) and then by every use, so among these exact hits the definition ranks above the ones that only use or mention the name, and a document that only mentions it ranks lower. Summary hits are ranked as usual around them. These hits carry match_source: "name_lane", the file's summary evidence and trust like any other hit, and name_lane_definition: true where the hit is the definition. At most 6 come from one repository and 24 from one fleet search, and files your scope excludes are never returned.

Vector retrieval — read this before relying on it

ProofGit's retrieval pipeline supports vector-ranked semantic search over .llm summary chunks, returning both the matched summary excerpt and the exact backing source lines. It is built, it is tested, and it is what the search_bnlgit_hybrid tool uses.

It requires an embedding model to be configured on the repository pair, and it is not configured by default.

The managed option needs no connection of your own. In the repository's cockpit, under Vector search, choose ProofGit managed (no BYOK spend). The service then embeds the repository's summary text (its statements and typed facts, never source code) itself, on our infrastructure, in the model it embeds questions in, so your provider is not billed for it. The summaries the repository already has are indexed in the background when you switch.

Or use your own embedding connection. The service embeds every question itself, in nomic-embed-text, so a repository's own embedding model must be exactly that model, offered under that name by a connection the service can reach: in practice your own LiteLLM or OpenAI-compatible endpoint (an Ollama server, for example); the usual summary providers do not offer it under that name. With your own connection, summaries written before you switch it on are indexed only by an operator run of summaries backfill-embeddings. Either way, every repository also gets lexical search and the name lookup.

When a repository has no embedding model set, has no indexed chunks for the ref being searched, or the embedding call fails, the query does not error and does not return nothing — it falls back wholesale to the lexical summary search described above, and reports that it has done so in its response mode. Your agent gets a real answer either way; it is simply a lexically-ranked one.

How a vector-ready repository ranks a question

Where a repository is ready for vector search, the hosted service ranks a question three ways and combines them:

  • By meaning. The question is embedded and compared with the statements in the repository's indexed summaries, and with their typed facts (a symbol's role, a database entity, a side effect, a security concern) as items of their own. A fact's similarity is lowered by a small margin first, and one file keeps at most two vector candidates, statements and facts together, so facts cannot crowd other files out.
  • By words. Every file is also ranked by BM25 over its summary text (its statements and its facts), and the two rankings are fused by reciprocal rank fusion: a file scores 1/(60 + its vector rank) + 0.75/(60 + its keyword rank). A file the words found but the vector search did not is re-verified against its summary like any other hit.
  • By name. Names in the question are looked up in the source, as described under Asking by name.

Each hit says how it was found in match_source: fact for a fact, keyword for a file the word ranking added, name_lane for an exact code hit, and no match_source for a statement found by meaning. Within a repository, hits follow the fused order; their scores stay on the repository's own vector scale. The trust and freshness rules, your scope, the cap per file and the token budget apply to every hit in the same way, and responses list keyword_lane, fact_chunks and name_lane in features while those settings are on, whether or not a given call used them.

Further specifics worth knowing:

  • A repository without vectors falls back; it is not blended. A repository with no embedding model, or no indexed chunks for the ref, is searched lexically on its own, plus the name lookup above. In a fleet query spanning several repositories, each repository is searched in whichever way it can be. If reranking ran, hits are then ordered by the reranker's relevance, whichever repository they came from; if it did not (it is off on the hosted service), the repositories take turns in the results, each in its own ranked order, so a repository that fell back to lexical search is not crowded out by vector-ranked ones.
  • Check readiness before relying on it. On the fleet server, list_bnlgit_repos reports vector_ready and a vector_status for every repository: ready; no_model (no embedding model is configured); model_not_served (the service cannot embed queries in the repository's model, so no query could use its vectors); or no_chunks (nothing is indexed yet for the branch a search uses by default). The older vector_enabled means the same as vector_ready, and the fleet dashboard counts repositories the same way.
  • An embedding model is checked when you save it. One probe call, through the repository's embedding connection, checks that the model returns vectors the service can search; a model that does not (for example one with the wrong number of dimensions) is refused, and the pairing is left unchanged.
  • No spend on vectors no query can use. While the service cannot embed queries in a repository's model, new summaries are not indexed in that model. Chunks indexed earlier are kept.
  • Existing summaries need backfilling. Chunks are indexed as summaries are generated. If you turn on vector retrieval for a repository that already has summaries, or the service starts serving a model it could not before, run bnlgit summaries backfill-embeddings to index what is already there.
Why we are telling you this

"Hybrid semantic search" is the sort of phrase that sells a product and then disappoints a user in week two. If semantic retrieval over your codebase is the reason you are considering ProofGit, mail hello@proofgit.com before you subscribe and we will tell you plainly where it stands for your situation.

About the index itself

Chunk vectors are stored as raw float arrays and nearest-neighbour search is a brute-force scan over them, per repository. An indexed database-side vector path exists in the codebase but is deliberately not wired up: it supports only one fixed dimension, and per-repository brute force is fast enough at the scale ProofGit actually runs at — fleet search ranks each repository independently rather than pooling every chunk into one giant query.

We mention this because it is the sort of thing that gets claimed as a performance feature. It is not one, we make no performance claims about it, and if your fleet ever outgrows it, that is a real engineering conversation rather than a config flag.

/-/bnlgit/search searches across every BNLRepo you can see in one query instead of one repository at a time — subject to exactly the same lexical and vector behaviour described above, per repository.

Reranking

Off by default, and off on the hosted service.

An optional cross-encoder reranking pass re-scores a candidate pool for relevance before results are returned, and the final ordering combines relevance with the trust tier. It is enabled per instance from Site Admin → Config, without a restart, and stays off until an operator switches it on. The fused ranking setting (fused_ranking in features) blends the reranker's score with vector similarity, so it changes nothing while reranking is off.

The candidate pool is capped, so reranking refines an already-retrieved set rather than widening it. When a fleet pool is larger than the reranker's window, the window is shared fairly between the repositories, and hits the reranker did not score rank after the ones it did.

Every hybrid response says what happened in rerank_status: applied, disabled (reranking is off), skipped (nothing to rerank: a single candidate or an empty query) or failed (the call errored, was shed or timed out), with rerank_applied beside it. A hit the reranker scored carries relevance_score: its raw relevance from 0 to 1, before any trust weighting.

An optional relevance floor. A request may set min_relevance, from 0 to 1, to drop hits whose relevance is below it, and hits the reranker did not score, which have none; excluded_low_relevance counts what was dropped. The floor applies only when reranking ran: otherwise nothing is dropped and a note says why. The service's own default floor is 0, so nothing is filtered unless a request asks.

Secrets in responses

Before a search, topology or overview response reaches your agent, recognised secrets in it are replaced with [redacted]: private keys (the whole PEM block), Stripe, Anthropic, OpenRouter and OpenAI-style API keys, GitHub tokens, bearer tokens, database connection strings that carry a password, and assignments such as password= or api_key= with a literal value of 16 characters or more. A value that only refers to a secret kept elsewhere (vault_key:, secret_ref: or env:) is left as it is. Search hits list what was replaced in redactions (for example L12:stripe_secret), never the value, and no line is added or removed, so line numbers still match the file.

This recognises those named shapes only. It does not guess at random-looking strings, so a credential in any other format passes through. It is a safety net, not a way to keep secrets out of a repository: exclude secret files with the repo scope, whose secrets_material preset covers the usual ones.

Where privacy comes in

When vector retrieval is enabled, the query is embedded using the instance's own server-side key — never your BYOK key. Your key is spent at index time, on your own repository, and nowhere else. This is deliberate: without it, one busy reader could fan embedding spend across every tenant whose repositories they can see.

Something here wrong or missing? Mail hello@proofgit.com — these pages are the single public source of truth for ProofGit and we would rather fix them than leave you guessing.