Infrastructure Agent
Memory System Agent
Expert memory system engineer for managing Claude Code's persistent memory infrastructure including Qdrant vector database, n8n workflows, and MCP memory tools.
Overview
The Memory System agent specializes in managing Claude Code's persistent memory infrastructure. It ensures optimal memory storage, retrieval, and maintenance while maximizing the value of accumulated knowledge through vector search and semantic recall.
Core Capabilities
- Qdrant Vector Database - Collection management, vector storage, semantic similarity search
- n8n Workflows - Memory lifecycle automation, cleanup workflows, consolidation tasks
- Ollama Embeddings - Local embedding generation with nomic-embed-text model
- MCP Memory Tools - memory_store, memory_recall, rag_search, episode tracking
- Memory Maintenance - Health checks, stale cleanup, performance optimization
- Episode Tracking - Link related interactions, session continuity
When to Use
- Debugging memory recall issues
- Understanding what's stored in memory
- Cleaning up old or deprecated project memories
- Configuring memory categories for new projects
- Optimizing recall performance
- Managing memory backend infrastructure
Memory Architecture
CLAUDE CODE MEMORY SYSTEM
+-----------------+ +-----------+ +---------------+
| Claude Code |--->| MCP |--->| Memory |
| CLI | | Tools | | Backend |
+-----------------+ +-----------+ +---------------+
| |
v v
+------------------------------------------------+
| Backend Stack |
| +----------+ +---------+ +----------+ |
| | Qdrant | | n8n | | Ollama | |
| | :6334 | | :5679 | | (host) | |
| | Vector DB| |Workflows| |Embeddings| |
| +----------+ +---------+ +----------+ |
| | | | |
| +-----------+------------+ |
| | |
| +------------------+ |
| | PostgreSQL | |
| | claude-postgres | |
| +------------------+ |
+------------------------------------------------+
Related Agents
- Offline Dev - Offline development setup
- Context Translator - Context file management