Skills

Agenticx Memory Architect

Guide for setting up and using the AgenticX memory system including Mem0 integration...

Install

npx skills add DemonDamon/AgenticX --skill agenticx-memory-architect -g -a claude-code -y
Repository
DemonDamon/AgenticX866
Category
AI and agents
Updated
3d ago
License
Apache-2.0
Context cost
Lightabout 1,020 tokens
Runs scripts
No, instructions only

What it does

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.

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

pip install "agenticx[memory]"
# Includes: mem0, chromadb, qdrant-client, redis, milvus

Memory System Components

ComponentPurpose
MemoryManagerCore memory management interface
Mem0IntegrationBridge to Mem0's memory engine
ContextMemoryShort-term, session-scoped memory
LongTermMemoryPersistent, cross-session memory

Basic Memory Usage

Initialize Memory

from agenticx.memory import MemoryManager

memory = MemoryManager(
    provider="mem0",
    config={
        "llm": {"provider": "openai", "config": {"model": "gpt-4"}},
        "vector_store": {"provider": "chroma"}
    }
)

Store and Retrieve

# 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

from agenticx import Agent, AgentExecutor
from agenticx.memory import MemoryManager
from agenticx.llms import OpenAIProvider

memory = MemoryManager(provider="mem0")
agent = Agent(
    id="assistant",
    name="Personal Assistant",
    role="Assistant with memory",
    goal="Help users while remembering their preferences",
    organization_id="default"
)

executor = AgentExecutor(
    agent=agent,
    llm=OpenAIProvider(model="gpt-4"),
    memory=memory
)
Read the whole SKILL.md on GitHub

More in AI and agents