Claude Agent Memory — Development skill for Claude Code
Passively accumulates long-term knowledge from Claude Code sessions into ~/.claude/agents/.md.
How to install Claude Agent Memory
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open itskrishna21/claude-agent-memory and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Agent Memory does
Passively accumulates long-term knowledge from Claude Code sessions into ~/.claude/agents/.md.
Alternatives in Development
- Agentic Stack — One brain, many harnesses 2.2k ★
- Powercontext — Agent memory: long-term memory & agent memory handoff 1.4k ★
- Mem0 Chrome Extension — OpenMemory Chrome Extension: Long-term memory for ChatGPT, Claude, Perplexity, Grok etc 671 ★
README
claude-agent-memory
[](LICENSE) [](https://github.com/itskrishna21/claude-agent-memory)
Open-source Claude Code plugin that passively accumulates long-term knowledge from every session into your `~/.claude/agents/*.md` files. Agents get smarter over time — no manual edits.
How it works
- After every turn, Claude Code fires the Stop hook.
agent_updater.pyreads the session transcript and your agent.mdfiles.- It asks Claude Haiku (via
claude -p) what durable facts belong in each agent's knowledge base. - New bullet points are appended to the agent body. Frontmatter is never touched.
Requirements
- Claude Code CLI installed and authenticated
- Python 3.8+
- At least one agent file in
~/.claude/agents/ - No pip packages needed
Install
**Shell (clone or curl):**
git clone https://github.com/itskrishna21/claude-agent-memory
bash claude-agent-memory/install.sh
Or:
curl -fsSL https://raw.githubusercontent.com/itskrishna21/claude-agent-memory/main/install.sh | bash
`install.sh` copies the script to `~/.claude/scripts/agent_updater.py` and registers a Stop hook in `~/.claude/settings.json`.
**Plugin marketplace** (preferred):
/plugin marketplace add itskrishna21/claude-agent-memory
/plugin install claude-agent-memory@claude-agent-memory
Use either the shell installer **or** the marketplace plugin — not both — or you'll register the Stop hook twice.
Uninstall
bash uninstall.sh
Or: `/plugin uninstall claude-agent-memory@claude-agent-memory`
Agent `.md` files are never deleted.
Optional config
Create `~/.claude/agent-memory.json`:
{
"last_n_messages": 15,
"dry_run": false,
"debug": false
}
| Key | Default | Meaning |
|---|---|---|
last_n_messages |
15 |
How many recent transcript messa |
Related Skills
Signal Gate
You are a signal detector for a memory curation system. Your job is to determine whether a coding session tran
Scope Recall Hermes
Local long-term memory for Hermes, Codex, Claude Code, WorkBuddy and dsh agents: one SQLite store, source-back
MoltBrain
Long-term memory layer for OpenClaw & MoltBook agents that learns and recalls your project context automatical
Recall.En
{user_name} is searching their own long-term memory. Those memories are dated observations: things they said,
Memory Skill
a file-based long-term memory agent skill
Mb
Memory Bank — long-term project memory management
Related Agents
Curate Chatlog
Curate the m3-chatlog store — clean, dedupe, decay ephemeral turns, prune abandoned conversations, promote hig
Context Memory Manager
Context Window & Token Optimization Specialist. Manages token budgets, compresses prompts (RTK/Caveman), imple
Memory Searcher
Searches the long-term memory vault and returns a dense answer with path:line citations. Use for broad questio