memory
Skill1 starsChanged 25 days agoMITView on GitHub
Reduce an agent (all sessions of its folder) or one session to a small searchable memory (facts.jsonl) of decisions, preferences, corrections, durable facts and open requests, with the Devin SDK judging windows of the conversation and deterministic code validating every fact against its source. Use when the owner says "memory", "memória reduzida", "extrai a memória da sessão", "resume essa sessão em fatos", "processa as sessões do bot".
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
- 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
- gurinderu/crafttheir 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 repository53 other files it gives its agents.
- skills/agentsmd/templates/AGENTS.mdAGENTS.md
- advisorSkill
- agentsmdSkill
- authSkill
- backbriefSkill
- brainstormSkill
- choiceSkill
- copywritingSkill
- cost-trackSkill
- delegate-and-reviewSkill
- designSkill
- design-tasteSkill
- dev-consoleSkill
- devinSkill
- diff-reviewSkill
- diskySkill
- doctorSkill
- domain-modelSkill
- domain-planSkill
- dry-runSkill
- duplo-local-agentsSkill
- envlessSkill
- estudo-htmlSkill
- faceless-artSkill
- fluid-voice-auto-fixSkill
- handoffSkill
- herdr-canvasSkill
- hermesSkill
- hustlerSkill
- interviewSkill
- kanbanSkill
- keyword-ideasSkill
- linearSkill
- linkedin-publishSkill
- lp-draftSkill
- modifier-hereSkill
- piSkill
- postmortemSkill
- prime-agentSkill
- project-stateSkill
- retroSkill
- search-consoleSkill
- seo-auditSkill
- setup-bilibossSkill
- shapeSkill
- skill-smithSkill
- syncSkill
- task-backbriefSkill
- tensionsSkill
- threadSkill
- tmuxSkill
- traceSkill
- wiki-smithSkill
The file
Files
memory
bun run <skill dir>/scripts/memory.ts [<agent folder> | <session>] [options]Arguments
| Argument | Meaning |
<agent folder> | The agent's folder: reads all its sessions in time order. The default is the current folder. |
<session> | One session only: id, an unambiguous id prefix, or a path to the .jsonl. |
Options
| Option | Default | Meaning |
--last N | none | Only the last N owner messages and what follows them. Starts from an empty memory and overwrites --out. |
--out DIR | .memory/<scope>, or .memory/<scope>-last with --last | Where the memory lives. Reuse the same folder to continue. |
--every N | MEMORY_EVERY or 20 | Close a window every N owner messages. |
--model ID | MEMORY_MODEL or swe-2-high | Model id advertised by the Devin session. |
--rules FILE | none | The agent's current rules, usually its AGENTS.md. They outrank older facts. |
--limit N | all | Process at most N windows in this run. |
Environment
| Variable | Default | Meaning |
DEVIN_BIN | devin | The logged-in Devin CLI. No API key is used. |
MEMORY_EVERY | 20 | Default for --every. |
MEMORY_MODEL | swe-2-high | Default for --model. |
Output
| Path | Content |
<out>/facts.jsonl | The memory, one fact per line: ts, type, title, fact, source, supersedes. |
<out>/memory.json | The cursor: how many messages are already absorbed. |
<out>/work/ | Files of the last window, for inspection. |
Stdout prints the path of facts.jsonl; progress goes to stderr. Exit code is 0 on success and 1 on any failure.
Behaviour
- A run reads only what comes after the cursor, so run it again on the same
--outafter the session grows. - Each window gets up to two repair turns. If violations remain, the run stops with exit
1and keeps the last good memory. - Messages after the last owner message wait for the next run.
Examples
bun run scripts/memory.ts <agent folder> --last 10
bun run scripts/memory.ts <agent folder> --rules <agent folder>/AGENTS.md
bun run scripts/memory.ts <session id> --out <dir>
bun run scripts/memory.ts ./session.jsonl --every 10 --limit 1The extraction prompt is resources/prompt.md. The domain contract is scripts/interface.ts.
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.

