spencermarx avatar

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-code

Installs 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
1spencermarx avatarAgentDB Performance Optimizationspencermarx/open-code-reviewOptimize AgentDB performance with quantization (4-32x memory reduction), HNSW indexing (150x faster search), caching, and batch operations. Use when optimizing 0skills.sh installs
2spencermarx avatarAgentDB Vector Searchspencermarx/open-code-reviewImplement semantic vector search with AgentDB for intelligent document retrieval, similarity matching, and context-aware querying. Use when building RAG systems0skills.sh installs
3spencermarx avatarbrowserspencermarx/open-code-reviewWeb browser automation with AI-optimized snapshots for claude-flow agents0skills.sh installs
4spencermarx avatarPair Programmingspencermarx/open-code-reviewAI-assisted pair programming with multiple modes (driver/navigator/switch), real-time verification, quality monitoring, and comprehensive testing. Supports TDD,0skills.sh installs
5spencermarx avatarReasoningBank with AgentDBspencermarx/open-code-reviewImplement ReasoningBank adaptive learning with AgentDB's 150x faster vector database. Includes trajectory tracking, verdict judgment, memory distillation, and p0skills.sh installs
6spencermarx avatarReasoningBank Intelligencespencermarx/open-code-reviewImplement adaptive learning with ReasoningBank for pattern recognition, strategy optimization, and continuous improvement. Use when building self-learning agent0skills.sh installs