Memanchor — Development skill for Claude Code
Persistent memory for coding agents (Claude Code, Cursor, Codex) over MCP: memories anchored to files and flagged stale when the code changes, with secret redaction.
How to install Memanchor
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open AfridaMehanaz/memanchor and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Memanchor does
Persistent memory for coding agents (Claude Code, Cursor, Codex) over MCP: memories anchored to files and flagged stale when the code changes, with secret redaction.
Alternatives in Development
- Projectmem — Open-source coding agent memory 766 ★
- Cavemem — Frozen — cross-agent persistent memory for coding assistants 674 ★
- Memory Search — Search through Claude's persistent memories for specific content, patterns, or keywords 332 ★
README
⚓ memanchor
[](https://github.com/AfridaMehanaz/memanchor/actions/workflows/ci.yml)
**Persistent memory for coding agents that knows when it's out of date.**
Claude Code, Cursor and Codex forget everything between sessions. memanchor is a local [MCP](https://modelcontextprotocol.io) server that lets them save what they learn (decisions, conventions, gotchas) and recall it next time.
The difference: every memory is **anchored to the files it describes**. When those files change, recall flags the memory as **STALE**, so the agent re-checks before acting on outdated knowledge.
> recall "jwt signing"
1 memory, 1 stale (verify before relying on them)
#4 [decision] (STALE: src/auth/keys.ts changed; tags: auth, jwt)
JWTs are signed with RS256 so other services can verify them with the public key only.
Why
A wrong memory is worse than no memory. Most agent-memory tools store text and return it forever, even after the code it describes has been rewritten. memanchor treats memory like a cache that can be invalidated:
| Plain notes / CLAUDE.md | Typical memory server | memanchor | |
|---|---|---|---|
| Persists across sessions | ✅ | ✅ | ✅ |
| Searchable | grep | ✅ | ✅ BM25 + stemming |
| Knows when a memory may be outdated | ❌ | ❌ | ✅ file anchors |
| Scrubs secrets before saving | ❌ | rarely | ✅ |
| Bounded context cost | ❌ whole file | varies | ✅ token budget |
| Local, no cloud, no API key | ✅ | varies | ✅ |
Features
- Staleness detection.
remember(files: [...])stores a content hash of each file.recallre-hashes and marks memories whose files changed or were deleted.confirm_memoryre-anchors after the agent re-checks.list_memories(stale_only)finds memories to clean up. - Secret redaction. API keys (Anthropic, OpenAI, GitHub, AWS, Slack, Stripe, Google), JWTs,
private keys,
password=style assignments and credentials in connection s
Related Skills
Kopeng
Persistent, self-curating memory for coding agents. MCP tools + REST API, 100% local inference, with an autono
Align Agent
ALIGN (Agent Line-Index Guard and Notices): keep coding agents' views of their files current (Claude Code, Cod
Wife
Local, persistent and auditable memory layer for Claude Code, Codex, Cursor & Gemini CLI. Your coding agent st
Tradwife
Local, persistent and auditable memory layer for Claude Code,Cursor, Codex & GEMINI CLI. Your coding agent sto
MemorIA
Persistent semantic memory for agents (Claude Code, Cursor, and custom agents) using MCP + Qdrant.
Memory Statistics
Show statistics about Claude's persistent memory file including total memories, storage size, and recent activ
Related Agents
Rememora Triage
Use this agent when triaging issues, feature requests, or bugs for the Rememora project — a cross-agent persis
Redaction Auditor
Expert auditor for secret-redaction code in the claude-handoff project. Use PROACTIVELY whenever src/core/reda
Part 13: Memory Bridge (Give Coding Agents Your Brain)
When you spawn Codex or Claude Code to build something, they start blind. They don't know your architecture de