vouch
AGENTS.md82 starsChanged 7 months agoMITView on GitHub
Entry document for any AI coding agent reading this repository — Cursor, Codex, OpenClaw, Aider, Continue, JetBrains AI, an LLM fetching the raw URL, anything that isn't Claude Code. (Claude Code reads CLAUDE.md instead; the two files complement each other.) If your task is to work on the vouch codebase itself, read this file and then CLAUDE.md. If your task is to use vouch from inside another project, read README.md for install + concepts and docs/getting-started.md for the agent-side loop.
- Pipes a download into a shell
- Reads credentials
- Installs packages
- Commits and pushes
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository4 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- auto-prSkill
- pr-precheckSkill
The file
We split this AGENTS.md into the rules it gives an agent
11 rules. About 1 is common, 2 are distinctive, and 8 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
If your task is to work on the vouch codebase itself, read this file and then CLAUDE.md.
- Very specific: line 14
If you're an OpenClaw plugin loader, the plugin manifest is at the repo root: openclaw.plugin.json.
- Very specific: line 65
Every kb.* write tool goes through the review gate.
- Distinctive: line 80
If you're proposing a fix that bypasses the gate, you're proposing the wrong fix.
- Very specific: line 113
Commit type vocabulary: feat | fix | refactor | test | docs | chore | perf | ci | style | build | revert.
- Very specific: line 120
Every kb method must be registered in four places — the test_capabilities test catches drift:
- Very specific: line 128
Add a test in tests/test_<method>.py that asserts the JSONL envelope shape ({id, ok, result} for success, {id, ok: false, error} for …
- Very specific: line 162
Never paste a real Bearer token, GitHub PAT, or PyPI token into a commit, an issue, or a PR body.
- Common: line 165
Never propose claims with real customer names, internal URLs, or secret identifiers in a public KB.
- Very specific: line 178
No silent CHANGELOG omissions: when you add a user-visible feature — update CHANGELOG.md under [Unreleased] in the same PR.
- Distinctive: line 181
If your task contradicts any rule above, stop and ask before continuing.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agents working with vouch
Entry document for any AI coding agent reading this repository — Cursor, Codex,
OpenClaw, Aider, Continue, JetBrains AI, an LLM fetching the raw URL, anything
that isn't Claude Code. (Claude Code reads CLAUDE.md instead;
the two files complement each other.)
If your task is to work on the vouch codebase itself, read this file and
then CLAUDE.md. If your task is to use vouch from inside another
project, read README.md for install + concepts and
docs/getting-started.md for the agent-side
loop.
If you're an OpenClaw plugin loader, the plugin manifest is at the repo
root: openclaw.plugin.json. It declares vouch's
MCP wiring, the four slash commands, the trust boundary (write tools
review-gated, lifecycle ops audit-logged, remote-caller filesystem
confined), and the config schema (kb_path, agent, transport — no
secrets). No additional wiring is required to surface vouch's kb.*
surface inside an OpenClaw deployment.
What vouch is, in one paragraph
Vouch is a git-native, review-gated knowledge base for LLM agents. Agents
propose writes via an MCP server (or a JSONL pipe); a human approves each
proposal with vouch approve. Approved artifacts land as YAML claims and
markdown pages under .vouch/ — plain files that diff cleanly in PRs and
travel as a tarball bundle. The CLI is vouch; the PyPI distribution is
vouch-kb; supported Python versions are 3.11, 3.12, 3.13.
Install (1 minute)
curl -fsSL https://raw.githubusercontent.com/vouchdev/vouch/main/install.sh | shOr, deterministically from a clone (the path you want when contributing):
git clone https://github.com/vouchdev/vouch.git
cd vouch
python3 -m venv .venv && . .venv/bin/activate
pip install -e '.[dev]'Read in this order
- This file — entry, install, trust boundary, common tasks.
CLAUDE.md— orientation for working on the repo: architecture, conventions, ship rules, voice. Read even if you aren't Claude Code; the conventions are universal.README.md— the user-facing pitch, install, quick start, full CLI surface, MCP / JSONL method list.SPEC.md— the canonical protocol description:.vouch/layout, object model,kb.*method shapes, review-gate state machine. Authoritative when in doubt.ROADMAP.md— what's planned for 0.2 and 0.3. Don't propose features that are already scoped here.
For everything else, see llms.txt — the LLM-readable map of
every document in the repo.
Trust boundary
Every kb.* write tool goes through the review gate. There is no "trusted
agent shortcut" except an opt-in review.approver_role: trusted-agent in
the KB's config.yaml (off by default). Concretely:
kb.propose_*writes a YAML file to.vouch/proposed/— never to.vouch/claims/directly.kb.approverequiresapproved_by != proposed_byunless the trusted shortcut is on.- Lifecycle ops (
kb.supersede,kb.contradict,kb.archive,kb.confirm) mutate durable artifacts because they're metadata about reviewed knowledge, not new assertions. They still land an audit event. - The MCP server, the JSONL server, and the CLI all share the same storage + proposals + audit code path. The web review-ui (PR #195, pending) is a viewport, not a parallel data path.
If you're proposing a fix that bypasses the gate, you're proposing the wrong fix.
Common agent tasks
Use vouch from another project (the normal case)
cd /path/to/your/project
vouch init # create .vouch/
vouch install-mcp claude-code # …or cursor, codex, continue, cline, windsurf, zed
# Restart the agent host. kb.* tools + slash commands now available.vouch install-mcp <host> is manifest-driven: every supported host has a
single-file declaration under adapters/<host>/install.yaml. To add a
host, copy an existing manifest, point it at the host's config paths, and
open a PR.
Contribute a bug fix or feature
git fetch origin main
git switch -c <type>/<topic> origin/main
# … edit …
.venv/bin/python -m pytest tests/ -q --ignore=tests/embeddings
.venv/bin/python -m mypy src
.venv/bin/python -m ruff check src tests
git add <specific files>
git commit -m "<type>(<scope>): <≤72-char summary>"
git push -u origin <branch>Commit type vocabulary: feat | fix | refactor | test | docs | chore |
perf | ci | style | build | revert. Body in lowercase prose, multi-line
ok, no Co-Authored-By: Claude trailer — see
CONTRIBUTING.md. CI runs the same three commands.
Add a new kb.* method
Every kb method must be registered in four places — the
test_capabilities test catches drift:
src/vouch/server.py— the MCP tool functionsrc/vouch/jsonl_server.py— the matching handler +HANDLERSmap entrysrc/vouch/capabilities.py— append toMETHODSsrc/vouch/cli.py— the human-facing CLI mirror
Add a test in tests/test_<method>.py that asserts the JSONL envelope
shape ({id, ok, result} for success, {id, ok: false, error} for
failure).
Add a new install-mcp host
adapters/<host>/
install.yaml # tier T1..T4 declarations
.mcp.json # T1 — MCP wire (project-local)
CLAUDE.md.snippet # T2 — fenced append into the host's instruction file
.claude/commands/* # T3 — slash commands (when the host supports them)
.claude/settings.json # T4 — hooks + auto-allow listsThe writer is src/vouch/install_adapter.py. Strict YAML manifest
validation; semantic validation (does the dst path make sense for that
host?) is deliberately deferred.
Before shipping
make check # the convenience wrapper
# expanded:
.venv/bin/python -m pytest tests/ -q --ignore=tests/embeddings
.venv/bin/python -m mypy src
.venv/bin/python -m ruff check src testsmypy src is the gate that misses locally and fails CI; never push
without it.
Privacy / disclosure
- Never paste a real Bearer token, GitHub PAT, or PyPI token into a
commit, an issue, or a PR body. Use environment variables or
.env.local(gitignored). - Never propose claims with real customer names, internal URLs, or secret identifiers in a public KB. Use generic placeholders.
- Security issues go to the contact listed in
SECURITY.md; do not file public issues for vulnerabilities.
Hard rules
- The review gate is non-negotiable. Bypassing it is a rejected PR, not a feature.
- Tests must be added with the change, not after. CI red on a PR is a reviewer-blocking condition.
- No
Co-Authored-By: <AI tool>trailers in commits — the user has been explicit about this. - No silent CHANGELOG omissions when you add a user-visible feature —
update
CHANGELOG.mdunder[Unreleased]in the same PR.
If your task contradicts any rule above, stop and ask before continuing.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

