RE

ReasoningBank with AgentDB

Implements adaptive learning for AI agents using AgentDB.

Install

mkdir -p .claude/skills/reasoningbank-with-agentdb-wiktorskrabel89-byte && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/14503" && unzip -o skill.zip -d .claude/skills/reasoningbank-with-agentdb-wiktorskrabel89-byte && rm skill.zip

Installs to .claude/skills/reasoningbank-with-agentdb-wiktorskrabel89-byte

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Implement adaptive learning for AI agents using AgentDB's vector database backend for trajectory tracking, verdict judgment, memory distillation, and pattern recognition. Use when building self-learning agents, implementing reinforcement learning patterns, or migrating from legacy ReasoningBank to AgentDB.
307 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Intermediate

Key capabilities

  • Implement adaptive learning for AI agents
  • Track agent trajectories
  • Perform verdict judgment and memory distillation
  • Recognize patterns using diversity-aware HNSW retrieval
  • Consolidate and filter memories by quality thresholds

How it works

The skill uses AgentDB's vector database backend to track agent trajectories, record actions and outcomes, and then processes this data through modules for pattern matching, context synthesis, memory optimization, and experience curation.

Inputs & outputs

You give it
agent actions, results, and rewards within a trajectory
You get back
optimized agent memory and identified successful patterns

When to use ReasoningBank with AgentDB

  • Building self-learning agents
  • Implementing agent memory systems
  • Optimizing agent performance

About this skill

ReasoningBank with AgentDB

Implement adaptive learning for AI agents with 150x faster pattern retrieval, 500x faster batch operations, and <1ms memory access.

Prerequisites

  • Node.js 18+
  • AgentDB v1.0.7+
  • agentic-flow installed

Quick Start

import { createAgentDBAdapter } from 'agentic-flow/reasoningbank';

const adapter = await createAgentDBAdapter({
  dbPath: '.agentdb/reasoningbank.db',
  enableLearning: true,
  enableReasoning: true,
});

// Start trajectory tracking
await adapter.startTrajectory({
  task: 'Implement user authentication',
  context: { language: 'typescript' }
});

// Record action and outcome
await adapter.recordAction({
  action: 'create_jwt_middleware',
  result: 'success',
  reward: 0.9
});

// Finalize trajectory
await adapter.finalizeTrajectory({ success: true, score: 0.92 });

Four Reasoning Modules

  1. PatternMatcher - Find similar successful patterns using diversity-aware HNSW retrieval
  2. ContextSynthesizer - Generate coherent narratives from multiple memory sources
  3. MemoryOptimizer - Automatically consolidate and remove low-quality patterns
  4. ExperienceCurator - Filter memories by quality thresholds

Backward Compatibility

Full compatibility with legacy ReasoningBank APIs - AgentDB backend used automatically.

Migration from Legacy

# Migrate existing ReasoningBank data
npx agentdb@latest migrate --source .swarm/memory.db --dest .agentdb/reasoningbank.db

Performance

  • Pattern retrieval: 150x faster
  • Batch operations: 500x faster
  • Memory access: <1ms

Prerequisites

Node.js 18+AgentDB v1.0.7+agentic-flow installed

How it compares

This skill provides 150x faster pattern retrieval and <1ms memory access compared to legacy systems, enabling more efficient adaptive learning for AI agents.

Compared to similar skills

ReasoningBank with AgentDB side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
ReasoningBank with AgentDB (this skill)02moReviewIntermediate
train-with-environments11moReviewAdvanced
senior-data-scientist98moReviewAdvanced
llama-cpp218moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

train-with-environments

PrimeIntellect-ai

Train models with verifiers environments using hosted RL or prime-rl. Use when asked to configure RL runs, tune key hyperparameters, diagnose instability, set up difficulty filtering and oversampling, or create practical train and eval loops for new environments.

14

senior-data-scientist

davila7

World-class data science skill for statistical modeling, experimentation, causal inference, and advanced analytics. Expertise in Python (NumPy, Pandas, Scikit-learn), R, SQL, statistical methods, A/B testing, time series, and business intelligence. Includes experiment design, feature engineering, model evaluation, and stakeholder communication. Use when designing experiments, building predictive models, performing causal analysis, or driving data-driven decisions.

952

llama-cpp

zechenzhangAGI

Runs LLM inference on CPU, Apple Silicon, and consumer GPUs without NVIDIA hardware. Use for edge deployment, M1/M2/M3 Macs, AMD/Intel GPUs, or when CUDA is unavailable. Supports GGUF quantization (1.5-8 bit) for reduced memory and 4-10× speedup vs PyTorch on CPU.

21471

opencode-cli

SpillwaveSolutions

This skill should be used when configuring or using the OpenCode CLI for headless LLM automation. Use when the user asks to "configure opencode", "use opencode cli", "set up opencode", "opencode run command", "opencode model selection", "opencode providers", "opencode vertex ai", "opencode mcp servers", "opencode ollama", "opencode local models", "opencode deepseek", "opencode kimi", "opencode mistral", "fallback cli tool", or "headless llm cli". Covers command syntax, provider configuration, Vertex AI setup, MCP servers, local models, cloud providers, and subprocess integration patterns.

14174

langchain

zechenzhangAGI

Framework for building LLM-powered applications with agents, chains, and RAG. Supports multiple providers (OpenAI, Anthropic, Google), 500+ integrations, ReAct agents, tool calling, memory management, and vector store retrieval. Use for building chatbots, question-answering systems, autonomous agents, or RAG applications. Best for rapid prototyping and production deployments.

26138

llama-factory

zechenzhangAGI

Expert guidance for fine-tuning LLMs with LLaMA-Factory - WebUI no-code, 100+ models, 2/3/4/5/6/8-bit QLoRA, multimodal support

15112

Search skills

Search the agent skills registry