What problem does it solve?
This Skill helps AI agents preserve context across conversations by implementing session memory, long-term memory, and pattern learning using AgentDB and ReasoningBank integration.
Core Features & Use Cases
- Session Memory: store and retrieve recent messages to maintain continuity in conversations.
- Long-Term Memory: persist important facts and preferences across sessions.
- Pattern Learning: capture recurring successful interactions to improve agent behavior.
- Use Case: Build a customer support agent that remembers past issues and preferred responses to deliver personalized support.
Quick Start
Use the following commands to initialize the memory store, start MCP integration, and store/retrieve memory patterns:
- CLI
npx agentdb@latest init ./agents.db
npx agentdb@latest mcp
- API
import { createAgentDBAdapter } from 'agentic-flow/reasoningbank';
const adapter = await createAgentDBAdapter({ dbPath: '.agentdb/reasoningbank.db', enableLearning: true });
// Example: store a session message
// await adapter.insertPattern({ domain: 'conversation', pattern_data: JSON.stringify({ user: 'Hi', agent: 'Hello' }) });