memory
Skill11 starsChanged 9 days agoMITView on GitHub
Search archived memory entries — retrieve historical context that has been compacted. Use when the user says "what was the decision we made about X", "show me past lessons on Y", "find the architecture decision for Z", or invokes /memory to search project history.
99 other projects use a version of this.
Adopted by
Most recently taken up by
- jaydubya818/ClaudeClaw-Mission-Controltheir own version, first seen Nov 8, 2026
- naman10parikh/pennytheir own version, first seen Nov 8, 2026
- NaturNestAI-Labs/beings-protocoltheir own version, first seen Nov 8, 2026
- maxtechera/memorytheir own version, first seen Nov 8, 2026
- wubinKKK/private-ai-workbenchtheir own version, first seen Nov 8, 2026
- shetengteng/skillix-hubtheir own version, first seen Nov 8, 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
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
- +6 more from naman10parikh
- +1 more from jh941213
Other versions99 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 99
- 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
- shobcoder/shob★ 575same name
- boshu2/agentops★ 453same name
- makushingu/harness-maxxing★ 161same name
89 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 repository44 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- analyze-dataSkill
- brainstormingSkill
- craft-lessonSkill
- create-agentSkill
- create-skillSkill
- customize-agentSkill
- customize-skillSkill
- designSkill
- deslopSkill
- developSkill
- discovery-reportSkill
- elicitationSkill
- empathy-mapSkill
- explore-ideaSkill
- grill-meSkill
- help-meSkill
- humanizeSkill
- incidentSkill
- iterateSkill
- journey-mapSkill
- jtbdSkill
- kanbanSkill
- launchSkill
- legal-safety-auditSkill
- maintenance-executeSkill
- maintenance-planSkill
- motionSkill
- phaseSkill
- planSkill
- research-planSkill
- retroSkill
- reviewSkill
- root-causeSkill
- round-tableSkill
- shape-upSkill
- shut-upSkill
- statusSkill
- teach-meSkill
- testSkill
- unpack-problemSkill
- validate-ideaSkill
- validation-patternsSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 82 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 40
Write for systemic patterns only, not single-instance events:
- Distinctive: line 41
Write: "Tests consistently need JWT mocking — documented the pattern."
- Very specific: line 42
Don't write: "Fixed a typo in auth.ts."
- Distinctive: line 43
Write: "API gateway times out due to unbounded connection pooling."
- Distinctive: line 44
Don't write: "Saw a 504 once."
- Very specific: line 74
Every agent calls this on entry, before loading context — it keeps project-context.md accurate no matter which agent is invoked ad-hoc.
“Common” is measured: kept by at least 6 in 10 of the 82 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 — Persistent Context Search
What this skill does
Searches the archive index for historical context. Use when you need to find a past decision, pattern, or lesson that may have been compacted out of active memory files. Also documents when and how to write to memory.
When to use
- "What was the auth decision we made?"
- "Show me past lessons about performance"
- "Find the architecture decision for the data model"
- Any query about historical project context
When NOT to use
- For current project context (use
@memory-controller load [agent] [task]instead — memory files are never read directly) - For active decisions (use
@memory-controller load [agent] [task]instead)
The memory files
| File | Purpose | When to write |
project-context.md | Stack, constraints, architecture snapshot, machine state fence | Set during init, synced automatically at every session (session-start, session-write, complete, set-phase) |
session-summaries/latest.md | Single authoritative live cursor and wrap-up of the last session | At session shutdown (session-write) |
active-decisions.md | Running record of current-cycle decisions | After every resolved decision |
lessons-learned.md | Engineering insights, bugs, gotchas | After non-obvious fixes or discoveries |
patterns-and-conventions.md | Reusable patterns, coding conventions | When a pattern repeats across 3+ instances |
blockers-and-risks.md | Active blockers, known risks | When blocked; remove when resolved |
When to write to memory
Write for systemic patterns only, not single-instance events:
- Write: "Tests consistently need JWT mocking — documented the pattern."
- Don't write: "Fixed a typo in auth.ts."
- Write: "API gateway times out due to unbounded connection pooling."
- Don't write: "Saw a 504 once."
Entry format strings
| Tag | Use for | Example |
[AUTH] | Authentication, authorization, sessions, tokens | Auth flow requires email verification |
[API] | API contracts, endpoints, versioning, error codes | Payment API returns 402 on declined card |
[DATA] | Data models, schemas, migrations, storage | User table migrated to UUID primary keys |
[ARCH] | System architecture, component design, boundaries | Chose PostgreSQL over MongoDB for ACID compliance |
[INFRA] | Infrastructure, CI/CD, deployment, environments | CI runs integration tests before deployment |
[SECURITY] | Security decisions, vulnerabilities, threat model | Rate limiting not implemented on login endpoint |
[PERF] | Performance, caching, query optimization, load | Query planner change cut report time by 60% |
[PRODUCT] | Product decisions, scope, features, priorities | Dropped offline mode from MVP scope |
[PROCESS] | Team process, workflow, handoffs, conventions | Feature branch review requires 2 approvals |
[CODE] | Coding patterns, conventions, standards | All React components use named exports |
[TEST] | Testing strategy, coverage, QA decisions | E2E suite runs nightly on staging |
[ML] | Machine learning, models, pipelines, data | Embedding model upgraded to v3 |
[UX] | UX decisions, flows, accessibility, interactions | Onboarding reduced from 5 steps to 3 |
[MARKET] | Market research, competitive intelligence | Competitor added free tier |
[RISK] | Known risks, blockers, mitigations, dependencies | Third-party API rate limits could block launch |
[LESSON] | Bugs, gotchas, fixes | Race condition in websocket handler |
[DECISION] | Resolved decisions with rationale | Monorepo with Nx — unified tooling |
These are the canonical 17 domain tags (see .agents/templates/memory/memory-entry-template.md). Entries with any other tag are rejected.
Workflow
Step 0: Session start (project-context refresh)
Every agent calls this on entry, before loading context — it keeps project-context.md accurate no matter which agent is invoked ad-hoc. Run:
node .agents/scripts/orchestrator_state.js session-start --agent {agent} --domain {domain} --goal "{one-line goal}"The mandatory complete call also refreshes project-context as a backstop, so the context updates even if session-start is skipped.
Step 1: Search archive
@memory-controller search $ARGUMENTSStep 2: Load specific entries (optional)
Archived entries are retrieved by keyword query, not by ID — there is no load-archive [entry-id] command. To pull a specific entry, pass a distinctive phrase from it:
node .agents/scripts/memory_filter.js --search "<distinct phrase from the entry>" --max 5This is what @memory-controller search [query] delegates to; it scans archive/index.ndjson.
Step 3: Report
Return results with title, domain tag, relevance score, summary, source, and date.
Step 4: Write to memory (on request)
@memory-controller write [entry-type] [content]Compaction triggers
Compaction is word-based, matching .agents/scripts/compaction_guard.js (the executable source of truth) and @memory-controller's Operation 4 thresholds:
| File | Word threshold |
project-context.md | 500 |
active-decisions.md | 1,800 |
patterns-and-conventions.md | 1,500 |
lessons-learned.md | 1,300 |
blockers-and-risks.md | 900 |
session-summaries/latest.md | 600 |
project-context.md is never compacted (static file). When a file exceeds its threshold, the oldest resolved/stale entries are archived. Archived entries remain searchable via @memory-controller search.
State machine integration
After write: node .agents/scripts/orchestrator_state.js complete --agent memory-controller --artifact {file}
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.

