Skip to content
bos-8Public

About

Human-readable, agent-routable documentation trees for repositories

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

RepoRoute

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 / After

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.

What You Get

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

Core Idea

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.

How It Works

  1. Keep durable repository knowledge under ./docs.
  2. Start every routed docs tree with ./docs/0000-overview.md.
  3. Use AA00-*.md files as domain routers.
  4. Use AABB-*.md files as concrete docs inside a domain.
  5. 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

Expected Impact

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.

Skill

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

Repository Layout

RepoRoute/
|-- docs/
|-- hooks/
|-- skills/
|   `-- scribe/
|-- scripts/
|-- README.md
`-- LICENSE

Preflight

Run a cheap read-only structure check before broad repository work:

powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\reporoute-preflight.ps1
sh ./scripts/reporoute-preflight.sh

Preflight prints RepoRoute: OK, PARTIAL, INVALID, or MISSING_DOCS. It does not start an LLM or subagent.

Watch

Use watch mode when you want Scribe to stay documentation-aware during a chat:

powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\reporoute-watch.ps1
sh ./scripts/reporoute-watch.sh

Watch mode is session guidance, not a daemon. It does not edit files or start scout subagents automatically.

Tests

Run fixture tests to verify that valid docs pass and broken docs fail:

powershell -NoProfile -ExecutionPolicy Bypass -File .\tests\test-fixtures.ps1
sh ./tests/test-fixtures.sh

License

Apache-2.0. RepoRoute is open source and can be used in commercial and enterprise environments.

About

Human-readable, agent-routable documentation trees for repositories

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages