English · 简体中文
Table of contents
What this is
A Claude Code plugin — six hooks , a CLI, an MCP server, a desktop dashboard
and a web viewer over one project-local SQLite database — that captures
structured memories at every conversation boundary, reconciles each new
fact against what is already stored instead of appending, hands the next
session a forced-read handoff document, keeps a live plan anchor with an
enforced user-intent ledger, and consolidates the store in the background
when the write backlog says it is due. Pure Python standard library, zero
runtime dependencies, everything on your machine.
The problem it attacks
Claude Code compacts a conversation when the context window fills.
Whatever was in the discarded turns is gone: the decision you made three hours
ago, the benchmark number you measured, the bug you already fixed once, the
constraint you stated and had to state again. Sessions that simply end —
terminal closed, laptop shut — lose the same thing, silently.
The usual workarounds do not survive contact with a long project:
| Workaround | Why it fails |
|---|
A hand-written NOTES.md | Nobody updates it under deadline; it goes stale and starts lying |
| Pasting context back in each session | Manual, lossy, and costs the tokens you were trying to save |
| Bigger context windows | Delays the compaction; does not remove it |
| Append-only memory files | The same fact gets restated every session and stacks up; the file becomes noise |
| A memory store nobody is forced to read | Injection that the next session may ignore is a suggestion, and suggestions lose to deadlines |
The last two rows are the ones most memory tools stop at, and they are where
this project spends most of its engineering: writes reconcile (merge /
supersede / insert, chosen by similarity — never append-and-hope), and reads
are forced (a <system-reminder> at session start that requires the next
Claude to read the handoff before responding — and a Stop hook that can refuse
to end a turn while plan state is stale).
Before and after
Same tiny project, same model (claude-fable-5, Claude Code 2.1.243), same
prompt, same day (2026-08-27, on cc-memory v2.12.2). One difference: the
plugin. Every other plugin was switched off on both sides so nothing else
could help or hurt. The sessions were real claude -p runs driven by
demo/run_demo.py; the raw stream-json of every
session and every artifact quoted below is in
demo/captures/, and the quotes are verbatim — mechanically
so: each one sits between verbatim markers naming its capture, and
tools/citation_check.py fails the release gates if any quoted segment is not
in that file. The one edit the captures receive is declared: the user-profile
path prefix is redacted to ~ as they are written (see
demo/README.md).
1. "What were we doing last time, and what's next?"