Skip to content

Context vs Retrieval

The market is converging on “context engines”: continuously-updated indexes of your codebase, served to any agent so it can find what the code says. That is a real and useful category. It is also a different product from ContextBrew, and the difference is measurable — this page shows the measurement, names the failure modes retrieval cannot catch, and states what we deliberately do not build.

Their engine retrieves what the code says. Our recipe says what the code is for. Context quality is decided at brew time — not at prompt time.

ctxbrew context-bench hands an agent the same authored knowledge four ways and bills each with one estimator (chars/4) — so the ratios, not the absolute counts, are the claim. The methodology travels with every artifact: fixture hash, task query, estimator, and for the pour rows the content-addressed documents themselves (formats context/v1 and context-delta/v1, hashed through the brew ledger).

Serving strategy What it is Tokens (chars/4) Files / Sections
naive-full every authored context file, concatenated 52,954 71 files
naive-relevant keyword-matched files only (the “grep and read” diet) 47,819 46 files
pour the compiled recipe, content-addressed sections 491 6 sections
delta pour the KV-cache tail after one deterministic edit 229 7 sections

Fixture: samples/travel-agency (71 files, corpus hash sha256:e2bfdbd17eca55e7f67344c325d7b0d7b790f43232deb09c45be781355127bb4), task query “booking cancellation refund policy”. Regenerate it yourself:

Terminal window
ctxbrew context-bench --fixture samples/travel-agency

Two honesty notes, because a benchmark that hides its own shape is a vendor claim: (1) naive-relevant is a deterministic keyword proxy — we do not ship an embedding-retrieval baseline, because building one is the product we chose not to be; (2) the pour rows are the exact bytes an agent is served, headers and hashes included — nothing is trimmed to flatter the table.

Retrieval mirrors the code. A mirror cannot be wrong about intent because it holds none — nothing in an index can fail, so no gate can gate it. Three named failure modes, each with the ContextBrew instrument that catches it:

  1. Silent-contract-break. A dependency changed underneath a consumer; the index faithfully reflects the new code and flags nothing. → The SIM propagation engine walks the blast radius, bumps contracts, and checks invariants — the break is an event, not a surprise.
  2. Stale-intent. Why the code looks like this — the decisions, the trade-offs — never lived in the index, so agents keep re-deriving expired rationale. → The decision log and ctxbrew check drift gate score how true the knowledge still is; re-brewing repairs drift from validated canon instead of patching prose.
  3. Unfalsifiable-context. Retrieved context carries no acceptance criteria, so “the agent had good context” is unfalsifiable. → Recipes gate on evals.json suites in CI (ctxbrew gate); a context that can’t be wrong also can’t be proven right — ours has to pass.

No code-index engine, no embedding pipeline over your repo, no per-turn model routing. Indexes are excellent components and there are well-funded teams shipping them; racing them would make us the sixth-best index with none of our differentiators. ContextBrew’s importers are deterministic and LLM-free by design — typed ASTs with file:line evidence, stamped hypothesis until a human promotes them. The moat is falsifiability, not freshness.

If your repo is one clean service driven by one prompt, you don’t need ContextBrew — and you don’t need to pay anyone for context, either. It earns its keep when several agents, several models, and several months pull the same repo in different directions: that’s when context has to be brewed from validated models and gated in CI, not reassembled per session and trusted on vibes.