memory-management
Skill0 starsChanged 4 months agoMITView on GitHub
Use when deciding whether to persist knowledge in cross-session agent memory (MEMORY.md, auto-memory), when auto-memory seems stale or preferences leak across tasks, or capturing session outputs worth remembering (answered questions, business rules, conventions, failed approaches). Scope: memory hygiene only — improving skills/rules/hooks belongs to `self-improvement`.
17 other projects use a version of this.
Adopted by
Most recently taken up by
- jau123/claude-memory-managertheir own version, first seen Oct 5, 2026
- ruvnet/ruflotheir own version, first seen Sep 10, 2026
- Soulcynics404/AgentForgetheir own version, first seen Aug 24, 2026
- Jylhis/skillstheir own version, first seen Aug 5, 2026
- soden46/syarif-laravel-ai-skillstheir own version, first seen Jul 16, 2026
- IcodeNet/agent-skillstheir own version, first seen Jul 10, 2026
Used with
Projects with it also use agent-agent, agent-analyze-code-quality and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
ZekiogSkillagent-agent
Agent skill for agent - invoke with $agent-agent
Also in 3 projects that use this
ZekiogSkillagent-analyze-code-quality
Agent skill for analyze-code-quality - invoke with $agent-analyze-code-quality
Also in 3 projects that use this
- +10 more from Zekiog
Other versions17 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 17
- ruvnet/ruflo★ 74ksame name
- anthropics/knowledge-work-plugins★ 26ksame name
- xiaolai/echo-sleuth-for-claude★ 9same name
- DojoCodingLabs/claude-code-waypoint★ 4same name
- grandamenium/claude-code-memory-skill★ 4same name
- hajekim/agentic-design-patterns-skills★ 4same name
- jau123/claude-memory-manager★ 4same name
- mmccalla/coding-agent-skill-library★ 4same name
- soden46/syarif-laravel-ai-skills★ 4same name
- Zekiog/ruflo★ 2same name
7 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository77 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/project-bootstrap/templates/agents.mdAGENTS.md
- a11y-auditSkill
- ai3d-genSkill
- ai-coding-dictionarySkill
- ai-toolsSkill
- api-specSkill
- architecture-diagramsSkill
- architectureSkill
- ask-bundleSkill
- bragSkill
- code-reviewSkill
- computer-useSkill
- context7Skill
- context-hygieneSkill
- creative-engineeringSkill
- cu-realtimeSkill
- data-analystSkill
- databaseSkill
- debuggingSkill
- deploySkill
- devin-configSkill
- dispatching-parallel-agentsSkill
- dockerSkill
- e2e-testingSkill
- executionSkill
- fact-checkSkill
- finishing-a-development-branchSkill
- gatesSkill
- ghSkill
- git-workflowsSkill
- grillingSkill
- handoffSkill
- humanizerSkill
- i18nSkill
- impeccableSkill
- implement-layaSkill
- intakeSkill
- jiraSkill
- knowledge-modelingSkill
- mcp-governanceSkill
- media-toolsSkill
- mesh-utilsSkill
- observability-qualitySkill
- obsidian-workflowSkill
- operate-blenderSkill
- operate-godotSkill
- performanceSkill
- planningSkill
- playbookSkill
- project-bootstrapSkill
- project-orchestratorSkill
- prompt-compilerSkill
- prototypeSkill
- researchSkill
- scanSkill
- scheduled-turnsSkill
- scrape-toolsSkill
- securitySkill
- self-improvementSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 16 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 36
When the session produces knowledge worth keeping — answered questions, business rules, project conventions, failed approaches, reusable …
- Very specific: line 71
After a feature/fix lands and before clear/compact: capture intent (why), state (what + deviations), lessons (worked/failed) — then ask …
“Common” is measured: kept by at least 6 in 10 of the 16 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Memory Management
Cross-session memory is a contract with the user, not a black box. Naive
accumulation degrades reliability; managed memory helps. Default: explicit
user-authored preferences (.devin/global_rules.md, skills, repo docs),
not auto-saved memory.
Stateless vs managed vs naive
| Mode | When | Evidence |
| Stateless | Default for coding agents. Preferences live in rules/skills/docs the user controls. | Most predictable; no drift or contamination. |
| Managed memory (selective add+delete) | Long-horizon tasks where recalling past executions genuinely helps. User reviews and prunes. | +10% absolute vs naive (arXiv:2505.16067); MemGPT (arXiv:2310.08560). |
| Naive auto-memory (append-only) | Never. | 16-20pp reliability loss (arXiv:2605.07313); temporal contamination (arXiv:2605.17830); reasoning drift (arXiv:2607.02374). |
Hygiene rules
- Prefer explicit — user-authored preferences over agent-auto-saved memory.
- Never naive growth — managed memory must have selective add AND delete.
- Audit periodically — review auto-memory for stale/large/drifting entries; prune aggressively.
- Isolate preferences by task — global injection of all preferences into every session causes contamination.
- Don't trust auto-inferred preferences — preference following is <10% at 10 turns zero-shot (arXiv:2502.09597). Write them down.
- Memory is a contract — user must be able to view, modify, delete anything saved (arXiv:2404.15269).
Anti-patterns: append-only MEMORY.md; auto-saving every preference; "delete all memory" (managed memory helps); opaque memory.
Capturing project memory
When the session produces knowledge worth keeping — answered questions, business rules, project conventions, failed approaches, reusable solutions, decisions:
- Notice — spot something future sessions will need.
- Propose —
ask_user_questionshowing the note text and path. Wait for approval. - Write — on approval, save a Markdown note under
.devin/memory/. - Link — update
.devin/memory/MOC.mdand the daily logbook entry. - Retrieve —
python scripts/query-memory.py "<query>"(in this skill'sscripts/) or/researchscoped to.devin/memory/.
Paths
| What | Path | Pattern |
| Answered question / business rule | .devin/memory/notes/YYYY/MM/ | <topic>.md |
| Daily session log | .devin/memory/logbook/YYYY/MM/ | YYYY-MM-DD.md |
| Decisions / ADRs | .devin/memory/decisions/ | ADR-NNN-<slug>.md |
| Index | .devin/memory/MOC.md | MOC.md |
Note format: see templates/note.md. Required frontmatter: title, date,
session, category, tags, status, cues: (path/symbol/keyword
triggers).
Capture rules
- No capture without approval — always confirm via
ask_user_question. - Plain text — Markdown + frontmatter + grep; no vector DB.
- One fact per note; cite sources (
source: path:lineorsession:). - Write cues, not just facts —
cues:tells future agents when to recall. - Prune stale notes on each capture (
status: archivedor delete). - No secrets in notes (Rules 19, 24).
Post-implementation capture
After a feature/fix lands and before clear/compact: capture intent (why),
state (what + deviations), lessons (worked/failed) — then ask approval.
Evidence
| Claim | Source |
| Naive growth −16-20pp reliability | arXiv:2605.07313 |
| Contamination rises with exposure | arXiv:2605.17830 |
| Selective add+delete +10% vs naive | arXiv:2505.16067 |
| Reasoning drift despite fluent answers | arXiv:2607.02374 |
| Preference following <10% @10 turns | arXiv:2502.09597 |
| Managed memory > fixed context | arXiv:2310.08560 (MemGPT), arXiv:2410.10813 |
| Excessive retrieval harms agentic tasks | arXiv:2608.15008 |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

