agent-memory
Skill27 starsChanged 3 months agoApache-2.0View on GitHub
Use when implementing or managing persistent, hierarchical memory systems for AI agents. Covers cross-session state, fact supersession, and self-managed memory tools to enable long-term recall and adaptive agent behavior.
20 other projects use a version of this.
Adopted by
Most recently taken up by
- aditya-deokar/software-factorytheir own version, first seen Sep 29, 2026
- komluk/scaffoldingtheir own version, first seen Sep 28, 2026
- t4sh/skills4shtheir own version, first seen Sep 28, 2026
- yogvidwankhede/vishwakarmatheir own version, first seen Sep 26, 2026
- brianschroeder/simple-agent-memorytheir own version, first seen Sep 18, 2026
- spscream/ai-floppytheir own version, first seen Sep 13, 2026
Used with
Projects with it also use skill-authoring.
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.
Microsoft AzureSkillskill-authoring
Write Agent Skills that comply with the agentskills.io specification. WHEN: "create a skill", "new skill", "write a skill", "skill template", "skill structure", "review skill", "skill PR", "skill compliance", "SKILL.md format", "skill frontmatter", "skill best practices". DO NOT USE FOR: general documentation. INVOKES: vally CLI.
Also in 3 projects that use this
Other versions20 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 20
- tigerless-labs/agent-memory★ 2.4ksame name
- databricks/app-templates★ 208same name
- ntorga/agent-starter-kit★ 146same name
- JKHeadley/instar★ 81same name
- nimadorostkar/Claude-Skills-collection★ 28same name
- komluk/scaffolding★ 15same name
- dzianisv/skills★ 4same name
- GPTtang/skill-atlas★ 4same name
- t4sh/skills4sh★ 4same name
- mattstruble/skills★ 2same name
10 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 repository163 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- claukitSkill
- mcp-agent-patternsSkill
- multi-agent-orchestrationSkill
- workflow-state-machinesSkill
- ai-multimodalSkill
- geo-fundamentalsSkill
- media-processingSkill
- screenshotSkill
- seo-fundamentalsSkill
- soraSkill
- aestheticSkill
- figma-implement-designSkill
- figmaSkill
- frontend-designSkill
- mobile-designSkill
- tailwind-patternsSkill
- ui-stylingSkill
- agentic-ragSkill
- api-patternsSkill
- app-builderSkill
- architectureSkill
- ask-mattSkill
- aspnet-coreSkill
- backend-developmentSkill
- better-authSkill
- clean-codeSkill
- code-agent-patternsSkill
- codebase-designSkill
- code-review-checklistSkill
- code-reviewSkill
- context-engineeringSkill
- context-optimizationSkill
- database-designSkill
- databasesSkill
- diagnoseSkill
- diagnosing-bugsSkill
- docs-seekerSkill
- domain-modelingSkill
- frontend-dev-guidelinesSkill
- graph-ragSkill
- i18n-localizationSkill
- implementSkill
- improve-codebase-architectureSkill
- lint-and-validateSkill
- llm-evalsSkill
- nextjs-best-practicesSkill
- nodejs-best-practicesSkill
- openai-docsSkill
- performance-profilingSkill
- playwright-interactiveSkill
- playwrightSkill
- prompt-engineeringSkill
- prototypeSkill
- python-patternsSkill
- react-patternsSkill
- render-deploySkill
- repomixSkill
- researchSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 11 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 18 edited versions we read keep these.
11
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 14
When designing systems that must persist state across independent interaction sessions.
- Distinctive: line 15
When an agent needs to manage large volumes of user-specific facts that exceed the context window.
- Distinctive: line 16
When implementing self-managed memory tools (MemGPT/Letta patterns) to allow agents to control their own knowledge base.
- Distinctive: line 17
When building systems requiring automatic entity updates (Mem0 pattern) to resolve conflicting or stale information.
- Distinctive: line 36
When a new fact conflicts with an old one, perform an "update" (supersession) rather than appending duplicates.
- Distinctive: line 56
Use the following heuristic for resource allocation:
- Distinctive: line 57
Critical Path: Keep in active context if needed for the current turn.
- Distinctive: line 59
Episodic Recall: Search past logs only when explicitly prompted or when a long-term pattern is requested.
- Very specific: line 60
Avoid Bloat: Do not put long documents directly into the prompt.
- Distinctive: line 63
Consistency Check: Run automated verification to detect conflicting memory entries.
- Distinctive: line 64
Persistence Test: Verify that user-defined preferences are available after agent restart.
- Distinctive: line 66
Latency Monitoring: Ensure that retrieving from memory does not introduce unacceptable delays in response time.
“Common” is measured: kept by at least 6 in 10 of the 18 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
Agent Memory Framework
Overview
The agent-memory skill provides a standardized architectural approach to building intelligent memory systems for agents within the KILO-KIT ecosystem. It bridges the gap between ephemeral context windows and durable, long-term storage, enabling agents to maintain user preferences, project-specific conventions, and debugging history across multiple sessions.
When To Use
- When designing systems that must persist state across independent interaction sessions.
- When an agent needs to manage large volumes of user-specific facts that exceed the context window.
- When implementing self-managed memory tools (MemGPT/Letta patterns) to allow agents to control their own knowledge base.
- When building systems requiring automatic entity updates (Mem0 pattern) to resolve conflicting or stale information.
Core Concepts
- Memory Hierarchy: Differentiating between transient working context and persistent knowledge.
- Fact Extraction: Identifying core entities, preferences, and relationships from conversational flow.
- Supersession: Automatically replacing outdated facts with new information to maintain "ground truth."
- Temporal Validity: Tracking the lifespan and relevance of memory entries over time.
- Persistence: Ensuring data survives agent resets or session termination.
Memory Architecture
The framework defines four distinct tiers of memory:
- Working Context (RAM): The immediate token window. Ephemeral, high-speed, and limited in capacity.
- Episodic Memory: Logged history of past interactions, enabling agents to query "what we discussed last time."
- Semantic Vector Store: Long-term storage for semantic concepts, documentation snippets, and project conventions, retrieved via similarity search.
- Archival Storage (Disk): Cold storage for large documents or historical artifacts that are rarely needed but must be maintained.
Implementation Patterns
Fact Extraction & Supersession (Mem0 Pattern)
- Implement extraction loops that analyze messages for key-value pairs (e.g.,
user_preference: dark_mode). - When a new fact conflicts with an old one, perform an "update" (supersession) rather than appending duplicates. This ensures the agent always acts on the most recent truth.
Temporal Validity Windows (Zep/Graphiti Pattern)
- Annotate memory items with timestamps and
TTL(Time-To-Live). - Implement background cleanup processes to purge or archive expired or invalidated information based on these windows.
Self-Managed Memory Tools (Letta/MemGPT Pattern)
- Equip agents with dedicated function calls:
memory_write(key, value, importance)memory_read(query)memory_archive(id)
- Empower the agent to decide when to offload items from the working context to memory storage.
CRUD Operations
- Create: Automatically extract new knowledge from successful interactions and persist to storage.
- Read: Perform semantic search across the vector store and episodic history to augment the current context.
- Update: Supersede stale facts with verified new information to prevent hallucinations or conflicting behavior.
- Delete/Archive: Offload deprecated or low-value information to archival storage to maintain high-signal density in memory.
Context Window Management
Use the following heuristic for resource allocation:
- Critical Path: Keep in active context if needed for the current turn.
- Supportive Memory: Fetch from vector store if the task requires historical context.
- Episodic Recall: Search past logs only when explicitly prompted or when a long-term pattern is requested.
- Avoid Bloat: Do not put long documents directly into the prompt; use
read_resourceor semantic retrieval instead.
Quality Gates
- Consistency Check: Run automated verification to detect conflicting memory entries.
- Persistence Test: Verify that user-defined preferences are available after agent restart.
- Signal-to-Noise Ratio: Periodically audit the memory store to remove redundant, outdated, or low-relevance facts.
- Latency Monitoring: Ensure that retrieving from memory does not introduce unacceptable delays in response time.
References
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.

