← ClaudeAtlas

reasoningbank-intelligencelisted

Adaptive learning for moflo agents via ReasoningBank: trajectory storage, verdict judgment, memory distillation, consolidation, and MMR retrieval. Use when building agents that should improve from experience across runs.
eric-cielo/moflo · ★ 18 · AI & Automation · score 78
Install: claude install-skill eric-cielo/moflo
# ReasoningBank Intelligence Trajectory-based learning pipeline for moflo-enabled agents. Records what an agent did, judges the outcome, distills successful runs into reusable patterns, and retrieves relevant prior experience on the next task. ## Prerequisites - moflo (the neural subsystem ships inline as part of the moflo package) - Moflo's memory DB at `.swarm/memory.db` (created on first run) ## Quick Start ```typescript import { createInitializedReasoningBank } from 'moflo/dist/src/cli/neural/reasoning-bank.js'; const rb = await createInitializedReasoningBank({ namespace: 'reasoning-bank', vectorDimension: 768, retrievalK: 3, mmrLambda: 0.7, // 0=pure relevance, 1=pure diversity distillationThreshold: 0.6, // min verdict score to keep dedupThreshold: 0.95, }); ``` ## The Pipeline Four stages. You typically call each once per task: ```text 1. Record trajectory → storeTrajectory({ id, input, actions, outcome, reward, ... }) 2. Judge → const verdict = await rb.judge(trajectory) 3. Distill → const memory = await rb.distill(trajectory) // if verdict good enough 4. Retrieve (next task) → const hits = await rb.retrieveByContent(query, k) ``` ### 1. Record ```typescript const trajectory = { id: taskId, input: userRequest, actions: ['read_file', 'edit_file', 'run_tests'], outcome: 'success' as const, reward: 1.0, // 0..1 metadata: { toolCalls: 3, durationMs: 1800 }, timestamp: new Da