agent-memory plugin
A four-tier memory ladder for Claude Code where promotion is earned by recurrence, not asserted by confidence. L0 raw transcripts are never injected; L1 candidate atoms are gitignored and recalled on lexical relevance per prompt; L2 project context loads each session start; L3 stable persona is always loaded. L1 to L2 needs three distinct sessions spanning two distinct calendar days (a stated claim needs two; a verified claim is the only single-observation path); L2 to L3 needs two projects and thirty days. Two gates refuse rather than guess: a claim altered by the redaction pass never promotes on evidence alone, and a contradicted claim freezes until a human resolves it. Three hooks run the loop unattended and every one fails open. Nothing reaches a committed CLAUDE.md without an explicit human adopt. Ships 5 stdlib scripts, 3 hooks, a cs-memory-curator agent, /cs-memory, a JSON schema, and a 69-check validator. Concept from TencentCloud/TencentDB-Agent-Memory (MIT); no upstream code
How to install the agent-memory plugin
Run both commands inside Claude Code. The first adds the marketplace once; the second installs the plugin.
/plugin marketplace add alirezarezvani/claude-skills
/plugin install agent-memory@claude-code-skillsWhat's inside agent-memory
4 parts read from the plugin's own files.
Commands 1
Run as /agent-memory:name- /agent-memory:cs-memory
No description in the file.
Agents 1
Call as @agent-agent-memory:name- @agent-agent-memory:cs-memory-curator
No description in the file.
Skills 1
Claude loads it when the task matches- agent-memory
No description in the file.
Hooks 1
Runs on these events- hooks
No description in the file.
Using agent-memory in Claude Code
Type a command in a Claude Code session:
/agent-memory:cs-memoryAsk for an agent by name:
@agent-agent-memory:cs-memory-curatorSkills need no command. Claude reads them when your request matches what they describe.
Update, turn off or remove
- Update the plugin (shell)
- claude plugin update agent-memory@claude-code-skills
- Refresh the marketplace
- /plugin marketplace update claude-code-skills
- Turn it off for now
- /plugin disable agent-memory@claude-code-skills
- Remove it
- /plugin uninstall agent-memory@claude-code-skills
agent-memory plugin questions
How do I install the agent-memory plugin?
In Claude Code run /plugin marketplace add alirezarezvani/claude-skills, then /plugin install agent-memory@claude-code-skills.
What does the agent-memory plugin include?
agent-memory bundles 1 command, 1 agent, 1 skill, hooks.
What commands does the agent-memory plugin add?
It adds /agent-memory:cs-memory. Run them in Claude Code with the plugin prefix, for example /agent-memory:cs-memory.
Which agents come with agent-memory?
cs-memory-curator. Call one with @agent-agent-memory:cs-memory-curator.
How do I update or remove the agent-memory plugin?
Update it with claude plugin update agent-memory@claude-code-skills in your shell, or from the Installed tab of /plugin. Remove it with /plugin uninstall agent-memory@claude-code-skills.