Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By alirezarezvani Verifiedv2.14.6MITIn 1 marketplace
Builds a tiered memory for Claude Code where facts reach project or persona context only after recurring across sessions and days. Hooks run at session start, on every prompt and at session end; writing to CLAUDE.md needs an explicit adopt.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A four-tier memory ladder for Claude Code. Promotion is earned by recurrence, never asserted by confidence, and nothing reaches a committed file without a human adopting it.
Concept derived from TencentCloud/TencentDB-Agent-Memory (MIT). No
upstream code is included — see
.claude-plugin/authoring-notes.json for
what was taken and what was deliberately rejected.
| Tier | Holds | Injected | Committed |
|---|---|---|---|
| L0 | raw session transcripts | never | already on disk |
| L1 | candidate atoms | on relevance, per prompt | no (gitignored) |
| L2 | this project's context | every session start | yes, after adopt |
| L3 | stable cross-project persona | always | yes, after adopt |
L1 → L2 needs ≥ 3 distinct sessions spanning ≥ 2 distinct calendar days. A claim stated outright needs 2 sessions — the day rule still applies. A deterministically verified claim promotes on one observation and is the only day-exempt path. L2 → L3 needs ≥ 2 distinct projects and ≥ 30 days.
Two gates refuse rather than guess: a redacted claim never promotes on evidence alone, and a claim with an open contradiction freezes until a human resolves it.
The three hooks in hooks/hooks.json run the loop
unattended. Each is disabled independently:
AGENT_MEMORY_SESSIONSTART=0 # stop injecting L2 + L3
AGENT_MEMORY_USERPROMPTSUBMIT=0 # stop L1 recall
AGENT_MEMORY_SESSIONEND=0 # stop capture
cd skills/agent-memory/scripts
python3 memory_inspect.py --tier L1 # what's stuck, and why
python3 memory_inspect.py --why "<claim>" # full provenance + source line
python3 memory_inspect.py --contested # disputed claims, both directions
python3 memory_promote.py # dry-run the gates; writes nothing
python3 validate_examples.py # 69 checks over the spec + schema
Every script takes --sample and --output json. /cs-memory wraps all of it;
/cs-memory adopt is the only path that writes to a CLAUDE.md, and it backs
both files up first.
DESIGN.md the spec: schema, gates, hook contracts, open decisions
hooks/hooks.json three hook contracts
hooks/session_start.py inject L3 + L2, mark cross-tier conflicts
hooks/user_prompt_submit.py recall L1 on a 100 ms internal budget
hooks/session_end.py capture, redact, detect, merge, stage
skills/agent-memory/SKILL.md 6/6 PASS on the write-a-skill checklist
scripts/memory_core.py shared: ids, redaction, locking, contradictions
scripts/memory_extract.py L0 → L1, rule-based, no LLM
scripts/memory_promote.py L1 → L2 → L3, stages proposals
scripts/memory_inspect.py read-only: --tier / --contested / --why
scripts/validate_examples.py 69 checks in seven families
assets/memory_schema.json 13 required fields, five conditionals
references/ three references, 6–7 sources each
agents/cs-memory-curator.md refuses to adopt what it cannot cite
commands/cs-memory.md status | why | contested | adopt | forget
DESIGN.mdDESIGN.md was written before the implementation and reviewed at length. Where
the built thing differs from the planned thing, this list is authoritative.
7-day copy clicks
Plugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub alirezarezvani/claude-skills --plugin agent-memory