← ClaudeAtlas

agenticx-memory-architectlisted

Guide for setting up and using the AgenticX memory system including Mem0 integration, long-term memory, context management, and memory-enhanced agents. Use when the user wants to add memory to agents, persist conversation history, build memory-aware workflows, or integrate with Mem0 for long-term recall.
opencue/claude-code-skills · ★ 1 · AI & Automation · score 77
Install: claude install-skill opencue/claude-code-skills
# AgenticX Memory Architect Guide for building agents with persistent memory capabilities. ## Overview AgenticX integrates with Mem0 for long-term memory, providing agents with the ability to remember past interactions, learn from experience, and maintain context across sessions. ## Installation ```bash pip install "agenticx[memory]" # Includes: mem0, chromadb, qdrant-client, redis, milvus ``` ## Memory System Components | Component | Purpose | |-----------|---------| | `MemoryManager` | Core memory management interface | | `Mem0Integration` | Bridge to Mem0's memory engine | | `ContextMemory` | Short-term, session-scoped memory | | `LongTermMemory` | Persistent, cross-session memory | ## Basic Memory Usage ### Initialize Memory ```python from agenticx.memory import MemoryManager memory = MemoryManager( provider="mem0", config={ "llm": {"provider": "openai", "config": {"model": "gpt-4"}}, "vector_store": {"provider": "chroma"} } ) ``` ### Store and Retrieve ```python # Add a memory memory.add( content="User prefers concise reports with bullet points", user_id="user-123", agent_id="analyst" ) # Search memories results = memory.search( query="What format does the user prefer?", user_id="user-123" ) for r in results: print(f"[{r.score:.2f}] {r.content}") # Get all memories for a user all_memories = memory.get_all(user_id="user-123") ``` ## Memory-Enhanced Agents ### Attach Memory to an Agent ```python from age