DETERMINISTIC · CITED · DRIFT-AWARE
Docs your team reads.
Context your agents can cite.
doc-bridge indexes your repository's docs, hands agents answers with path:line citations over CLI and MCP, and flags the doc the moment the code moves away from it.
$ ak-docs ask "How do I send a notification?"
Best match: knowledge sending-notifications (docs/guides/sending-notifications.md)
Matches:
[knowledge] sending-notifications score=14.164204999999997
docs/guides/sending-notifications.md
To send a notification, call `send` from `@demo/notify`. The function lives in [`packages/notify/src
npm install -D @agentskit/doc-bridgeHOW IT WORKS
Loose docs in.
Cited context out.


- Fumadocs
- Docusaurus
- Markdown
- Claude Code
- Codex
- Cursor
- GitHub Actions
- MCP
CITED ANSWERS
Ask the repository.
Get the line.
Agents query the same docs your team reads, from the terminal or over MCP. Every answer names the file and line it came from, so you can check it in one click.
88.3%hit@3 on the retrieval benchmark
$ ak-docs ask "How do I send a notification?"
Question: How do I send a notification?
Best match: knowledge sending-notifications (docs/guides/sending-notifications.md)
Matches:
[knowledge] sending-notifications score=14.164204999999997
docs/guides/sending-notifications.md
To send a notification, call `send` from `@demo/notify`. The function lives in [`packages/notify/src
[knowledge] getting-started score=12.448117499999997
docs/guides/getting-started.md
`@demo/notify` is a tiny notification library. It exposes one function, `send`, implemented in [`pac
[knowledge] testing score=12.4036125
docs/guides/testing.md
Because `send` only records messages, tests can assert on the outbox instead of mocking a transport.
Next commands:
ak-docs search "How do I send a notification?" --agent
ak-docs list knowledge --text
AGENT ANSWER
await send({
to: "ana@example.com",
text: "Your order has shipped",
channel: "email",
});`channel`: one of "email", "sms", or "push" · cited docs/guides/sending-notifications.md:8
DRIFT FINDINGS
Change the code.
See which doc is wrong.
doc-bridge records what each doc references. When the code behind a reference changes, you get a finding that points at the exact line, before an agent repeats it.
packages/notify/src/send.ts
export async function send(to: string, text: string): Promise<SendResult> {The guides teach this signature.
docs/guides/sending-notifications.md
To send a notification, call `send` from `@demo/notify`. The function lives in[`packages/notify/src/send.ts`](../../packages/notify/src/send.ts).```tsimport { send } from "@demo/notify";await send("ana@example.com", "Your order has shipped");````send(to, text)` takes two arguments:OPT-IN GATE
Block publication
until it is fixed.
Turn the gate on and stale docs stop at the door: the index and llms.txt are not rewritten until the cited documentation is fixed. Leave it off and findings stay advisory.
doc-bridge.config.json
1{2 "schemaVersion": 1,3 "corpus": { "agent": { "root": "docs/guides" } },4 "gates": {5 "preset": "minimal",6 "include": ["reference-findings"],7 "referenceFindings": { "base": ".demo/base-snapshot.json" }8 }9}
CI · ak-docs index
Failed · publication blocked
$ ak-docs index
Publication blocked: 3 pending reference finding(s) since base 90525d40ad0d1c43117f9735a919761a6528fcc6.
CHANGED_REFERENCE docs/guides/testing.md:8 → send
CHANGED_REFERENCE docs/guides/sending-notifications.md:8 → send
CHANGED_REFERENCE docs/guides/getting-started.md:9 → send
Fix the cited documentation, or publish anyway with ak-docs index --allow-pending-findings.
Nothing was written: the index and llms.txt stay as they were.
SURFACES
One index.
Every surface.
LAYER 0
Deterministic indexNo model, no API key. Same docs, same index, every run.Agent notes come back as a reviewable docs draft, never a silent edit.
MEASURED
Real numbers.
Limits attached.
- 01
88.3%
hit@3 on retrieval
retrieval-baseline-v1
- 02
100%
precision on native reference findings
15 TP · 0 FP · Layer-1 bench
- 03
83.3%
precision on historical changed references
10 TP · 2 FP · Layer-1 bench
- 04
0.83 vs 0.61
mean correctness, with doc-bridge vs repository only
12 vs 4 fully correct · 18/18 used the tools
- 05
0
API keys for indexing, search, gates and MCP
Layer 0 is deterministic
The Layer-1 benchmark uses purposive controls, not general semantic accuracy. The agent study is minimal: 6 tasks, 3 public repos, claude-haiku-5-5, and 18 attempts per scenario per run. An agent adjudicated answers without human review; the repository-only arm moved by about 0.1 between runs. In the run where the model never called doc-bridge tools, there was no gain (0.61 vs 0.72).
Read the studyGive your agents the line.
Catch the doc before they read it.
The AgentsKit ecosystem
Build the agent. Then take it all the way.
One connected toolkit from ready-made source to governed production.