Skip to content
Back to skills

Reasoningbank With Agentdb

ASecurity

ReasoningBank adaptive learning with AgentDB vector backend. Trajectory tracking, verdict judgment, memory distillation. Triggers: reasoningbank, agentdb, adaptive learning, experience replay, trajectory tracking.

  • 61 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 6, 2026
ai-agentstypescriptbashapibackend

Works with

  • api
  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add plurigrid/asi --skill reasoningbank-with-agentdb --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Reasoningbank With Agentdb?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Reasoningbank With Agentdb
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/plurigrid-reasoningbank-with-agentdb/badge)](https://www.skillsdirectory.com/skills/plurigrid-reasoningbank-with-agentdb)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: reasoningbank-with-agentdb
description: 'ReasoningBank adaptive learning with AgentDB vector backend. Trajectory tracking, verdict judgment, memory distillation. Triggers: reasoningbank, agentdb, adaptive learning, experience replay, trajectory tracking.'
---

# ReasoningBank with AgentDB

Adaptive learning patterns using AgentDB's vector backend (150x faster pattern retrieval).

## Quick Start

```bash
npx agentdb@latest init ./.agentdb/reasoningbank.db --dimension 1536
npx agentdb@latest mcp
claude mcp add agentdb npx agentdb@latest mcp
```

## Core API

```typescript
import { createAgentDBAdapter, computeEmbedding } from 'agentic-flow/reasoningbank';

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

// Store experience
const embedding = await computeEmbedding(query);
await rb.insertPattern({
  id: '', type: 'experience', domain: 'my-domain',
  pattern_data: JSON.stringify({ embedding, pattern: { query, outcome: 'success' } }),
  confidence: 0.95, usage_count: 1, success_count: 1,
  created_at: Date.now(), last_used: Date.now(),
});

// Retrieve with reasoning
const result = await rb.retrieveWithReasoning(embedding, {
  domain: 'my-domain', k: 5, useMMR: true, synthesizeContext: true,
});
```

## Patterns

### Trajectory Tracking
Store action sequences with outcomes for later pattern matching.

### Verdict Judgment
Compare new trajectories against successful past patterns:
```typescript
const similar = await rb.retrieveWithReasoning(queryEmbedding, { domain: 'd', k: 10 });
const verdict = similar.memories.filter(m =>
  m.pattern.outcome === 'success' && m.similarity > 0.8
).length > 5 ? 'likely_success' : 'needs_review';
```

### Memory Distillation
Consolidate similar experiences: `{ optimizeMemory: true }`

## Reasoning Modules

| Module | Flag | Purpose |
|--------|------|---------|
| PatternMatcher | `useMMR: true` | Diverse similar pattern retrieval |
| ContextSynthesizer | `synthesizeContext: true` | Coherent narrative from memories |
| MemoryOptimizer | `optimizeMemory: true` | Auto-consolidate and prune |
| ExperienceCurator | `curateExperiences: true` | Quality scoring and ranking |

## Migration

```bash
npx agentdb@latest migrate --source .swarm/memory.db
npx agentdb@latest stats ./.agentdb/reasoningbank.db
```

Files in this skill

  • CONCOMITANT_SKILLS.md541 B
  • SKILL.md2.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.