Local MCP memory that records agent corrections and measures whether they are heeded in later sessions.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Agent Recall.
session_start[ENTRY β call FIRST, before acting] Use when the user asks to start, load, continue, resume, or open memory for a project. Set mode='lite' for a β€500-token briefing (good for fresh conversations where the agent will pull memory on demand via recall()).
session_end[ON SAVE/EXIT β YOU must call this; nothing auto-saves] Use when the user asks to save, checkpoint, summarize, end, retain, or persist the current session. Optionally pass close_phase / open_phase to update the project pipeline narrative spine in the same call.
remember[MID-SESSION WRITE β single fact/decision; saying it is not saving it] Use when the user asks to remember, store, note, or save a specific decision, fact, or insight.
recall[RETRIEVE β use freely, any time] Use when the user asks to recall, search, find, or look up previous memory, context, or decisions.
check[MID-SESSION β safe any time; for alignment, before risky decisions] Use when the user asks to validate understanding, verify alignment, or check if their interpretation matches the human's intent. Also call BEFORE a high-risk action β publish, deploy, delete, credential exposure, external send/message, or any other irreversible write β passing `action_description` (one sentence, what you're about to do). Returns matching corrections/rules/insights plus a `verdict`: `blocked` means an authoritative correction OVERRIDES the plan β read it before proceeding. To RECORD a durable human correction, pass `human_correction` as the STRUCTURED object {rule, why, applies_when} β a plain string is only STAGED for later review, never activated.
English Β· δΈζ
Claude Code memory that learns from corrections. The only learning loop that measures whether your agent actually stops repeating a mistake.
Corrections ledger + session lifecycle + honest measurement. MCP Β· SDK Β· CLI Β· Skill.
1. Install the MCP server (Claude Code):
Generic MCP JSON for other clients:
2. First message of every new session, run the loop:
AgentRecall is two things:
A governed corrections ledger β every time you correct your agent ("no, not that version", "put this section first", "ask me before you assume"), that correction is stored as a structured record with severity, evidence, and outcome tracking. It persists across sessions, projects, and agent restarts.
A measurement instrument β the only open-source system that tracks whether a correction actually changed what the agent does in a later session. Every correction accumulates retrieved_count, and every time the agent encounters the same situation, the outcome is recorded (heeded or recurred).
No other agent memory tool measures that second step. Every benchmark in the field tests retrieval; none tests behavioral change across sessions. We built the measurement harness first β and we publish what we found, including the unflattering numbers.
Most agent memory tools claim "never repeats the same mistake." None of them publish a number for it.
Here is what our own instrument found on our own live corpus (2026-07-03):
| Metric | Value | Artifact |
|---|---|---|
| Correction capture recall (dual-blind audit, n=59) | 35.3% [17.3β58.7 CI] | UPDATE-LOG.md Β§M2 |
| Heed rate, pre-2026-07-03 (instrument-biased upper bound β do not cite) | 92.5% [Wilson 60.1β100] | scripts/eval/baselines/rmr-baseline-2026-07-03.json |
| Heed rate, evidence-grounded (post-reset) | 0/3 events | scripts/eval/baselines/rmr-baseline-2026-07-03.json |
| Correction transfer recall (offline bench, achievable) | 0/4 [Wilson 0β49%] | scripts/eval/baselines/correction-transfer-real-2026-07-03.json |
| Median session_start injection | 1,489 tokens (was 2,010; Mem0 anchor ~7K) | UPDATE-LOG.md Β§C2 |
| p95 session_start latency (warm) | 363 ms (was 1,132) | UPDATE-LOG.md Β§C2 |
The heed instrument defaulted to "heeded" absent evidence before 2026-07-03; the reset default is "unknown" β the honest 0/3 is the correct starting point, not a regression. Transfer recall cannot support a point-estimate claim below 39 classes (claim-gate ledger, benchmark spec Β§2.6).
Verify it yourself: every number above regenerates from the committed artifacts β see docs/eval/REPRODUCE.md.
What this means: we captured 35% of real corrections in our own live use. The heed instrument was biased and we reset it. The offline transfer benchmark scores 0 on our own corpus β which is a density problem (32 active corrections across 19 projects is too sparse to front-run mistakes), not a retrieval architecture problem (confirmed 5Γ by internal experiments).
The learning loop framing is correct β the system is designed to track whether corrections change behavior β but the data we have so far is insufficient to quantify the uplift. We are publishing the measurement harness and running the experiment.
In mid-2026, the agent-memory field is crowded (Mem0 ~60K stars, Graphiti/Zep ~28K, Supermemory ~28K, Letta ~24K). Most published benchmark numbers in this space are self-reported on the same 2β3 retrieval benchmarks and are hard to reproduce independently.
The confirmed gap (from our research report docs/research/agent-memory-landscape-2026-07.md Β§2): no public benchmark measures whether a captured correction changes what a fresh agent does in a new session. LongMemEval, LoCoMo, MemoryAgentBench, Letta Leaderboard β all test retrieval or within-session updates.
AgentRecall owns two pieces of the unclaimed ground:
corrections-export/v1, scrubbed egress, retraction, severity, proof-confidence) that any engine can integrate against.predict-loo (leave-one-out, anti-self-confirming, dual denominators) and the correction-transfer benchmark spec (HeedBench v1 β provisional name), which implements the missing pipeline: capture β persist β fresh session β measure recurrence.Benchmark numbers in agent memory are typically self-reported and hard to reproduce. Ours regenerate from a fixed, hash-locked corpus with one command (npm run bench) β including the scores that make us look bad.
Visual setup guide β all 13 clients, copy-paste prompts: open
warroom/install.htmlfrom the repo (or after unzipping the War Room release) in any browser. No server needed.
Skill (Claude Code only):
The canonical cognitive-psychology taxonomy mapped to your agent's filesystem:
| Layer | Type | What it holds | Path |
|---|---|---|---|
| 1 | Episodic | What happened in each session, chronologically. Auto-written during work. | journal/ |
| 2 | Semantic | Topic-clustered facts with [[wikilinks]]: Architecture, Goals, Blockers. | palace/rooms/ |
| 3 | Procedural | IF-THEN production rules β reusable how-tos. | palace/skills/ |
| 4 | Narrative | Project phases: Goal β What was hard β How solved β Synthesis. | palace/pipeline/ |
| 5 | Correction | Behavioral calibration: rules the agent must follow, with severity and outcome tracking. | corrections/ |
| + | Awareness | Cross-project insights promoted from N-confirmed corrections β the compounding layer. | palace/awareness |
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/agent-recall)<a href="https://allmcps.com/mcp/agent-recall"><img src="https://allmcps.com/api/badge/agent-recall?style=directory" alt="Agent Recall on AllMCPs" /></a>