All posts
Product6 min read

The retrieval layer agents are missing

Every agent you run rediscovers your context from scratch, every session. We think the fix is not a bigger window — it is a search engine your agents can call.

Before the internet, finding something meant walking into a library. The information was all there, indexed and shelved, and it was still slow — because without a librarian you were guessing which shelf to start on. The catalogue was the product, not the books.

Agents are back in that library. Your team's decisions, runbooks, conventions, and hard-won corrections exist. They are in a repo, a wiki, a folder of markdown, a year of session logs. And every agent you start begins by guessing which shelf to walk to — grepping, opening files, reading whole documents to find two paragraphs, burning context on the search itself before it does any of the work you asked for.

The failure is not memory. It is retrieval.

The industry reached for context windows first, and that helped: more room means fewer hard cutoffs. But a bigger window does not tell an agent which of your four hundred documents is the current one. It just means the agent can be wrong about more things at once. Stuffing a corpus into a prompt is not knowledge — it is the library floor with the shelves knocked over.

The missing piece is unglamorous: a retrieval layer that takes a question and returns the specific passages that answer it, with a path you can cite and a ranking you can inspect. Not a memory that summarizes your team into a paragraph. Not a vector database you have to operate. A search engine, addressed as a tool.

How it works

Point remember at markdown — a folder on your laptop, a GitHub repository, an export from your notes app. It parses each document, splits it on section boundaries rather than arbitrary character counts, embeds the chunks, and indexes them twice: once lexically, once as vectors.

A query runs both retrievers at once and fuses their rankings, so a page can surface because it uses your exact error string or because it means the same thing in different words. Signals adjust from there — a term in a heading counts more than the same term buried in prose, a document that declares itself superseded gets pushed below the one that replaced it — and one chunk per document comes back so five results are five sources, not five slices of the same page.

GET /v1/search?q=secret+rotation+cadence+Vault&k=10

{ "results": [
    { "path": "engineering/runbooks/secret-rotation.md",
      "chunk_id": "engineering/runbooks/secret-rotation.md#4",
      "snippet": "Rotate the Vault AppRole secret every 30 days...",
      "frontmatter": { "status": "current", "date": "2026-06-02" },
      "retrievers": ["lexical", "vector"], "score": 0.0417 } ],
  "query_ms": 14 }
One call, from any agent that can hit an HTTP endpoint.

That is the whole contract. Every result carries the path it came from, the frontmatter you wrote, and which retriever found it. Nothing is summarized on the way out, because the caller — a person or an agent — should be the one deciding what the evidence means.

What people are actually using it for

  • Coding agents that look up your conventions before generating. The endpoint an agent scaffolds uses your auth middleware and your error shapes because it retrieved the standard first, instead of averaging over every repo on GitHub.
  • On-call work. The incident starts, the agent pulls the rollback runbook and the database-specific caveat, and cites both — rather than reconstructing a procedure from plausible-sounding memory.
  • Session continuity. A long working session gets filed as a document; tomorrow's agent retrieves it instead of asking you to re-explain the decision you already made.
  • Asynchronous handoff between people. The knowledge one person's agent wrote down is queryable by everybody else's, which turns out to be the thing that removes the late-night ping.
  • Answering with an audit trail. When an answer is wrong, you can see exactly which document produced it and fix the document.

Why we think this becomes infrastructure

Two things are true at once right now: teams are running more agents every month, and nobody has a good answer for how those agents share what the team knows. Each agent has its own scratch memory, its own instructions file, its own drift. The knowledge is duplicated, then contradictory, then untrusted.

A shared retrieval layer collapses that. One index, many callers, the same ranked evidence to a human in a browser and to an agent holding an API key. And because it is search rather than a model, it stays cheap and fast enough to call constantly: a query is tens of milliseconds and no tokens at all, so retrieving before generating stops being a cost decision.

Model subscriptions come and go. Your team's operating context should not be a thing you re-teach every time the tooling changes.

That is also why there is an MIT-licensed engine at all, and why the paid tiers run your index inside a Postgres you own. A retrieval layer only becomes infrastructure if leaving is possible. The open-source engine is a working search engine you can read, fork, and run air-gapped with nothing leaving your machine; the hosted tiers run our pro engine, and what you keep when you walk away from those is the index, in your own database.

We are early, and we would rather be measured than believed: the next post is what happened when we spent a week trying to break our own ranker on twenty thousand documents.