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 devlify-marketplacev2.11.2MITIn 1 marketplace
Engineer an agent's forgetting, not just its remembering. Four deterministic stdlib scripts implement the four lenses of agent memory: a cost profiler that splits construction from query spend and reports cost per correct answer (construction energy exceeds total query energy across 300 queries in the Stanford characterization); an architecture picker that scores the four paradigm families — long-context, flat RAG, structure-augmented RAG, agentic — disqualifies on hard constraints, names the cost the winning choice makes you pay, and refuses to pick when the top two tie; a density auditor that classifies every record in a real memory directory or JSONL export as FACT / SKILL / LOG / PROSE, finds near-duplicates, and flags stale and time-relative wording; and a forgetting-policy linter that fails any design with no forgetting rule or that auto-merges contradictions. Ships cs-memory-engineer agent, /cs:memory-engineering and /cs:forgetting-audit commands, 4 references citing 7 sources each, and a seven-question forcing worksheet.
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.
Your agent's problem was never that it forgets. It's that it never forgets on purpose.
A storer optimizes what a system remembers. A memory engineer optimizes what it forgets. This plugin makes that shift executable: four deterministic stdlib scripts that price the write path, choose which cost to pay, audit what a store actually holds, and refuse a design with no forgetting policy.
Everyone building agent memory optimizes retrieval. Almost nobody engineers what it costs to build, what is worth keeping, who can delete it, and where it lands on the hardware. Stanford's systems characterization of ten memory systems found the gap concretely:
If you did not build forgetting, you do not have it.
/plugin marketplace add alirezarezvani/claude-skills
/plugin install memory-engineering
/cs:memory-engineering ~/.claude/memory # full four-lens pass
/cs:forgetting-audit design.json # just the blocking gate
Or run the scripts directly — each has --help, --sample, and --output json:
cd skills/memory-engineering
python scripts/memory_cost_profiler.py --sample
python scripts/memory_architecture_picker.py --sample
python scripts/memory_density_auditor.py --dir ~/.claude/memory
python scripts/forgetting_policy_linter.py --sample-failing
| Script | Lens | What it does | Exit codes |
|---|---|---|---|
memory_cost_profiler.py | Stanford — what does it cost? | Splits construction vs query spend, computes cost per correct answer, flags under-amortized writes and construction co-located with live queries | 0 · 2 finding · 3 bad input |
memory_architecture_picker.py | Stanford — which cost to pay? | Scores long-context / flat RAG / structure-augmented RAG / agentic against constraints, disqualifies on hard limits, names the cost you're choosing, refuses to pick on a tie | 0 · 2 ambiguous · 3 bad input · 4 none viable |
memory_density_auditor.py | Microsoft — what's worth keeping? | Classifies records FACT / SKILL / LOG / PROSE, finds near-duplicates, flags stale and time-relative wording, scores knowledge density. Runs on a real directory or JSONL | 0 dense · 2 finding · 3 bad input |
forgetting_policy_linter.py | Anthropic + the gate | 8 checks; F1 (explicit forgetting rule) and F4 (contradictions surfaced, never auto-merged) are blocking | 0 PASS · 2 CONDITIONAL · 4 FAIL |
Stdlib only. No network, no LLM calls, no dependencies.
$ python scripts/forgetting_policy_linter.py --sample-failing
VERDICT: FAIL (0/8 checks pass)
This design does not forget on purpose. F1 failed. F4 failed.
FAIL F1 explicit forgetting rule [BLOCKING]
No TTL, no capacity bound, no decay. The store only grows.
FAIL F4 contradictions surfaced, never auto-merged [BLOCKING]
Contradiction policy is 'newest_wins', which resolves conflicts silently.
F4 is blocking on purpose. Two memories that disagree may both have been true in different contexts — "deploys go through Jenkins" and "deploys go through GitHub Actions" is not a contradiction to resolve, it is a migration to record. Auto-merging destroys the only evidence the conflict existed.
The four-lens framing synthesizes "How to be a Memory Engineer, from the perspective of Stanford, Microsoft, Anthropic and Nvidia" by @N01ennn.
Every quantitative claim is cited to the primary source, not to that article, and each carries an explicit confidence level. Two of the article's paraphrases are corrected in the references:
memory_cost_canon.md §2).memory_control_and_governance.md §4).| You want | Use |
|---|---|
| Build and maintain one markdown knowledge vault | llm-wiki |
| A nightly self-improvement loop over transcripts | skillopt-sleep |
| Bound an agent's task loop | agent-harness |
| Price inference generally | llm-cost-optimizer |
This bounds a store, not a loop and not a vault.
npx claudepluginhub devlify-marketplace/devlify-skills --plugin memory-engineeringBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground