memory-system
Skill by bojieli
Guides the design, build or evaluation of a user memory system for AI agents. It covers a three-level evaluation framework, storage format choices, Mem0 and Memobase trade-offs, memory compression, privacy redaction, and when to use memory instead of RAG.
Install memory-system
Built from the published package, never by AI.
git clone --depth 1 https://github.com/bojieli/ai-agent-book /tmp/ai-agent-book && mkdir -p ~/.claude/skills && cp -r /tmp/ai-agent-book/skills/memory-system ~/.claude/skills/memory-systemRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/bojieli/ai-agent-book /tmp/ai-agent-book && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ai-agent-book/skills/memory-system ~/.gemini/antigravity-cli/skills/memory-systemAntigravity 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 Chinese-language guide for designing, implementing or evaluating user memory for AI agents. It separates three decisions: where memory lives (trajectory, long-term user memory, or business state), how it is stored, and what kind it is (episodic, semantic or procedural). It describes four storage formats, from Simple Notes to Advanced JSON Cards, and a way to turn memory into executable code for aggregation and rule checks.
It also covers a three-level evaluation framework (basic recall, multi-session retrieval and proactive service), memory compression and periodic consolidation, privacy redaction with local models, and the boundary between user memory and RAG. It names Mem0 and Memobase as frameworks to compare. It is aimed at developers building or testing memory features for agents. The source also points to code folders for each pattern.
Written from the project's SKILL.md and checked against it.
What it can do
- Memory evaluation frameworkScores agent memory on three levels: basic recall, multi-session retrieval and proactive service.
- Storage format selectionCompares Simple Notes, Enhanced Notes, JSON Cards and Advanced JSON Cards with their trade-offs.
- Framework comparisonExplains design trade-offs between Mem0 and Memobase for user memory.
- Memory compressionDescribes importance scoring, clustering into summaries and abstraction into semantic or procedural memory.
- Privacy redactionDescribes redacting sensitive data with a local small model and a JSON Schema output.
- Memory versus RAG decisionExplains when personal information belongs in user memory and when shared knowledge belongs in RAG.
- Executable memory designDescribes turning memory into typed state and plain functions for checks such as passport validity.
- Evaluation methodDescribes multi-session test cases scored with LLM-as-a-judge against reference answers.
Try asking
- Help me choose a storage format for my agent's user memory
- Compare Mem0 and Memobase for a customer support agent
- Show me how to redact sensitive data from agent memory logs
Good to know
- The skill text is written in Chinese.
- The source does not include install steps; code examples are referenced by folder name only.
- The multimodal memory section is described as a frontier note, not a settled method.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/memory-system/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md12 KB
Alternatives to memory-system
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-system: common questions
When should I use user memory instead of RAG?
Personal information about a single user, such as preferences, identity and history, belongs in user memory. Collective knowledge shared by all users, such as regulations or company processes, belongs in a RAG knowledge base.
Which memory storage format should I pick?
The source suggests Advanced JSON Cards for a small number of key items and Simple Notes for many non-critical facts. Production systems often mix formats by category.
How does the skill suggest evaluating a memory system?
It uses three levels, from basic recall to proactive service, with about 20 cases per level. The agent builds memory from sessions and is judged with an LLM-as-a-judge against reference answers.
How do I install memory-system?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is memory-system free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is memory-system safe to use?
It scores 88 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-system?
Similar skills: agentmemory-config, understand-knowledge, reports, forget.
