memory-systems
Skill by muratcankoylan
Guides agents in designing persistent memory across sessions. It covers memory layers, framework choice, retrieval strategies, consolidation and benchmark selection. Intended for developers building agents that must keep knowledge over time.
Install memory-systems
Built from the published package, never by AI.
git clone --depth 1 https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering /tmp/Agent-Skills-for-Context-Engineering && mkdir -p ~/.claude/skills && cp -r /tmp/Agent-Skills-for-Context-Engineering/skills/memory-systems ~/.claude/skills/memory-systemsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering /tmp/Agent-Skills-for-Context-Engineering && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Agent-Skills-for-Context-Engineering/skills/memory-systems ~/.gemini/antigravity-cli/skills/memory-systemsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a design guide for persistent semantic memory in agent systems. It covers cross-session knowledge retention, entity tracking, temporal validity, graph or vector retrieval, memory consolidation, and benchmark selection. It describes five memory layers, from the context window to a temporal knowledge graph, and tells the agent to pick the shallowest layer that meets the need.
The skill compares frameworks such as Mem0, Zep/Graphiti, Letta, Cognee, LangMem and plain file-system memory. It also lists retrieval strategies (semantic, entity-based, temporal and hybrid), consolidation rules, and error recovery steps for empty, stale or conflicting results. It is aimed at developers building agents that must remember users, entities or facts across sessions.
Written from the project's SKILL.md and checked against it.
What it can do
- Memory layer selectionPicks the shallowest memory layer that meets persistence and retrieval needs.
- Framework comparisonNarrows choices among Mem0, Zep/Graphiti, Letta, Cognee, LangMem and file-system memory.
- Retrieval strategy matchingMatches semantic, entity-based, temporal or hybrid retrieval to the query shape.
- Temporal validity trackingTracks validity intervals for facts that change over time.
- Memory consolidationRuns periodic consolidation and invalidates old memories without discarding them.
- Retrieval error recoveryGives fallback steps for empty, stale or conflicting memory results.
- Benchmark selectionPoints to LoCoMo, LongMemEval and DMR for evaluating memory systems.
What you need
- Python
Try asking
- Design a memory layer that keeps user preferences across sessions
- Which memory framework fits an agent that needs temporal queries?
- Help me set up memory consolidation for my agent's long-term store
Good to know
- Benchmark numbers are dated and must be rechecked before product claims.
- Zep advanced features are noted as cloud-locked.
- Cognee has heavier ingest-time processing.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/memory-systems/SKILL.md, skills/memory-systems/scripts/memory_store.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md16 KB -
references/implementation.md18 KB -
scripts/memory_store.py21 KB
Alternatives to memory-systems
All alternatives →Set up and diagnose a local agentmemory installation. It covers MCP connections, environment variables, ports, auth and feature flags, and is for users getting started or checking a connection.
Analyzes a Karpathy-pattern LLM wiki and builds an interactive knowledge graph with entities, implicit links and topic clusters. Built for people who maintain LLM-generated markdown wikis.
Saves and loads timestamped reports for AI assistants, with keyword routing for fast lookup. It also runs an Actionability Gate that checks report links before delivery. Intended for morning briefings, meeting digests and research reports.
Removes a personal fact, preference, relationship detail, topic or past event from Muse's active memory. It also stops existing copies and automations from bringing it back.
Git Context Controller (GCC) is a skill that stores agent memory as a versioned file system under .GCC/. It suits multi-step projects that need milestone tracking, branching and context recovery across sessions.
Guides an evidence-first reading of a book, article, PDF or document set. Built for readers who want claims, evidence and recall rather than a short summary.
Compare with agentmemory-config, understand-knowledge or reports
memory-systems: common questions
Which memory framework should I start with?
The skill recommends starting with file-system memory and storing facts as structured JSON with timestamps. Add a vector store, Zep/Graphiti, Letta or Cognee only when retrieval quality requires it.
What is the difference between Graphiti and Cognee?
Graphiti uses structured ties with generic relations and suits temporal bi-modeling. Cognee builds denser multi-layer semantic graphs with detailed relationship edges.
Should I trust the benchmark scores in this skill?
The skill treats benchmark numbers as dated, source-specific signals rather than absolute rankings. It advises rechecking them before making product claims.
How do I install memory-systems?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is memory-systems free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is memory-systems safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to memory-systems?
Similar skills: agentmemory-config, understand-knowledge, reports, forget.
