Claude Agent Memory
Description
Passively accumulates long-term knowledge from Claude Code sessions into ~/.claude/agents/*.md
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
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
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Development Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Development Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Development Epic Publish
Publish a validated epic update back to the issue and local cache.
Development Epic Review
Mark epic review requested, approved, or changes requested.
Development Epic Unblock
Sweep blocked epic issues and reopen anything whose dependencies are closed.
Development Related Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11