v2/docs/reasoning/README.md
This directory contains reasoning and goal-planning agents that leverage ReasoningBank's closed-loop learning to provide intelligent, adaptive task execution with continuous improvement.
Goal-Oriented Action Planning (GOAP) specialist
Uses gaming AI techniques to dynamically create intelligent plans to achieve complex objectives. Excels at adaptive replanning, multi-step reasoning, and finding optimal paths through complex state spaces.
Key Features:
Best for:
Usage:
claude-flow init --agent reasoning
# Or directly with agentic-flow:
npx agentic-flow --agent goal-planner --task "Deploy application with prerequisites"
Sub-linear complexity goal planning
Specialized version optimized for large-scale state spaces with sub-linear time complexity.
Best for:
All reasoning agents integrate with ReasoningBank for:
Based on ReasoningBank benchmarks:
claude-flow init --agent reasoning
This will:
# Via claude-flow (when integrated)
claude-flow agent run goal-planner "Complex deployment task"
# Via agentic-flow directly
npx agentic-flow --agent goal-planner --task "Multi-step task"
export REASONINGBANK_ENABLED=true
export AGENTIC_FLOW_TRAINING=true
User Task
↓
[goal-planner analyzes]
↓
ReasoningBank.retrieve() → Get relevant memories
↓
Plan generation (A* search)
↓
Execute with monitoring (OODA loop)
↓
ReasoningBank.judge() → Evaluate success
↓
ReasoningBank.distill() → Extract learnings
↓
Store for future use
Default location: .swarm/memory.db
Configure via:
export REASONINGBANK_DB_PATH="/custom/path/memory.db"
export REASONINGBANK_K=3 # Top-k memories to retrieve
export REASONINGBANK_MIN_CONFIDENCE=0.5 # Minimum confidence threshold
npx agentic-flow --agent goal-planner \
--task "Deploy application" \
--enable-memory \
--memory-domain "deployment"
The system automatically learns from both successes and failures:
Patterns learned in one domain can transfer to similar tasks:
The following reasoning agents are planned for future releases:
For issues or questions:
Remember: Reasoning agents learn from experience and get better over time! 🧠✨