Local, inspectable memory substrate for Claude Code sessions with provably faithful recaps and zero outbound calls.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by 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.
β Docker / Windows install Β· Operating guide Β· Bench vs claude-mem Β· Stability promise Β· Extension recipe Β· Pick your door
Every figure here is re-checkable on your own corpus, and each carries its own asterisk in plain sight β the project's stance is that an honest number beats a flattering one.
weighted-compact recap --all). This proves the map does not lie
about the session β not that it is the optimal summary.outbound-zero
CI workflow, the second because nothing runs between invocations.zstd -19 (~3Γ) wins and
this repo points you to it rather than shipping a weaker custom fold.A 30-second product map vs the dominant adjacent tool:
| weighted-compact | claude-mem (77 k β ) | |
|---|---|---|
| Capture | reads ~/.claude/projects/ on demand | 5 always-on lifecycle hooks |
| Importance ranking | 6 inspectable signals + REM-decay | ORDER BY recency DESC LIMIT k |
| Manifesto control | keep/skip labels honored as a hard constraint (pin / drop) | none |
| Compaction | top-K vector selection β markdown | LLM-summary, opaque |
| Auto-injection | none β client polls | every session start |
| Outbound network | zero (default) | configurable LLM provider per turn |
| Substrate inspection | numpy columns on disk | SQLite + Chroma |
| Idle RAM | 0 MB (nothing runs) | ~80β150 MB worker |
| Reconstruction fidelity | no measured edge β ties recency/bm25 | not measured by them |
The honest trade: the structural rows above (local, zero-outbound,
inspectable, 0 idle RAM, manifesto control) are real and verifiable. The
quality row is not a win β on reconstruction-fidelity the six-signal mixture
has not been shown to beat cheap baselines like recency or bm25, and neither
does hand-curation (see docs/baselines.md). What is a
real, exclusive property is manifesto control: your keep/skip labels are
honored as a hard selection constraint β a keep-labeled pair is guaranteed to
survive compaction (up to budget), a skip-labeled pair is dropped first. Measured
on a 16-pair labeled session: 100 % keep-label survival at k β€ 0.7 (vs
recency baseline 62 %). That is a deterministic control guarantee, not a
compression-quality claim (proven by construction in tests/test_manifesto.py;
default-on in the compact_session MCP tool, meta.manifesto reports what it
honored). claude-mem is
hook-installed in seconds and feels magic; weighted-compact is a transparent
substrate you own, steer with a manifesto, and query with intent. Pick on
transparency / locality / control, not on compression quality β see
docs/bench-vs-claude-mem.md.
~/.claude/projects/ already contains the record of every correction
you pushed back on, every flag you restated, every constraint the model
lost track of. weighted-compact reads those files once, parses them
into per-pair objects (correction text, premise text, span tiers,
session anchors), and decorates each pair with six signals: density
features, span coverage (four tiers: keep / maybe / skip / think),
and one optional human label.
The decorated substrate lives at $XDG_DATA_HOME/weighted-compact/ β
gitignored, never uploaded. It is the artifact. Compaction is the
first reader; other consumers read the same files.
Five of the six signals run without any human input. The sixth
β label β is an optional power-tier, not a requirement: the published
ablation puts its 95 % paired CI [β0.004, +0.109] crossing zero on the
lower bound, with 67 % of paired runs showing zero difference. The
substrate stands on the five automatic signals (density + four span tiers);
the labeler at :18890/ is opt-in for users who want to add an explicit
human judgement track.
A nightly REM pass (weighted-compact rem-pass, default 04:00 via
the bundled systemd-user timer) lays a wall-clock half-life multiplier
on top: yesterday Γ 0.91, week ago Γ 0.50, month ago Γ 0.05. Independent
of the six-signal mixture β content signals stay stable, time refreshes
every day. See docs/rem-decay.md.
| Consumer | What it does with the substrate | Status |
|---|---|---|
Compaction layer β build_compacted_context_with_meta() | top-K importance selection β markdown context + budget meta (chars, tokens, top-3 signals). Exercised via the qa-gate evaluation harness; standalone session-start delivery is the next-targeted feature. | shipped β library + harness + MCP tool |
| Schema extraction β third retrieval tier | extracts reusable (trigger, rule, anti-pattern, stable_since) rules from your memory dir; sits above chunk/episode retrieval as the cheap top-tier β when a recurring pattern fires, you get the rule, not raw chunks | shipped β weighted-compact schema {build-bank,run,all}; honest first proof: 14/20 strict MATCH = 70 % same-model judge (cross-model drops to 1/20) (see docs/schema-extraction.md) |
| Recap β task-segmented navigation map | reads the same session source and renders, per task, the files touched (with a +adds/βrems diffstat), the commands run, and the verbatim outcome line. A deliberately lossy map β not reconstructable β but the one consumer whose quality claim is positive and provable: four faithfulness invariants re-checked on every session. | shipped β weighted-compact recap [SESSION] [--audit] [--all]; audit holds on 1007/1007 of the maintainer's sessions (see docs/recap.md) |
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/zzallirog-weighted-compact)<a href="https://allmcps.com/mcp/zzallirog-weighted-compact"><img src="https://allmcps.com/api/badge/zzallirog-weighted-compact?style=directory" alt="Weighted Compact on AllMCPs" /></a>