CherryDocs
Decision records for AI coding agents. The AI writes them; the company keeps them.
When a developer leaves, the architecture decisions usually leave with them. CherryDocs fixes that: the AI agent records every decision, failed attempt, and conclusion at the moment it happens — first-person, with full provenance — and the knowledge stays with the project forever.
No API key. No cloud. No LLM middleman. The AI's own words are the record.
log → promote → retrieve → export
Setup (once, ~1 minute)
pip install cherry-docs
cherry install # wires Claude Code + Cursor hooks and the MCP server globally
That's it. Open any project in Claude Code or Cursor — CherryDocs is active.
Verify anytime with cherry status.
What the AI gets
| Tool | When the AI uses it |
|---|---|
onboard |
Session start — top memories + recent session state in one call |
answer |
"Why is this code here?" "What did we already try?" "What failed before?" |
log_activity |
A decision, pivot, fix, or refactor — promoted directly to durable memory |
save_checkpoint |
Structured handoff a blind AI can continue from |
Every memory carries provenance: session, branch, commit, files, and the raw evidence events that support it.
What the company gets
cherry export --out docs/DECISIONS.md
An ADR-style markdown decision log — Decisions, Attempts & Pivots, Conclusions, Warnings — each with rationale, date, branch, commit, and files. Commit it to the repo and the knowledge belongs to the company, not to a tool, an account, or the developer who left.
How a session flows
- AI calls
onboard()— gets project memory instantly - Work happens normally; hooks capture prompts, tool use, and shell results as the raw evidence trail
- When the AI logs a decision/pivot/fix/refactor, it lands in durable memory immediately — the AI's first-person testimony, no re-summarization
- Any future session asks
answer("why did we switch to X?")and gets the decision with its rationale and evidence
Memory quality, enforced
- First-person records — memories are written by the AI that made the decision, not inferred afterwards by another model
- No transient noise — test counts, CI status, commit counts, session summaries never become permanent memories
- Self-healing store —
cherry consolidatemerges near-duplicates and archives junk - Relevance-first retrieval — token relevance dominates ranking; trust and past-retrieval utility can't carry an irrelevant memory to the top
Check store health: cherry eval --no-llm
CLI
cherry install # wire into Claude Code + Cursor globally
cherry status # hooks + MCP health
cherry export # write the decision log as markdown (--out FILE)
cherry consolidate # merge duplicate memories, archive junk
cherry eval # memory quality report (add --no-llm for heuristic only)
cherry why <file> # memories anchored to commits touching <file>
cherry uninstall # remove hooks + MCP entry
Architecture
- Store: local JSON at
~/.cherrydocs/promoted/{project_id}.json— no cloud, no DB - Transport: MCP over stdio (FastMCP), 4 tools
- Capture: Claude Code hooks (
UserPromptSubmit,PostToolUse,Stop) and Cursor hooks (beforeSubmitPrompt,afterFileEdit,stop) — raw evidence trail, vendor-neutral - Privacy: secrets detected and redacted before anything persists
Project-scoped first, branch-aware second.
Development
pip install -e '.[dev]'
python -m pytest tests/ -q
python scripts/check_size_limits.py
bash scripts/local_pr_gate.sh fast # before opening a PR
The canonical source for generated agent rules is docs/agent_protocol.toml. More: Product Brief · System Deep Dive
The test that matters: would another AI keep this turned on because it helps?
Metadata
Release files for cherry-docs 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cherry_docs-0.5.0.tar.gz | 84.8 kB | Without provenance | Details for cherry_docs-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cherry_docs-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for cherry_docs-0.5.0-py3-none-any.whl |
Total release size: 155.8 kB
Release files / cherry_docs-0.5.0.tar.gz
| Download URL | cherry_docs-0.5.0.tar.gz |
|---|---|
| Size | 84.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2528d2244a243767e574138bf187be83fedf6cc99d188a1b60ac7bdc443e7776
|
|
BLAKE2b-256 checksum How to use checksums |
34f44a94c64d53eb1e8087739688434a2521e0d6b2ce292483247979a1434d5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.8
|
Release files / cherry_docs-0.5.0-py3-none-any.whl
| Download URL | cherry_docs-0.5.0-py3-none-any.whl |
|---|---|
| Size | 71.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9eb8b7d516a1e0ebadee7c07bdbffc5ccee9a9cba0500f3f8ef05344a1cface2
|
|
BLAKE2b-256 checksum How to use checksums |
15fe19a0770ded7453d445aa6f35d0341ab436b99956f26c323d91343094ff4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.8
|
Security for cherry-docs 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.