AgentDB Memory Patterns

Implement persistent memory and pattern learning for AI agents using AgentDB vector storage.

1|1|Updated Nov 28, 2025
One-click install
npx skills add https://github.com/33may/robotics --skill agentdb-memory-patterns-33may
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: AgentDB Memory Patterns
Source: https://github.com/33may/robotics/tree/main/humanoid/.claude/skills/agentdb-memory-patterns
Command: npx skills add https://github.com/33may/robotics --skill agentdb-memory-patterns-33may

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires agentdb, agentic-flow.

What problem does it solve? AI agents lose context between sessions and cannot learn from past interactions. This Skill provides persistent memory patterns using AgentDB so agents can remember conversations, store long-term facts, and retrieve relevant context across sessions. ## Core Features & Use Cases - Session and Long-Term Memory: Store conversation history, user preferences, and facts with vector embeddings for semantic retrieval. - Pattern Learning: Train agents with 9 learning plugins including Decision Transformer, Q-Learning, and Actor-Critic to improve from successful interactions. - ReasoningBank Integration: Migrate legacy ReasoningBank data and use reasoning agents for context synthesis and memory optimization. - Use Case: Build a customer support chatbot that remembers each user's past issues, learns which responses resolved tickets, and retrieves relevant context in under 1ms. ## Quick Start Initialize an AgentDB database and create a memory-enabled agent that stores and retrieves conversation patterns using the agentic-flow ReasoningBank adapter.

Frequently Asked Questions about AgentDB Memory Patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add persistent memory to an AI agent?

Initialize AgentDB with npx agentdb init, then use the createAgentDBAdapter from agentic-flow to store conversation patterns with vector embeddings. Retrieve relevant context using retrieveWithReasoning with domain filtering and MMR ranking.

How to integrate AgentDB memory with Claude Code?

Run npx agentdb mcp to start the MCP server, then register it once with claude mcp add agentdb npx agentdb mcp. This exposes AgentDB memory operations directly to Claude Code sessions.

Can I migrate from legacy ReasoningBank to AgentDB?

Yes, AgentDB is 100% backward compatible with the ReasoningBank API. Use the migrateToAgentDB function or npx agentdb migrate --source command to transfer patterns with automatic validation.

What learning algorithms does AgentDB support?

AgentDB includes 9 learning plugins: Decision Transformer, Q-Learning, SARSA, Actor-Critic, Active Learning, Adversarial Training, Curriculum Learning, Federated Learning, and Multi-task Learning. Create plugins with npx agentdb create-plugin.

Why is my AgentDB database growing too large?

Large databases result from storing unquantized embeddings. Enable binary quantization for 32x memory reduction or scalar for 4x reduction, and run memory consolidation to prune low-quality patterns below a relevance threshold.

How fast is AgentDB vector search compared to alternatives?

AgentDB performs vector search in under 100 microseconds using HNSW indexing and pattern retrieval in under 1ms with caching. Batch inserts of 100 patterns complete in approximately 2ms.