memory-systems

Design persistent semantic memory architectures for agents using vector stores and temporal knowledge graphs.

2|Updated May 30, 2026
One-click install
npx skills add https://github.com/virahitvin8/crafty-gis --skill memory-systems-virahitvin8
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: memory-systems
Source: https://github.com/virahitvin8/crafty-gis/tree/main/GIT_STAR/assignment-generator/antigravity-skills-main/antigravity-skills-main/skills/memory-systems
Command: npx skills add https://github.com/virahitvin8/crafty-gis --skill memory-systems-virahitvin8

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, and includes scripts (resource) and references (resource) components.

What problem does it solve? Agents lose all knowledge when sessions end, forcing them to relearn user preferences, entity facts, and prior context. This Skill provides the design patterns, framework comparisons, and working code needed to build persistent memory layers that retain knowledge across sessions. ## Core Features & Use Cases - Framework Selection Guidance: Compare Mem0, Zep/Graphiti, Letta, Cognee, and LangMem against benchmarks like LoCoMo and LongMemEval to pick the right memory architecture. - Layered Memory Design: Choose between working, short-term, long-term, entity, and temporal knowledge graph layers based on retrieval needs. - Working Implementation Code: Use the included Python module with VectorStore, PropertyGraph, TemporalKnowledgeGraph, and IntegratedMemorySystem classes to prototype memory systems. - Use Case: Build a support agent that remembers each customer's preferences and history across conversations, retrieves relevant facts semantically, and answers time-scoped questions like "what plan was this user on in March?". ## Quick Start Ask the agent to design a cross-session memory architecture for your agent and recommend a framework based on your retrieval requirements.

Frequently Asked Questions about memory-systems

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add persistent memory to an AI agent across sessions?

Start with file-system memory storing facts as timestamped JSON, then escalate to a vector store like Mem0 when you need semantic search. Add a temporal knowledge graph such as Zep/Graphiti only when you need relationship traversal or time-travel queries.

Mem0 vs Zep vs Cognee: which agent memory framework should I choose?

Choose Mem0 for fast time-to-production with managed infrastructure, Zep/Graphiti for bi-temporal modeling and relationship reasoning, and Cognee for dense multi-layer semantic graphs with customizable ingestion pipelines. Letta fits agents needing deep self-introspection over their own memory.

What is a temporal knowledge graph and when do I need one?

A temporal knowledge graph stores facts with valid_from and valid_until timestamps so agents can answer point-in-time queries like where a user lived on a specific date. Use one when facts change over time and stale data would poison agent behavior.

How do I evaluate an agent memory system?

Benchmark against LoCoMo for long-conversation retention, LongMemEval for long-term memory, and DMR for retrieval accuracy. Treat results as dated evidence and re-measure after any architecture change rather than trusting absolute rankings.

Why does my agent retrieve stale or conflicting memories?

Stale retrieval happens when facts lack temporal validity tracking or consolidation never runs. Track valid_from and valid_until on mutable facts, prefer the most recent fact on conflict, and consolidate periodically by invalidating rather than deleting old entries.

When should I not use a vector database for agent memory?

Skip vector databases during prototyping since plain files with naming conventions can match specialized tooling on some benchmarks. Semantic search also degrades on multi-hop reasoning queries, where graph traversal is the better fit.