weighted-compact
A provably faithful recap and local inspectable substrate for your Claude Code sessions.
~/.claude/projects/ is the record of every correction you pushed back on.
weighted-compact reads it and gives you two local artifacts: a task-segmented
recap per session (stdlib-only, provably faithful, ~5 ms/session), and a
substrate of every correction turn as inspectable numpy columns.
Zero outbound. Zero idle RAM.
Three claims, kept apart so none borrows another's credibility:
- recap — provably faithful: four invariants re-checked on 1007/1007 sessions (
weighted-compact recap --all). Stdlib-only, no model, no judge. The one consumer with a positive, re-checkable result.- manifesto control — your keep/skip labels are a hard constraint, not a soft boost: 100 % keep-label survival at k ≤ 0.7 (vs recency baseline 62 %). The first compaction claim that beats a cheap baseline.
- mixture fidelity — the six-signal importance mixture has no measured edge over recency or bm25 at current N. We say so, with the numbers, in How it compares.
Reach for this if you want local artifacts you can audit and steer; reach for a drop-in like claude-mem if you want set-and-forget recall.






