memory
Skill3 starsChanged 9 days agoMITView on GitHub
Persistent, token-cheap memory across sessions, agents and models — what was decided, what is done, where work stopped, what the next step is, and stable facts about the project and the user. Agents resume from the last open point instead of restarting or re-asking. Use at the start and end of every multi-session task, when the user says "remember", "continue", "where were we", "we already decided this", "don't start over", or when a session may be interrupted.
123 other projects use a version of this.
Adopted by
Most recently taken up by
- yezzzp/agent-relay-protocoltheir own version, first seen Nov 29, 2026
- biliboss/skillstheir own version, first seen Nov 29, 2026
- BlinkVoid/GearCoretheir own version, first seen Nov 29, 2026
- matthewwong525/WongStacktheir own version, first seen Nov 29, 2026
- matthewdonsemail-lab/logtheir own version, first seen Nov 29, 2026
- rshankras/claude-code-apple-skillstheir own version, first seen Nov 29, 2026
Used with
Projects with it also use ecosystem-reference, fractal-delegation 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.
naman10parikhSkillecosystem-reference
Quick-access directory of Claude Code ecosystem repos, skills, plugins, MCPs, and patterns. Use when improving the harness.
Also in 5 projects that use this
naman10parikhSkillfractal-delegation
Also in 5 projects that use this
roronoazoroshao369Skillmemory-compression
Also in 5 projects that use this
Maliot100XSkillsend-user-message
Send a proactive message to a paired user via their channel (Discord, Telegram, or WhatsApp). Use when the agent needs to notify, alert, or send an unsolicited message to a user — especially during heartbeat invocations, scheduled tasks, or when the agent wants to reach out without a prior user message in the current conversation. Triggers: 'send message to user', 'notify user', 'alert user', 'message the user on discord/telegram/whatsapp', or any need to proactively communicate with a paired sender.
Also in 4 projects that use this
jh941213Skilldocs-ci
문서 CI(링크·OpenAPI lint·breaking 게이트·mermaid 검증)나 문서 드리프트 감지(docs.yaml 신선도 검사)를 설치하거나 돌릴 때 사용. 문서 내용 작성은 docs-architecture·docs-interfaces·docs-manuals.
Also in 3 projects that use this
jh941213Skilldocs-interfaces
API·이벤트 인터페이스 문서(OpenAPI·swagger·AsyncAPI 명세, 엔드포인트 레퍼런스, API 구성도·시퀀스, API CHANGELOG)를 만들거나 코드와 맞출 때 사용. 시스템 구성도는 docs-architecture, API 설계 원칙은 api-design-principles.
Also in 3 projects that use this
- +5 more from naman10parikh
- +1 more from jh941213
Other versions123 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 123
- google-gemini/gemini-cli★ 109ksame name
- jlia0/tinyclaw★ 3.6ksame name
- TinyAGI/tinyagi★ 3.6ksame name
- TinyAGI/tinyclaw★ 3.6ksame name
- Chachamaru127/claude-code-harness★ 3.2ksame name
- codeaholicguy/ai-devkit★ 1.7ksame name
- Muuuun/luxas★ 1.2ksame name
- rshankras/claude-code-apple-skills★ 915same name
- shobcoder/shob★ 575same name
- boshu2/agentops★ 464same name
113 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 repository26 other files it gives its agents.
- skills/ai-integration/references/agents.mdAGENTS.md
- agent-behaviorSkill
- agent-orchestraSkill
- ai-integrationSkill
- analysisSkill
- autonomous-loopSkill
- brand-ipSkill
- codebase-analysisSkill
- commerce-integrationsSkill
- company-setupSkill
- content-socialSkill
- daily-assistantSkill
- diagrams-mappingSkill
- growth-operationsSkill
- guided-discoverySkill
- infrastructure-planningSkill
- market-researchSkill
- plannerSkill
- product-buildSkill
- researchSkill
- root-cause-analysisSkill
- security-operationsSkill
- software-engineeringSkill
- token-economySkill
- visual-designSkill
- workflow-automationSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 2 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 105 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
Create only the files you need.
- Very specific: line 24
Read the index file and .memory/state.md.
- Distinctive: line 26
If memory conflicts with what you observe (code, files, outputs), observation wins.
- Very specific: line 29
Update state.md after each meaningful step: task finished, decision made, blocker hit, before any long or risky operation.
- Very specific: line 51
Keep the index file small.
- Very specific: line 56
Only the coordinating agent (or the user) edits decisions.md.
- Distinctive: line 60
Ask before storing anything personal they didn't clearly intend to be remembered.
“Common” is measured: kept by at least 6 in 10 of the 105 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
Memory exists so no agent ever starts from zero, re-asks a settled question, or redoes finished work.
1. Layout (plain Markdown files, any tool can read them)
AGENTS.md / CLAUDE.md # always-loaded index: ≤ 80 lines, stable facts + pointers (tool reads it automatically)
.memory/
├── state.md # where we are: goal, done, in progress, NEXT step, blockers ← most important
├── decisions.md # settled decisions with date and reason (append, supersede — never silently edit)
├── facts.md # verified project facts: commands, architecture, environments, conventions
└── user.md # user preferences: language, level, tone, constraints (only what they shared)Templates: references/templates.md. Tool-specific locations (Claude Code, Codex, others): references/integrations.md.
Create only the files you need; small projects may need just state.md.
2. Session start (always, before other work)
- Read the index file and
.memory/state.md. Read other memory files only when relevant to the task. - State in one line where things stand and what you'll do next — then do it. Don't ask the user to re-explain.
- If memory conflicts with what you observe (code, files, outputs), observation wins; fix the memory.
3. Checkpoint (during work — don't wait for the end)
Update state.md after each meaningful step: task finished, decision made, blocker hit, before any long or risky operation.
Sessions can die at any moment; the last checkpoint is all the next agent gets.
4. What to save
Save only what is durable, verified and not cheaply re-derivable:
- Decisions and their reasons ("chose Postgres over MongoDB: relational orders, team knows SQL").
- Progress: done / in progress / next / blocked-on.
- Facts discovered with effort: the working build command, a non-obvious gotcha, an environment quirk.
- User preferences they expressed ("answers in Turkish", "Rust-first", "no long summaries").
5. What never to save
- Secrets: passwords, tokens, keys, connection strings with credentials. Store where a secret lives, never its value.
- Raw logs, full outputs, large code excerpts — summarize to the essential line with a file path.
- Things obvious from the code or the conversation that will be re-read anyway.
- Guesses. Unverified items are marked
(unverified)or left out. - Sensitive personal data (health, finances, identity) unless the user explicitly asks to store it.
6. Writing rules
- Update, don't append duplicates. One fact, one place. Rewrite stale lines.
- Date entries that can go stale (
2026-11-21). Prune what's obsolete when you touch a file. - Short lines, scannable. Memory is read every session — every line costs tokens forever.
- Decisions are never silently changed. A new decision supersedes an old one with a reference:
D7 supersedes D3. - Keep the index file small; move detail into
.memory/and point to it.
7. Multiple agents
- One shared
state.md; each entry tagged with the agent/role ([worker],[supervisor],[research]). - Claim a task before working on it (
in progress — [agent] since <time>) to avoid duplicate work. - Only the coordinating agent (or the user) edits
decisions.md; others propose.
8. User control
The user can read, edit or delete any memory file. When they say "forget X", remove it everywhere and confirm. Ask before storing anything personal they didn't clearly intend to be remembered.
Self-check at session end
- Would a fresh agent know exactly what to do next from
state.mdalone? - Is anything secret, stale or duplicated in memory? Remove it.
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.

