Vestige
Durable, scoped memory for coding agents. Memories are markdown, and reach is declared per memory — so a lesson learned in one repository reaches the repositories it applies to, and no others.
Works in Claude Code as a plugin, and in Codex CLI over the same MCP server.
Status: early. Benchmarked thoroughly, run in anger not at all. See Maturity.
Why reach is the whole design
A shared memory pool with no notion of scope has one failure mode, and it gets worse as it grows: everything is visible to everything. Ask about retries in the payments service and you get retry lessons from five other codebases, ranked above your own.
Vestige makes reach a property of the memory:
| scope | who sees it | where it is stored |
|---|
project | only the repositories it names | in the repo, if it names only that repo |
platform | any caller sharing a platform | the global store |
general | everything | the global store |
Two rules are enforced rather than trusted, and they matter more than they look:
- Reach is narrowed, never widened. Claiming
general while naming specific projects is downgraded to those projects — by the memory's own admission — and the original claim is kept as claimed_scope so the downgrade can be audited. Without this, a filter is defeated by anything that over-claims: at a 24% over-claim rate, narrowing holds the caller's view at 73 documents and the scores do not move, while the same rate of claims that cannot be narrowed grows the view to 100 documents and costs 13 points of in-project recall and 18 of transfer (found@5 0.705 to 0.579, and 0.772 to 0.614).
- A memory that would reach nobody is refused, not widened. Granting the widest reach because the narrowest could not be determined is the opposite of what narrowing is for.
What it does
remember — record a lesson that transfers. The routing test is exactly that: would this help someone working in a different repository?
recall — everything this project may see, ranked by specificity then recency.
search — semantic search inside what it may see. The reach filter runs first and ranking second, so nothing outside your reach can appear however well it matches.
explain — why each memory was shown or withheld, with what was claimed beside what was recorded. Every failure in this layer otherwise presents identically as "no results", and this is what tells an empty store apart from a reach mismatch.
memory_status — where the stores are and what is visible.
Plus the parts that make memory actually happen rather than sit unused: a protocol injected once per session, a gate that asks you to search before delegating discovery, a capture skill that decides what qualifies, and an audit skill that keeps the store lean.
Install
/plugin marketplace add breferrari/vestige
/plugin install vestige
Node 22+. qmd is required and is installed and kept current for you — it is not an optional accelerator: the reach filter alone, ordered by specificity and recency, puts the right memory first 4.4% of the time and in the top five 22%; with semantic ranking inside the same filtered view those become 45% and 93%.
For Codex, see codex/.
Storage is configuration, not policy
Declare stores in .vestige/config.json — in the repo, or in ~/.vestige/:
{
"stores": [
{ "name": "project", "kind": "repo", "path": ".vestige/memories", "accepts": ["project"] },
{ "name": "team", "kind": "external", "url": "[email protected]:acme/memories.git",
"path": ".vestige/.team", "accepts": ["platform", "general"] },
{ "name": "personal", "kind": "local", "path": "memories", "accepts": ["*"] }
]
}
An external store is a separate git repository, sparse-cloned into the workspace and kept out of your project's history — for teams who keep memory out of product repos on purpose. Add vestige-shared to sync it.
You never choose a location by hand: the narrowed scope picks the store, so a memory's reach and its location cannot disagree.
What it will refuse to publish
Memories bound for a shared store are scanned before anything is staged. Credentials, private keys, UUIDs, absolute home paths, email addresses, internal hostnames and private IPs are quarantined, not published — per file, so one bad memory never holds up the clean ones beside it.
Stated plainly, because a security claim without its limits is worse than none: this is a deny-list over shapes. It does not catch a secret spaced out character by character, or one described in prose. Write the lesson, not the evidence.
Prior art