memory-engineering plugin
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 memory directory or JSONL export as FACT / SKILL / LOG / PROSE, finds near-duplicates, and flags stale wording; and a forgetting-policy linter that fails any design with no forgetting rule. Ships cs-memory-engineer agent, /cs-memory-engineering and /cs-forgetting-audit commands, 4 references, and a seven-question forcing worksheet.
How to install the memory-engineering 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 memory-engineering@claude-code-skillsWhat's inside memory-engineering
4 parts read from the plugin's own files.
Commands 2
Run as /memory-engineering:name- /memory-engineering:cs-forgetting-audit
No description in the file.
- /memory-engineering:cs-memory-engineering
No description in the file.
Agents 1
Call as @agent-memory-engineering:name- @agent-memory-engineering:cs-memory-engineer
No description in the file.
Skills 1
Claude loads it when the task matches- memory-engineering
No description in the file.
Using memory-engineering in Claude Code
Type a command in a Claude Code session:
/memory-engineering:cs-forgetting-audit
/memory-engineering:cs-memory-engineeringAsk for an agent by name:
@agent-memory-engineering:cs-memory-engineerSkills 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 memory-engineering@claude-code-skills
- Refresh the marketplace
- /plugin marketplace update claude-code-skills
- Turn it off for now
- /plugin disable memory-engineering@claude-code-skills
- Remove it
- /plugin uninstall memory-engineering@claude-code-skills
memory-engineering plugin questions
How do I install the memory-engineering plugin?
In Claude Code run /plugin marketplace add alirezarezvani/claude-skills, then /plugin install memory-engineering@claude-code-skills.
What does the memory-engineering plugin include?
memory-engineering bundles 2 commands, 1 agent, 1 skill.
What commands does the memory-engineering plugin add?
It adds /memory-engineering:cs-forgetting-audit, /memory-engineering:cs-memory-engineering. Run them in Claude Code with the plugin prefix, for example /memory-engineering:cs-forgetting-audit.
Which agents come with memory-engineering?
cs-memory-engineer. Call one with @agent-memory-engineering:cs-memory-engineer.
How do I update or remove the memory-engineering plugin?
Update it with claude plugin update memory-engineering@claude-code-skills in your shell, or from the Installed tab of /plugin. Remove it with /plugin uninstall memory-engineering@claude-code-skills.