Documentation that knows what it knows.
AgentDoc is a compiler for organizational knowledge. Write readable source files. Get typed, evidence-backed objects with lifecycle, ownership, retrieval, review, and patch workflows — for humans and the agents acting on their behalf.
$cargo install --path crates/adoc-cli --locked- status
- verified
- owner
- @platform-billing
- scope
- graph v4
- evidence
- source_code · test
- verified
- 2026-05-02 · expires 2120
Markdown says things.
It does not know them.
A paragraph cannot tell you who wrote it, when it was last verified, what evidence it stands on, or whether an agent is allowed to act on it. AgentDoc encodes all of that — without taking the readability away.
Credits are deducted after generation completes.
- Is it still true?
- Who wrote it, who owns it?
- What evidence supports it?
- Which code paths or sources does it cite?
- Was it verified by tests, code, or just a meeting?
- Can an agent retrieve it without scraping prose?
“Credits are decremented after generation completes successfully.”
- Verified · expires_at checked
- Owned by @platform-billing
- Typed evidence and source refs
- Impacts: credits/consume.use-case.ts
- Retrieved by Object ID
- Patch proposals checked before apply
Fourteen shipped kinds.
One graph.
The current compiler supports the V0 core set, the V5 expanded model, and V6.5 api, observation, and question objects. Task is still the remaining vocabulary slice.
Agents do not follow prose.
They follow objects with owners,
evidence, and a lifecycle.
— AgentDoc thesis · local-first
Wherever you write,
wherever you ask.
The shipped product is local-first: a Rust CLI, compiled JSON artifacts, and an MCP gateway. Hosted web, editor LSP, and governance workflows remain later roadmap items.
A compiler that fails loudly.
adoc check and adoc build validate AgentDoc Source and Markdown compatibility input, then emit source-located diagnostics with stable codes and fix-oriented help.
- Strict diagnostics for malformed blocks, unsafe links, broken references, and invalid object metadata
- Lifecycle warnings for expired objects, overdue policy review, contradicted claims, and low evidence quality
- Output as
docs.html,docs.graph.json, and optionaldocs.search.json - Config-backed defaults with local, deterministic, or disabled embeddings
“Consumes one or more credits for a completed generation job, with schema evidence required.”
Graph and search artifacts,
not scraped prose.
The graph artifact is the canonical local read model. Retrieval commands load it directly, with an optional search sidecar for local lexical, semantic, and hybrid search.
- adoc why and adoc graph over compiled Knowledge Object IDs
- adoc search with lexical, semantic, hybrid, and relation-filtered modes
- adoc stale and adoc contradictions re-derive lifecycle signals from the artifact
- adoc impacted-by maps changed files to knowledge that needs review
Agents ask through
versioned tools.
The local MCP gateway exposes CLI-equivalent tools, guidance resources, workflow prompts, and contract-tested schemas so agents do not guess file paths or artifact internals.
- adoc_project_status before retrieval or patch validation
- adoc_diff and adoc_review for team review workflows
- adoc_patch_check for typed proposals with proof obligations
- adoc_patch_apply is registered but config-gated for explicit opt-in
What a knowledge graph
does for you.
Beyond compilation: retrieval, lifecycle-signal reads, object diff/review, MCP tools, and gated source patching all build on the same local artifacts.
.adoc is plaintext.Boring infrastructure,
shipped quietly.
The local CLI, retrieval, MCP, review, Markdown compatibility, expanded model, lifecycle reads, and gated patch apply are already implemented. The current cycle finishes vocabulary, prose retrieval, docs-truth guards, and pilot readiness.
- adoc init / check / build
- why / graph / search
- docs.graph.json + docs.search.json
- diff / review
- stale / contradictions / impacted-by
- patch --check / --apply
- api
- observation
- question
- task next
- adoc.retrieval.v1
- adoc.search.v1
- objects-only / prose-only
- web surfaces
- governance
- composition and migration
Write what you believe.
Compile what you know.
The pre-release Rust CLI is open source today. Run it on .adoc or compatible .md docs, then inspect the graph, search, review, and MCP surfaces locally.