Human-readable, agent-routable documentation trees for repositories.
RepoRoute helps developers and coding agents navigate repositories through maintained documentation routes instead of rediscovering code from scratch.
Before RepoRoute:
Agent scans README, manifests, docs, source folders, tests, and configs to infer context.
After RepoRoute:
Agent reads 0000-overview.md -> AA00 domain router -> AABB concrete doc -> source code.
The goal is not to replace source inspection. The goal is to make source inspection targeted.
| Command | Result |
|---|---|
$scribe help |
Shows the command card |
$scribe watch |
Enables documentation-aware guidance for the current chat |
$scribe scout |
Reads repo context through documentation routes |
$scribe create-taxonomy |
Creates ./docs/0000-overview.md and first useful routers |
$scribe reform |
Migrates old docs into RepoRoute structure |
$scribe validate |
Checks taxonomy, links, Markdown, and Mermaid presence |
$scribe memory |
Writes .ai/* handoff memory, not system truth |
RepoRoute uses numbered Markdown documents as a stable context routing layer:
0000 = root router
AA00 = domain router
AABB = concrete document in domain
9999 = backlog / parking lot
Agents read:
0000 -> AA00 -> AABB -> source code
This keeps documentation useful for humans while giving coding agents a cheap, repeatable path into repo context.
- Keep durable repository knowledge under
./docs. - Start every routed docs tree with
./docs/0000-overview.md. - Use
AA00-*.mdfiles as domain routers. - Use
AABB-*.mdfiles as concrete docs inside a domain. - Let agents read documentation routes before inspecting code.
Example:
0000-overview.md
1000-architecture.md
1001-system-map.md
3000-contracts.md
3001-rest-api.md
Conservative target:
Up to 95% less discovery context.
Up to 70% faster repository discovery.
Estimate formula:
token_savings = 1 - (docs_tree_tokens / full_scan_tokens)
Example medium repo:
1500 files * 700 average tokens = 1,050,000 full scan tokens
Docs tree:
0000-overview.md = 1,500 tokens
3 domain routers = 3,000 tokens
5 concrete docs = 12,500 tokens
Total docs tree = 17,000 tokens
Raw theoretical savings = 98.38%
Public claim = up to 95%
These are estimates, not guarantees. Real savings and speedups depend on repo size, docs quality, and the task.
RepoRoute exposes one main skill: scribe.
Inside scribe, lightweight hidden branches route work to read or write mode.
skills/scribe/
|-- SKILL.md
|-- branches/
| |-- read.md
| `-- write.md
|-- references/
`-- scripts/
Use examples:
$scribe help
$scribe watch
$scribe read context
$scribe scout
$scribe create-taxonomy
$scribe reform
$scribe validate
$scribe memory
RepoRoute/
|-- docs/
|-- hooks/
|-- skills/
| `-- scribe/
|-- scripts/
|-- README.md
`-- LICENSE
Run a cheap read-only structure check before broad repository work:
powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\reporoute-preflight.ps1sh ./scripts/reporoute-preflight.shPreflight prints RepoRoute: OK, PARTIAL, INVALID, or MISSING_DOCS. It does not start an LLM or subagent.
Use watch mode when you want Scribe to stay documentation-aware during a chat:
powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\reporoute-watch.ps1sh ./scripts/reporoute-watch.shWatch mode is session guidance, not a daemon. It does not edit files or start scout subagents automatically.
Run fixture tests to verify that valid docs pass and broken docs fail:
powershell -NoProfile -ExecutionPolicy Bypass -File .\tests\test-fixtures.ps1sh ./tests/test-fixtures.shApache-2.0. RepoRoute is open source and can be used in commercial and enterprise environments.