Extract once, govern centrally, project everywhere for AI coding agents.
Repo Knowledge Plane (RKP) is a local-first CLI and MCP server that turns repo evidence into durable operational knowledge for coding agents. It extracts conventions, validated commands, prerequisites, module boundaries, and guardrails from code, config, CI, docs, and imported instruction files, then projects that knowledge into host-native agent surfaces.
The problem it solves is simple: coding agents are stateless, and teams end up hand-maintaining overlapping files like AGENTS.md, CLAUDE.md, .cursor/rules, and copilot-instructions.md. RKP gives you one governed source of truth instead of a pile of drifting copies.
- Teams using multiple coding agents on the same repository
- Repos that need evidence-backed commands, conventions, and guardrails
- Technical leads who want human review before agent-visible instructions are written
- Local-first workflows where repo knowledge stays on disk and under version control
- Not a hosted SaaS control plane
- Not a generic code search or wiki generator
- Not a replacement for CI, code review, or secrets management
- Not a promise that every agent host has equal feature maturity
repo evidence -> claims -> human governance -> host projections + MCP queries
rkp initindexes the repository and creates.rkp/.rkp reviewapproves, edits, suppresses, or tombstones claims.rkp apply --host ...writes reviewed instruction artifacts.rkp serveexposes the same governed knowledge over MCP.
stdoutis reserved for MCP protocol and machine-readable output; diagnostics go tostderr.- Sensitivity filtering is enforced at output boundaries.
rkp applyonly writes approved or edited claims.- Imported claims do not silently outrank executable config.
- Projection output is deterministic for the same claim set.
- Local-only claims do not get written into checked-in overrides.
- MCP is read-only except for the intentional
refresh_indexwrite path.
| Host | Current output | Status |
|---|---|---|
| Codex | AGENTS.md |
GA-eligible in the quality harness |
| Claude Code | CLAUDE.md, .claude/rules/, .claude/skills/, .claude/settings-snippet.json |
GA-eligible in the quality harness |
| GitHub Copilot | .github/copilot-instructions.md, .github/instructions/*.instructions.md, .github/workflows/copilot-setup-steps.yml, .copilot-tool-allowlist.json |
Beta |
| Cursor | .cursor/rules/ |
Alpha |
| Windsurf | .windsurf/rules/ |
Alpha |
RKP as a product is still alpha. “GA-eligible” here means the adapter passes the current conformance/leakage/drift harness, not that the overall project is production-finished.
pip install repo-knowledge-planeOr with uv:
uv tool install repo-knowledge-planecd your-repo
rkp doctor
rkp init
rkp status
rkp preview --host claude
rkp review --approve-all --threshold 0.95
rkp apply --host claude --yes
rkp serveAlready have instruction files?
rkp init
rkp import
rkp review
rkp apply --host codex --yesrkp init comes first even for import-heavy repos, because it creates the checked-in .rkp/config.yaml and local index layout the rest of the workflow expects.
The cleanest demo is:
rkp doctorrkp initrkp preview --host codexrkp review --approve-all --threshold 0.95rkp apply --host claude --yesrkp serve- Query
get_preflight_contextorget_instruction_previewfrom an MCP client
See docs/demo.md for a scripted walkthrough.
uv pip install ".[dev]"
uv run nox -s lint
uv run nox -s typecheck
uv run nox -s test
uv run nox -s quality
uv run nox -s docs
uv buildThe default nox sessions now include docs, and nox -s ci runs lint, typecheck, tests, quality, and docs.
0.1.0 is a serious alpha/demo release: the architecture is intentional, the claim/governance model is real, and the adapter quality harness is meaningful. What is not done yet is equally important: no hosted control plane, no sandbox verification pipeline, no remote MCP transport story, and no claim that every host surface is equally mature.
- Claim-backed change impact and blast-radius queries
- Better repo overview fidelity from populated evidence tables
- Stronger import round-trip coverage for more host formats
- Streamable HTTP MCP transport once the local stdio path is stable
- Optional sandbox verification for high-value commands
- Getting started
- Demo walkthrough
- Host adapters
- CLI reference
- Configuration
- Development guide
- Testing guide
- Distribution notes
Apache-2.0