spencermarx avatar

ReasoningBank With AgentDB

This implements the ReasoningBank pattern for agents that learn from experience, using AgentDB's vector database as the backend. You get trajectory tracking to record sequences of actions, verdict judgment to evaluate outcomes, and memory distillation to consolidate similar experiences into reusable patterns. The performance claims are aggressive (150x faster retrieval, sub-millisecond memory access) and it maintains backward compatibility with legacy ReasoningBank databases. Useful if you're building agents that need to remember what worked before, like optimization tasks or repeated problem-solving where past solutions inform future decisions. The API is straightforward: store patterns with embeddings, retrieve similar experiences, let the system consolidate memories over time.

GitHub stars
240
last updated
Jun 11, 2026

Install

$ npx -y skills add spencermarx/open-code-review --skill 'ReasoningBank with AgentDB' --agent claude-code

Installs into .claude/skills of the current project.

Files

ReasoningBank with AgentDB

What This Skill Does

Provides ReasoningBank adaptive learning patterns using AgentDB's high-performance backend (150x-12,500x faster). Enables agents to learn from experiences, judge outcomes, distill memories, and improve decision-making over time with 100% backward compatibility.

Performance: 150x faster pattern retrieval, 500x faster batch operations, <1ms memory access.

Prerequisites

  • Node.js 18+
  • AgentDB v1.0.7+ (via agentic-flow)
  • Understanding of reinforcement learning concepts (optional)

Quick Start with CLI

Initialize ReasoningBank Database

# Initialize AgentDB for ReasoningBank
npx agentdb@latest init ./.agentdb/reasoningbank.db --dimension 1536

# Start MCP server for Claude Code integration
npx agentdb@latest mcp
claude mcp add agentdb npx agentdb@latest mcp

Migrate from Legacy ReasoningBank

# Automatic migration with validation
npx agentdb@latest migrate --source .swarm/memory.db

# Verify migration
npx agentdb@latest stats ./.agentdb/reasoningbank.db

Quick Start with API

Sponsors

Details

Repository
github.com/spencermarx/open-code-review
Categories
Backend & APIs, Git & Pull Requests, Code Review & Quality, AI & Agent Building, Productivity & Planning, Databases
License
Apache-2.0
First seen
Jun 11, 2026

More from spencermarx/open-code-review

All 31
1staskh avatarib-accountstaskh/trading_skillsGet account summary from Interactive Brokers including cash balance, buying power, and account value. Use when user asks about their account, balance, buying po0skills.sh installs
2staskh avatarib-option-chainstaskh/trading_skillsGet option chain data from Interactive Brokers including calls and puts with strikes, bids, asks, volume, and implied volatility. Use when user asks about optio0skills.sh installs
3staskh avatarib-portfoliostaskh/trading_skillsGet portfolio positions from Interactive Brokers. Use when user asks about their portfolio, positions, holdings, or what stocks they own. Requires TWS or IB Gat0skills.sh installs
4staskh avatarib-stop-lossstaskh/trading_skillsDownside stop-loss management for PMCC, naked LEAPS, and stock positions in IB. Computes stop prices, detects alerts, and places conditional combo orders. Dry-r0skills.sh installs
5telagod avatardesigning-architecturestelagod/code-abyssArchitecture knowledge reference covering API design, security architecture, cloud-native patterns, caching strategies, message queues, and data security. Use w0skills.sh installs
6teng-lin avatarnotebooklmteng-lin/notebooklm-pyComplete API for Google NotebookLM - full programmatic access including features not in the web UI. Create notebooks, add sources, generate all artifact types, 0skills.sh installs