claude-flow 2.5.0-alpha.141 → 2.7.0-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/agents/reasoning/README.md +171 -0
- package/.claude/agents/reasoning/agent.md +816 -0
- package/.claude/agents/reasoning/example-reasoning-agent-template.md +362 -0
- package/.claude/agents/reasoning/goal-planner.md +73 -0
- package/.claude/commands/coordination/README.md +9 -0
- package/.claude/commands/memory/README.md +9 -0
- package/.claude/settings.json +3 -3
- package/.claude/sparc-modes.json +108 -0
- package/README.md +1 -6
- package/bin/claude-flow +1 -1
- package/dist/src/cli/command-registry.js +70 -6
- package/dist/src/cli/command-registry.js.map +1 -1
- package/dist/src/cli/help-formatter.js +0 -3
- package/dist/src/cli/help-formatter.js.map +1 -1
- package/dist/src/cli/help-text.js +53 -5
- package/dist/src/cli/help-text.js.map +1 -1
- package/dist/src/cli/simple-cli.js +182 -172
- package/dist/src/cli/simple-cli.js.map +1 -1
- package/dist/src/cli/simple-commands/agent-booster.js +415 -0
- package/dist/src/cli/simple-commands/agent-booster.js.map +1 -0
- package/dist/src/cli/simple-commands/agent.js +856 -13
- package/dist/src/cli/simple-commands/agent.js.map +1 -1
- package/dist/src/cli/simple-commands/env-template.js +180 -0
- package/dist/src/cli/simple-commands/env-template.js.map +1 -0
- package/dist/src/cli/simple-commands/init/help.js +23 -0
- package/dist/src/cli/simple-commands/init/help.js.map +1 -1
- package/dist/src/cli/simple-commands/init/index.js +63 -0
- package/dist/src/cli/simple-commands/init/index.js.map +1 -1
- package/dist/src/cli/simple-commands/memory.js +307 -16
- package/dist/src/cli/simple-commands/memory.js.map +1 -1
- package/dist/src/cli/simple-commands/proxy.js +304 -0
- package/dist/src/cli/simple-commands/proxy.js.map +1 -0
- package/dist/src/cli/simple-commands/sparc.js +16 -19
- package/dist/src/cli/simple-commands/sparc.js.map +1 -1
- package/dist/src/cli/validation-helper.js.map +1 -1
- package/dist/src/core/version.js +1 -1
- package/dist/src/execution/agent-executor.js +181 -0
- package/dist/src/execution/agent-executor.js.map +1 -0
- package/dist/src/execution/index.js +12 -0
- package/dist/src/execution/index.js.map +1 -0
- package/dist/src/execution/provider-manager.js +110 -0
- package/dist/src/execution/provider-manager.js.map +1 -0
- package/dist/src/hooks/redaction-hook.js +89 -0
- package/dist/src/hooks/redaction-hook.js.map +1 -0
- package/dist/src/memory/swarm-memory.js +340 -421
- package/dist/src/memory/swarm-memory.js.map +1 -1
- package/dist/src/utils/key-redactor.js +108 -0
- package/dist/src/utils/key-redactor.js.map +1 -0
- package/dist/src/utils/metrics-reader.js +37 -39
- package/dist/src/utils/metrics-reader.js.map +1 -1
- package/docs/AGENT-BOOSTER-INTEGRATION.md +407 -0
- package/docs/AGENTIC-FLOW-INTEGRATION-GUIDE.md +753 -0
- package/docs/AGENTIC_FLOW_EXECUTION_FIX_REPORT.md +474 -0
- package/docs/AGENTIC_FLOW_INTEGRATION_STATUS.md +143 -0
- package/docs/AGENTIC_FLOW_MVP_COMPLETE.md +367 -0
- package/docs/AGENTIC_FLOW_SECURITY_TEST_REPORT.md +369 -0
- package/docs/COMMAND-VERIFICATION-REPORT.md +441 -0
- package/docs/COMMIT_SUMMARY.md +247 -0
- package/docs/DEEP_REVIEW_COMPREHENSIVE_REPORT.md +922 -0
- package/docs/DOCKER-VALIDATION-REPORT.md +281 -0
- package/docs/ENV-SETUP-GUIDE.md +270 -0
- package/docs/FINAL_PRE_PUBLISH_VALIDATION.md +823 -0
- package/docs/FINAL_VALIDATION_REPORT.md +165 -0
- package/docs/HOOKS-V2-MODIFICATION.md +146 -0
- package/docs/INDEX.md +568 -0
- package/docs/INTEGRATION_COMPLETE.md +414 -0
- package/docs/MEMORY_REDACTION_TEST_REPORT.md +300 -0
- package/docs/PERFORMANCE-SYSTEMS-STATUS.md +340 -0
- package/docs/PRE_RELEASE_FIXES_REPORT.md +435 -0
- package/docs/README.md +35 -0
- package/docs/REASONING-AGENTS.md +482 -0
- package/docs/REASONINGBANK-AGENT-CREATION-GUIDE.md +813 -0
- package/docs/REASONINGBANK-ANALYSIS-COMPLETE.md +479 -0
- package/docs/REASONINGBANK-BENCHMARK-RESULTS.md +166 -0
- package/docs/REASONINGBANK-BENCHMARK.md +396 -0
- package/docs/REASONINGBANK-CLI-INTEGRATION.md +455 -0
- package/docs/REASONINGBANK-CORE-INTEGRATION.md +658 -0
- package/docs/REASONINGBANK-COST-OPTIMIZATION.md +329 -0
- package/docs/REASONINGBANK-DEMO.md +419 -0
- package/docs/REASONINGBANK-INTEGRATION-COMPLETE.md +249 -0
- package/docs/REASONINGBANK-VALIDATION.md +532 -0
- package/docs/REASONINGBANK_ARCHITECTURE.md +475 -0
- package/docs/REASONINGBANK_INTEGRATION_COMPLETE.md +558 -0
- package/docs/REASONINGBANK_INTEGRATION_PLAN.md +1188 -0
- package/docs/REGRESSION-ANALYSIS-REPORT.md +500 -0
- package/docs/RELEASE_v2.6.0-alpha.2.md +658 -0
- package/docs/api/API_DOCUMENTATION.md +721 -0
- package/docs/architecture/ARCHITECTURE.md +1690 -0
- package/docs/ci-cd/README.md +368 -0
- package/docs/development/DEPLOYMENT.md +2348 -0
- package/docs/development/DEVELOPMENT_WORKFLOW.md +1333 -0
- package/docs/development/build-analysis-report.md +252 -0
- package/docs/development/pair-optimization.md +156 -0
- package/docs/development/token-tracking-status.md +103 -0
- package/docs/development/training-pipeline-demo.md +163 -0
- package/docs/development/training-pipeline-real-only.md +196 -0
- package/docs/epic-sdk-integration.md +1269 -0
- package/docs/experimental/RIEMANN_HYPOTHESIS_PROOF.md +124 -0
- package/docs/experimental/computational_verification.py +436 -0
- package/docs/experimental/novel_approaches.md +560 -0
- package/docs/experimental/riemann_hypothesis_analysis.md +263 -0
- package/docs/experimental/riemann_proof_attempt.md +124 -0
- package/docs/experimental/riemann_synthesis.md +277 -0
- package/docs/experimental/verification_results.json +12 -0
- package/docs/experimental/visualization_insights.md +720 -0
- package/docs/guides/USER_GUIDE.md +1138 -0
- package/docs/guides/token-tracking-guide.md +291 -0
- package/docs/reference/AGENTS.md +1011 -0
- package/docs/reference/MCP_TOOLS.md +2188 -0
- package/docs/reference/SPARC.md +717 -0
- package/docs/reference/SWARM.md +2000 -0
- package/docs/sdk/CLAUDE-CODE-SDK-DEEP-ANALYSIS.md +649 -0
- package/docs/sdk/CLAUDE-FLOW-SDK-INTEGRATION-ANALYSIS.md +242 -0
- package/docs/sdk/INTEGRATION-ROADMAP.md +420 -0
- package/docs/sdk/MCP-TOOLS-UPDATE.md +270 -0
- package/docs/sdk/SDK-ADVANCED-FEATURES-INTEGRATION.md +723 -0
- package/docs/sdk/SDK-ALL-FEATURES-INTEGRATION-MATRIX.md +612 -0
- package/docs/sdk/SDK-INTEGRATION-COMPLETE.md +358 -0
- package/docs/sdk/SDK-INTEGRATION-PHASES-V2.5.md +750 -0
- package/docs/sdk/SDK-LEVERAGE-REAL-FEATURES.md +676 -0
- package/docs/sdk/SDK-VALIDATION-RESULTS.md +400 -0
- package/docs/sdk/epic-sdk-integration.md +1269 -0
- package/docs/setup/remote-setup.md +93 -0
- package/docs/validation/final-validation-summary.md +220 -0
- package/docs/validation/verification-integration.md +190 -0
- package/docs/validation/verification-validation.md +349 -0
- package/docs/wiki/background-commands.md +1213 -0
- package/docs/wiki/session-persistence.md +342 -0
- package/docs/wiki/stream-chain-command.md +537 -0
- package/package.json +4 -2
- package/src/cli/command-registry.js +70 -5
- package/src/cli/help-text.js +26 -5
- package/src/cli/simple-cli.ts +18 -7
- package/src/cli/simple-commands/agent-booster.js +515 -0
- package/src/cli/simple-commands/agent.js +1001 -12
- package/src/cli/simple-commands/agent.ts +137 -0
- package/src/cli/simple-commands/config.ts +127 -0
- package/src/cli/simple-commands/env-template.js +190 -0
- package/src/cli/simple-commands/init/help.js +23 -0
- package/src/cli/simple-commands/init/index.js +84 -6
- package/src/cli/simple-commands/memory.js +363 -16
- package/src/cli/simple-commands/proxy.js +384 -0
- package/src/cli/simple-commands/sparc.js +16 -19
- package/src/execution/agent-executor.ts +306 -0
- package/src/execution/index.ts +19 -0
- package/src/execution/provider-manager.ts +187 -0
- package/src/hooks/redaction-hook.ts +115 -0
- package/src/utils/key-redactor.js +178 -0
- package/src/utils/key-redactor.ts +184 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
# Reasoning Agents for Claude-Flow
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
This directory contains reasoning and goal-planning agents that leverage ReasoningBank's closed-loop learning to provide intelligent, adaptive task execution with continuous improvement.
|
|
6
|
+
|
|
7
|
+
## Available Agents
|
|
8
|
+
|
|
9
|
+
### 🎯 goal-planner
|
|
10
|
+
**Goal-Oriented Action Planning (GOAP) specialist**
|
|
11
|
+
|
|
12
|
+
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.
|
|
13
|
+
|
|
14
|
+
**Key Features:**
|
|
15
|
+
- Dynamic Planning: A* search algorithms for optimal paths
|
|
16
|
+
- Precondition Analysis: Evaluate action requirements
|
|
17
|
+
- Effect Prediction: Model state changes
|
|
18
|
+
- Adaptive Replanning: Adjust based on execution results
|
|
19
|
+
- Goal Decomposition: Break complex objectives into sub-goals
|
|
20
|
+
|
|
21
|
+
**Best for:**
|
|
22
|
+
- Complex multi-step deployments
|
|
23
|
+
- Tasks with many dependencies
|
|
24
|
+
- High-level goals needing decomposition
|
|
25
|
+
- Adaptive planning scenarios
|
|
26
|
+
|
|
27
|
+
**Usage:**
|
|
28
|
+
```bash
|
|
29
|
+
claude-flow init --agent reasoning
|
|
30
|
+
# Or directly with agentic-flow:
|
|
31
|
+
npx agentic-flow --agent goal-planner --task "Deploy application with prerequisites"
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### 🎯 sublinear-goal-planner
|
|
35
|
+
**Sub-linear complexity goal planning**
|
|
36
|
+
|
|
37
|
+
Specialized version optimized for large-scale state spaces with sub-linear time complexity.
|
|
38
|
+
|
|
39
|
+
**Best for:**
|
|
40
|
+
- Large-scale systems
|
|
41
|
+
- Performance-critical planning
|
|
42
|
+
- Massive state spaces
|
|
43
|
+
|
|
44
|
+
## Integration with ReasoningBank
|
|
45
|
+
|
|
46
|
+
All reasoning agents integrate with ReasoningBank for:
|
|
47
|
+
- **RETRIEVE**: Pull relevant memories from past executions
|
|
48
|
+
- **JUDGE**: Evaluate success/failure of trajectories
|
|
49
|
+
- **DISTILL**: Extract learnable patterns
|
|
50
|
+
- **CONSOLIDATE**: Merge and optimize memory
|
|
51
|
+
|
|
52
|
+
## Performance Benefits
|
|
53
|
+
|
|
54
|
+
Based on ReasoningBank benchmarks:
|
|
55
|
+
- **+26% success rate** (70% → 88%)
|
|
56
|
+
- **-25% token usage** (cost savings)
|
|
57
|
+
- **3.2x learning velocity** (faster improvement)
|
|
58
|
+
- **0% → 95% success** over 5 iterations
|
|
59
|
+
|
|
60
|
+
## Quick Start
|
|
61
|
+
|
|
62
|
+
### 1. Initialize with Reasoning Agents
|
|
63
|
+
```bash
|
|
64
|
+
claude-flow init --agent reasoning
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
This will:
|
|
68
|
+
- Set up ReasoningBank memory system
|
|
69
|
+
- Configure reasoning agents
|
|
70
|
+
- Initialize learning capabilities
|
|
71
|
+
|
|
72
|
+
### 2. Use Reasoning Agents
|
|
73
|
+
```bash
|
|
74
|
+
# Via claude-flow (when integrated)
|
|
75
|
+
claude-flow agent run goal-planner "Complex deployment task"
|
|
76
|
+
|
|
77
|
+
# Via agentic-flow directly
|
|
78
|
+
npx agentic-flow --agent goal-planner --task "Multi-step task"
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### 3. Enable Learning Mode
|
|
82
|
+
```bash
|
|
83
|
+
export REASONINGBANK_ENABLED=true
|
|
84
|
+
export AGENTIC_FLOW_TRAINING=true
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Architecture
|
|
88
|
+
|
|
89
|
+
```
|
|
90
|
+
User Task
|
|
91
|
+
↓
|
|
92
|
+
[goal-planner analyzes]
|
|
93
|
+
↓
|
|
94
|
+
ReasoningBank.retrieve() → Get relevant memories
|
|
95
|
+
↓
|
|
96
|
+
Plan generation (A* search)
|
|
97
|
+
↓
|
|
98
|
+
Execute with monitoring (OODA loop)
|
|
99
|
+
↓
|
|
100
|
+
ReasoningBank.judge() → Evaluate success
|
|
101
|
+
↓
|
|
102
|
+
ReasoningBank.distill() → Extract learnings
|
|
103
|
+
↓
|
|
104
|
+
Store for future use
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## Configuration
|
|
108
|
+
|
|
109
|
+
### Memory Database
|
|
110
|
+
Default location: `.swarm/memory.db`
|
|
111
|
+
|
|
112
|
+
Configure via:
|
|
113
|
+
```bash
|
|
114
|
+
export REASONINGBANK_DB_PATH="/custom/path/memory.db"
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### Retrieval Settings
|
|
118
|
+
```bash
|
|
119
|
+
export REASONINGBANK_K=3 # Top-k memories to retrieve
|
|
120
|
+
export REASONINGBANK_MIN_CONFIDENCE=0.5 # Minimum confidence threshold
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
## Advanced Usage
|
|
124
|
+
|
|
125
|
+
### 1. Multi-Step Planning
|
|
126
|
+
```bash
|
|
127
|
+
npx agentic-flow --agent goal-planner \
|
|
128
|
+
--task "Deploy application" \
|
|
129
|
+
--enable-memory \
|
|
130
|
+
--memory-domain "deployment"
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### 2. Learning from Failures
|
|
134
|
+
The system automatically learns from both successes and failures:
|
|
135
|
+
- Failed attempts store "what went wrong"
|
|
136
|
+
- Successful attempts store "what worked"
|
|
137
|
+
- Future tasks benefit from both
|
|
138
|
+
|
|
139
|
+
### 3. Cross-Domain Transfer
|
|
140
|
+
Patterns learned in one domain can transfer to similar tasks:
|
|
141
|
+
- Authentication patterns → Authorization patterns
|
|
142
|
+
- Deployment patterns → Migration patterns
|
|
143
|
+
- Testing strategies → Debugging strategies
|
|
144
|
+
|
|
145
|
+
## Documentation
|
|
146
|
+
|
|
147
|
+
- **REASONING-AGENTS.md**: Detailed technical documentation
|
|
148
|
+
- **REASONINGBANK-DEMO.md**: Live demo comparison
|
|
149
|
+
- **REASONINGBANK-CLI-INTEGRATION.md**: CLI integration guide
|
|
150
|
+
- **REASONINGBANK-BENCHMARK.md**: Performance benchmarks
|
|
151
|
+
|
|
152
|
+
## Future Agents (Coming Soon)
|
|
153
|
+
|
|
154
|
+
The following reasoning agents are planned for future releases:
|
|
155
|
+
|
|
156
|
+
- **adaptive-learner**: Learn from experience and improve over time
|
|
157
|
+
- **pattern-matcher**: Recognize patterns and transfer proven solutions
|
|
158
|
+
- **memory-optimizer**: Maintain memory system health and performance
|
|
159
|
+
- **context-synthesizer**: Build rich situational awareness from multiple sources
|
|
160
|
+
- **experience-curator**: Ensure high-quality learnings through rigorous curation
|
|
161
|
+
- **reasoning-optimized**: Meta-reasoning orchestrator coordinating all reasoning agents
|
|
162
|
+
|
|
163
|
+
## Support
|
|
164
|
+
|
|
165
|
+
For issues or questions:
|
|
166
|
+
- GitHub: https://github.com/ruvnet/claude-flow/issues
|
|
167
|
+
- Documentation: https://github.com/ruvnet/claude-flow
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
**Remember: Reasoning agents learn from experience and get better over time!** 🧠✨
|