add_memoryLABSCO SUMMARY
Governance is what stops a memory store from poisoning itself.
Without a lifecycle, a memory file accumulates the January setting and the March override and hands the model both. The status ladder plus supersede links is a direct answer to that, and the conflict and staleness passes turn the problem into something you can inspect rather than discover by being given a wrong answer. The author reports tuning the governance engine down from 1,848 false positives to 11 real findings, which is the sort of number that suggests the naive version does not work.
What it is
A local memory server whose distinguishing idea is a status on every memory. Most memory tools solve storage; this one is aimed at trust — recall ranks validated memories above active ones above hypotheses, and excludes deprecated and superseded ones entirely, so an outdated rule cannot be retrieved alongside the rule that replaced it. Storage is SQLite with WAL mode, search is FTS5, and there are no API keys or cloud calls.
What you get
- 13 MCP tools covering the whole loop:
add_memory,search_memory,recall_memory,update_memory,delete_memory,list_memories,save_session,load_session,promote_memory,deprecate_memory,supersede_memory,memory_health,memory_conflicts - A status lifecycle you drive explicitly — promote a hypothesis to active and then validated, deprecate what is no longer true (kept for history, excluded from recall), or supersede it with a newer memory that the old one now points to
- Conflict detection that separates duplicates from real contradictions using topic overlap and sentence-level negation matching, with
criticalseverity when both sides are active andwarningwhen one is deprecated - Staleness detection by age, by a referenced source file having disappeared, and by hash drift — the source file changed but the memory did not
- A health score out of 100 built from conflicts, stale percentage, orphaned references, deprecated weight, and whether you have any validated memories at all
- Context-budgeted recall that packs the most trustworthy relevant memories into a token limit, scored on relevance, trust status, provenance, recency, frequency and confidence
- Seven memory types that match real agent work:
setting,bug,decision,procedure,context,feedback,session
Requirements
No account, no API key, no cloud, no vector database — just a .db file. pip install quilmem[mcp], then agentmem init --tool claude --project myapp and restart your editor; memory_health confirms it is live. The PyPI package is quilmem and the command is agentmem, launched as agentmem --db ./memory.db --project myproject serve over stdio. Python-only use works with plain pip install quilmem, without the MCP extra. The repository also ships agent instructions to paste into CLAUDE.md, .cursorrules or AGENTS.md so the agent knows when to search versus add. MIT licensed.
Setup effort
One command — pip install quilmem[mcp]
USE CASES
Stopping an agent repeating a fixed mistake
Record the bug and its fix as validated, so it ranks at the top of recall the next time the same area comes up.
Replacing a decision that has changed
Add the new decision and supersede the old one — the old memory points at its replacement and drops out of recall instead of competing with it.
Auditing whether your memory is still trustworthy
Run the health check to see the score, the contradictions and how much of the store has gone stale.
Resuming work after a context reset
Save the session state before you stop and load it at the start of the next one, rather than reconstructing where you were.
Fitting the right context into a tight budget
Ask for recall under a token limit and get the most trustworthy relevant memories packed in, not the most recent ones.
13 tools
Listed in project docs. Your client may show a different list.
search_memoryrecall_memoryupdate_memorydelete_memorylist_memoriessave_sessionload_sessionpromote_memorydeprecate_memorysupersede_memorymemory_healthmemory_conflictsBEFORE YOU INSTALL
What to know first
Tools you get
13 tools named in the project's documentation.
Requires
agentmem on PATH
Where it runs
The documented client runs the server on your machine.
INSTALLATION
Connect your client
Server setup
pip install quilmem[mcp]MCP Clients
Claude Code
{
"mcpServers": {
"agentmem": {
"command": "agentmem",
"args": [
"--db",
"./memory.db",
"--project",
"myproject",
"serve"
],
"type": "stdio"
}
}
}