AgentDB Memory Patterns

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

Updated Aug 18, 2026
One-click install
npx skills add https://github.com/wandreandrade2018-maker/claude-config --skill agentdb-memory-patterns-wandreandrade2018-maker
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: AgentDB Memory Patterns
Source: https://github.com/wandreandrade2018-maker/claude-config/tree/main/.claude/skills/agentdb-memory-patterns
Command: npx skills add https://github.com/wandreandrade2018-maker/claude-config --skill agentdb-memory-patterns-wandreandrade2018-maker

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires agentdb, agentic-flow.

What problem does it solve? AI agents lose all context between sessions, forcing users to repeat information and preventing agents from learning from past interactions. This Skill provides persistent memory patterns so agents can remember conversations, store facts, and improve over time. ## Core Features & Use Cases - Session and Long-Term Memory: Store conversation history per session and persist important facts like user preferences across sessions. - Pattern Learning with ReasoningBank: Store successful interaction patterns, retrieve them with vector search and MMR, and train learning plugins (Q-Learning, Decision Transformer, Actor-Critic, and more). - CLI and MCP Integration: Initialize databases, run queries, import/export vectors, and expose memory to Claude Code via an MCP server. - Use Case: Build a support chatbot that remembers each user's preferences, recalls prior conversations via vector search, and learns which responses succeeded using reinforcement learning plugins. ## Quick Start Set up an AgentDB database and add persistent session memory with pattern learning to my TypeScript agent project.

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 an AgentDB database with npx agentdb init, then use the createAgentDBAdapter API to store conversation patterns and facts. Retrieve relevant context with vector search using retrieveWithReasoning for each new interaction.

How do I integrate AgentDB with Claude Code?

Run npx agentdb mcp to start the MCP server, then register it once with claude mcp add agentdb npx agentdb mcp. Claude Code can then access the memory database through the MCP protocol.

What learning algorithms does AgentDB support?

AgentDB provides nine learning plugins including Decision Transformer, Q-Learning, SARSA, Actor-Critic, Active Learning, Adversarial Training, Curriculum Learning, Federated Learning, and Multi-task Learning. Create one with npx agentdb create-plugin.

Can I migrate from legacy ReasoningBank to AgentDB?

Yes, use the migrateToAgentDB function from agentic-flow/reasoningbank or the CLI migrate command with the source database path. The migration validates data and reports how many patterns were transferred.

How do I reduce AgentDB memory usage and speed up search?

Enable binary or scalar quantization for 4-32x memory reduction, and use HNSW indexing with an in-memory cache for sub-millisecond retrieval. Run npx agentdb stats to monitor database size and performance.