
AgentDB Memory Patterns
This handles persistent memory for AI agents using AgentDB, which claims 150x-12,500x performance gains over traditional vector stores. You get session memory for conversations, long-term storage for facts and preferences, and pattern learning from successful interactions. The CLI setup is straightforward (npx agentdb init, then wire it into Claude with MCP), and it includes templates for different reinforcement learning approaches like Q-learning and actor-critic. The real value is in hierarchical memory organization and consolidation strategies that let you prune low-value memories over time. Use this when building chatbots or assistants that need to remember context across sessions without rebuilding state from scratch every time.
- GitHub stars
- 240
- last updated
- Jun 11, 2026
Install
$ npx -y skills add spencermarx/open-code-review --skill 'AgentDB Memory Patterns' --agent claude-codeInstalls into .claude/skills of the current project.
Files
AgentDB Memory Patterns
What This Skill Does
Provides memory management patterns for AI agents using AgentDB's persistent storage and ReasoningBank integration. Enables agents to remember conversations, learn from interactions, and maintain context across sessions.
Performance: 150x-12,500x faster than traditional solutions with 100% backward compatibility.
Prerequisites
- Node.js 18+
- AgentDB v1.0.7+ (via agentic-flow or standalone)
- Understanding of agent architectures
Quick Start with CLI
Initialize AgentDB
# Initialize vector database
npx agentdb@latest init ./agents.db
# Or with custom dimensions
npx agentdb@latest init ./agents.db --dimension 768
# Use preset configurations
npx agentdb@latest init ./agents.db --preset large
# In-memory database for testing
npx agentdb@latest init ./memory.db --in-memory
Start MCP Server for Claude Code
# Start MCP server (integrates with Claude Code)
npx agentdb@latest mcp
# Add to Claude Code (one-time setup)
claude mcp add agentdb npx agentdb@latest mcp
Create Learning Plugin
# Interactive plugin wizard
npx agentdb@latest create-plugin
Sponsors
Details
- Repository
- github.com/spencermarx/open-code-review
- Categories
- Git & Pull Requests, Code Review & Quality
- License
- Apache-2.0
- First seen
- Jun 11, 2026
More from spencermarx/open-code-review
All 31- AgentDB Performance Optimization
- AgentDB Vector Search
- Browser
- Github Code Review
- Github Multi Repo
- Github Project Management
- Github Release Management
- Github Workflow Automation
- Hooks Automation
- Ocr
- Pair Programming
- ReasoningBank With AgentDB
- ReasoningBank Intelligence
- Skill Builder
- Sparc Methodology
- Stream Chain
- Swarm Advanced
- Swarm Orchestration
- V3 CLI Modernization
- V3 Core Implementation
- V3 DDD Architecture
- V3 Deep Integration
- V3 MCP Optimization
- V3 Memory Unification