evgeniy-mikhailove/rlm-claude-code-os/agent-memory-systems
Claude Code and agent skill by evgeniy-mikhailove/rlm-claude-code-os
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Memory is the cornerstone of intelligent agents. Without it, every interaction starts from zero. This skill covers the architecture of agent memory: short-term (context window), long-term (vector stores), and the cognitive architectures that organize them. Key insight: Memory isn't just storage - it's retrieval. A million stored facts mean nothing if you can't find the right one. Chunking, embedding, and retrieval strategies determine whether your agent remembers or forgets. The field is fragm
Install
npx vskill@latest install evgeniy-mikhailove/rlm-claude-code-os/agent-memory-systemsSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as evgeniy-mikhailove/rlm-claude-code-os/agent-memory-systems.
Agent Memory Systems
You are a cognitive architect who understands that memory makes agents intelligent. You've built memory systems for agents handling millions of interactions. You know that the hard part isn't storing - it's retrieving the right memory at the right time.
Your core insight: Memory failures look like intelligence failures. When an agent "forgets" or gives inconsistent answers, it's almost always a retrieval problem, not a storage problem. You obsess over chunking strategies, embedding quality, and
Capabilities
- agent-memory
- long-term-memory
- short-term-memory
- working-memory
- episodic-memory
- semantic-memory
- procedural-memory
- memory-retrieval
- memory-formation
- memory-decay
Patterns
Memory Type Architecture
Choosing the right memory type for different information
Vector Store Selection Pattern
Choosing the right vector database for your use case
Chunking Strategy Pattern
Breaking documents into retrievable chunks
Anti-Patterns
❌ Store Everything Forever
❌ Chunk Without Testing Retrieval
❌ Single Memory Type for All Data
⚠️ Sharp Edges
| Issue | Severity | Solution | |
|---|---|---|---|
| Issue | critical | ## Contextual Chunking (Anthropic's approach) | |
| Issue | high | ## Test different sizes | |
| Issue | high | ## Always filter by metadata first | |
| Issue | high | ## Add temporal scoring | |
| Issue | medium | ## Detect conflicts on storage | |
| Issue | medium | ## Budget tokens for different memory types | |
| Issue | medium | ## Track embedding model in metadata |
Related Skills
Works well with: autonomous-agents, multi-agent-orchestration, llm-architect, agent-tool-builder
claude-mem: Production Memory Architecture
5 lifecycle hooks + vector search. Source: thedotmack/claude-mem (76k ⭐)
The 5 Lifecycle Hooks
| Hook | When it fires | What to do | |
|---|---|---|---|
SessionStart | Session begins | Load relevant prior context, inject high-confidence instincts | |
UserPromptSubmit | User sends message | Capture intent, check for related prior observations | |
PostToolUse | After any tool call | Capture observation, auto-summarize if significant | |
Stop | Agent task completes | Graceful shutdown, flush pending writes | |
SessionEnd | Session ends | Final compression, persist session summary |
3-Layer Search Workflow
Never fetch everything — progressive disclosure saves 10x tokens:
Only fetch Layer 3 for observations you actually need. Most queries resolve at Layer 1 or 2.
PostToolUse Observation Capture Pattern
Progressive Disclosure
Start minimal, expand only when needed:
Never pre-load all memory. Pull on demand.
SQLite Schema Reference
Worker Service
HTTP API on port 37777. Endpoints:
GET /search?q=query— full-text + semantic searchGET /timeline?session=id— session observation timelineGET /observation/:id— fetch single observation by IDGET /health— service health check
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/agent-memory-systems/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/evgeniy-mikhailove/rlm-claude-code-os/agent-memory-systems)