claude-flow 2.7.1 → 2.7.2
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/README.md +83 -22
- package/bin/claude-flow +1 -1
- package/dist/src/cli/commands/memory.js +64 -1
- package/dist/src/cli/commands/memory.js.map +1 -1
- package/dist/src/cli/help-formatter.js +3 -5
- package/dist/src/cli/help-formatter.js.map +1 -1
- package/dist/src/cli/simple-commands/config.js +257 -115
- package/dist/src/cli/simple-commands/config.js.map +1 -1
- package/dist/src/core/version.js +1 -1
- package/dist/src/core/version.js.map +1 -1
- package/dist/src/memory/agentdb-adapter.js +214 -0
- package/dist/src/memory/agentdb-adapter.js.map +1 -0
- package/dist/src/memory/backends/agentdb.js +234 -0
- package/dist/src/memory/backends/agentdb.js.map +1 -0
- package/dist/src/memory/index.js +11 -2
- package/dist/src/memory/index.js.map +1 -1
- package/dist/src/memory/migration/legacy-bridge.js +222 -0
- package/dist/src/memory/migration/legacy-bridge.js.map +1 -0
- package/dist/src/memory/swarm-memory.js +421 -340
- package/dist/src/memory/swarm-memory.js.map +1 -1
- package/dist/src/utils/key-redactor.js.map +1 -1
- package/dist/src/utils/metrics-reader.js.map +1 -1
- package/docs/.claude-flow/metrics/performance.json +80 -2
- package/docs/.claude-flow/metrics/task-metrics.json +3 -3
- package/docs/INDEX.md +37 -12
- package/docs/README.md +92 -4
- package/docs/agentdb/AGENT3_FINAL_REPORT.md +643 -0
- package/docs/agentdb/AGENT3_SUMMARY.md +354 -0
- package/docs/agentdb/AGENTDB_INTEGRATION_PLAN.md +1258 -0
- package/docs/agentdb/BACKWARD_COMPATIBILITY_GUARANTEE.md +421 -0
- package/docs/agentdb/OPTIMIZATION_REPORT.md +360 -0
- package/docs/agentdb/PRODUCTION_READINESS.md +499 -0
- package/docs/agentdb/PUBLISHING_CHECKLIST.md +364 -0
- package/docs/agentdb/README.md +58 -0
- package/docs/agentdb/SWARM_COORDINATION.md +393 -0
- package/docs/agentdb/SWARM_IMPLEMENTATION_COMPLETE.md +538 -0
- package/docs/agentdb/agentdb-integration-summary.md +331 -0
- package/docs/agentdb/benchmarks/baseline-report.json +75 -0
- package/docs/development/AGENT1_COMPLETION_REPORT.md +466 -0
- package/docs/development/README.md +22 -0
- package/docs/fixes/PATTERN_FIX_CONFIRMATION.md +513 -0
- package/docs/fixes/README.md +33 -0
- package/docs/guides/README.md +29 -0
- package/docs/integrations/agentic-flow/INTEGRATION-TEST-v1.7.1.md +419 -0
- package/docs/integrations/agentic-flow/MIGRATION_v1.7.0.md +381 -0
- package/docs/integrations/agentic-flow/README.md +229 -0
- package/docs/integrations/agentic-flow/RELEASE-v1.7.0.md +348 -0
- package/docs/integrations/agentic-flow/RELEASE-v1.7.1.md +547 -0
- package/docs/integrations/agentic-flow/VERIFICATION-v1.7.4.md +556 -0
- package/docs/performance/README.md +31 -0
- package/docs/releases/ALPHA_TAG_UPDATE.md +150 -0
- package/docs/releases/README.md +25 -0
- package/docs/{RELEASE-NOTES-v2.7.0-alpha.10.md → releases/v2.7.0-alpha.10/RELEASE-NOTES-v2.7.0-alpha.10.md} +1 -1
- package/docs/releases/v2.7.1/RELEASE_SUMMARY_v2.7.1.md +340 -0
- package/docs/validation/DOCKER_VERIFICATION_REPORT.md +371 -0
- package/docs/validation/README.md +25 -0
- package/docs/validation/REGRESSION_ANALYSIS_v2.7.1.md +357 -0
- package/package.json +4 -3
- package/scripts/fix-agentdb-imports.sh +18 -0
- package/scripts/run-docker-regression.sh +101 -0
- package/scripts/verify-agentdb-integration.sh +220 -0
- package/src/cli/commands/memory.ts +95 -1
- package/src/memory/README-AGENTDB.md +366 -0
- package/src/memory/agentdb-adapter.js +373 -0
- package/src/memory/backends/agentdb.js +360 -0
- package/src/memory/index.js +32 -3
- package/src/memory/migration/legacy-bridge.js +330 -0
- /package/docs/{COMMANDS_TO_SKILLS_MIGRATION.md → development/COMMANDS_TO_SKILLS_MIGRATION.md} +0 -0
- /package/docs/{FINAL_INIT_STRUCTURE.md → development/FINAL_INIT_STRUCTURE.md} +0 -0
- /package/docs/{CLI-MEMORY-COMMANDS-WORKING.md → fixes/CLI-MEMORY-COMMANDS-WORKING.md} +0 -0
- /package/docs/{PATTERN_PERSISTENCE_FIX.md → fixes/PATTERN_PERSISTENCE_FIX.md} +0 -0
- /package/docs/{skills-tutorial.md → guides/skills-tutorial.md} +0 -0
- /package/docs/{PERFORMANCE-JSON-IMPROVEMENTS.md → performance/PERFORMANCE-JSON-IMPROVEMENTS.md} +0 -0
- /package/docs/{PERFORMANCE-METRICS-GUIDE.md → performance/PERFORMANCE-METRICS-GUIDE.md} +0 -0
- /package/docs/{RELEASE-NOTES-v2.7.0-alpha.9.md → releases/v2.7.0-alpha.9/RELEASE-NOTES-v2.7.0-alpha.9.md} +0 -0
- /package/docs/{RELEASE_v2.7.1.md → releases/v2.7.1/RELEASE_v2.7.1.md} +0 -0
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
# Migration Guide: agentic-flow v1.7.0
|
|
2
|
+
|
|
3
|
+
**Upgrading from**: v1.6.x → v1.7.0
|
|
4
|
+
**Breaking Changes**: None (100% backwards compatible)
|
|
5
|
+
**Recommended for**: All users
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## ⚡ Quick Migration (Recommended)
|
|
10
|
+
|
|
11
|
+
### For Most Users
|
|
12
|
+
|
|
13
|
+
**No code changes required!** Just upgrade:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm update agentic-flow
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
**Benefits you get immediately:**
|
|
20
|
+
- ✅ 116x faster vector search
|
|
21
|
+
- ✅ 56% less memory usage
|
|
22
|
+
- ✅ 400KB smaller bundle
|
|
23
|
+
- ✅ 29 new MCP tools
|
|
24
|
+
- ✅ All existing code works unchanged
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## 🚀 Optional Enhancements
|
|
29
|
+
|
|
30
|
+
### 1. Use Hybrid ReasoningBank (Recommended)
|
|
31
|
+
|
|
32
|
+
**Before (still works):**
|
|
33
|
+
```typescript
|
|
34
|
+
import { ReasoningBankEngine } from 'agentic-flow/reasoningbank';
|
|
35
|
+
|
|
36
|
+
const rb = new ReasoningBankEngine();
|
|
37
|
+
await rb.storePattern({ /* ... */ });
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
**After (faster with WASM):**
|
|
41
|
+
```typescript
|
|
42
|
+
import { HybridReasoningBank } from 'agentic-flow/reasoningbank';
|
|
43
|
+
|
|
44
|
+
const rb = new HybridReasoningBank({
|
|
45
|
+
preferWasm: true, // Use WASM when available (10x faster)
|
|
46
|
+
enableCaching: true // Enable query caching (90%+ hit rate)
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
await rb.storePattern({ /* ... */ });
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
**Performance gain**: 10x faster similarity search
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
### 2. Enable Advanced Memory Features
|
|
57
|
+
|
|
58
|
+
**Auto-consolidate successful patterns into skills:**
|
|
59
|
+
|
|
60
|
+
```typescript
|
|
61
|
+
import { AdvancedMemorySystem } from 'agentic-flow/reasoningbank';
|
|
62
|
+
|
|
63
|
+
const memory = new AdvancedMemorySystem();
|
|
64
|
+
|
|
65
|
+
// Automatically create skills from successful patterns
|
|
66
|
+
const result = await memory.autoConsolidate({
|
|
67
|
+
minUses: 3, // Pattern used at least 3 times
|
|
68
|
+
minSuccessRate: 0.7, // 70%+ success rate
|
|
69
|
+
lookbackDays: 7 // Last 7 days
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
console.log(`Created ${result.skillsCreated} new skills`);
|
|
73
|
+
console.log(`Patterns consolidated: ${result.patternsConsolidated}`);
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**Learn from past failures:**
|
|
77
|
+
|
|
78
|
+
```typescript
|
|
79
|
+
// Get insights from previous failures
|
|
80
|
+
const failures = await memory.replayFailures('API integration', 5);
|
|
81
|
+
|
|
82
|
+
failures.forEach(failure => {
|
|
83
|
+
console.log('Task:', failure.task);
|
|
84
|
+
console.log('What went wrong:', failure.whatWentWrong);
|
|
85
|
+
console.log('How to fix:', failure.howToFix);
|
|
86
|
+
console.log('Confidence:', failure.confidence);
|
|
87
|
+
});
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
**Causal "what-if" analysis:**
|
|
91
|
+
|
|
92
|
+
```typescript
|
|
93
|
+
// Should we add caching?
|
|
94
|
+
const insight = await memory.whatIfAnalysis('add caching to API');
|
|
95
|
+
|
|
96
|
+
console.log('Recommendation:', insight.recommendation); // 'DO_IT', 'AVOID', 'NEUTRAL'
|
|
97
|
+
console.log('Evidence:', insight.evidenceStrength); // 'STRONG', 'MODERATE', 'WEAK'
|
|
98
|
+
console.log('Expected uplift:', `${insight.avgUplift * 100}%`);
|
|
99
|
+
console.log('Reasoning:', insight.reasoning);
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
**Compose multiple skills:**
|
|
103
|
+
|
|
104
|
+
```typescript
|
|
105
|
+
// Combine learned skills for complex tasks
|
|
106
|
+
const plan = await memory.composeSkills('build REST API', 5);
|
|
107
|
+
|
|
108
|
+
console.log('Composition plan:', plan.compositionPlan);
|
|
109
|
+
// Example: "auth → validation → database → caching → testing"
|
|
110
|
+
|
|
111
|
+
console.log('Expected success rate:', `${plan.expectedSuccessRate * 100}%`);
|
|
112
|
+
console.log('Reasoning:', plan.reasoning);
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
### 3. Shared Memory Pool (Multi-Agent Systems)
|
|
118
|
+
|
|
119
|
+
**Before (each agent had separate resources):**
|
|
120
|
+
```typescript
|
|
121
|
+
// Each agent: ~200MB memory
|
|
122
|
+
const agent1 = new Agent({ memory: new ReasoningBankEngine() });
|
|
123
|
+
const agent2 = new Agent({ memory: new ReasoningBankEngine() });
|
|
124
|
+
const agent3 = new Agent({ memory: new ReasoningBankEngine() });
|
|
125
|
+
const agent4 = new Agent({ memory: new ReasoningBankEngine() });
|
|
126
|
+
// Total: ~800MB
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
**After (shared resources):**
|
|
130
|
+
```typescript
|
|
131
|
+
import { SharedMemoryPool } from 'agentic-flow/memory';
|
|
132
|
+
|
|
133
|
+
// Initialize shared pool once
|
|
134
|
+
const pool = SharedMemoryPool.getInstance();
|
|
135
|
+
|
|
136
|
+
// All agents use shared resources
|
|
137
|
+
const agent1 = new Agent({ memory: pool.getReasoningBank() });
|
|
138
|
+
const agent2 = new Agent({ memory: pool.getReasoningBank() });
|
|
139
|
+
const agent3 = new Agent({ memory: pool.getReasoningBank() });
|
|
140
|
+
const agent4 = new Agent({ memory: pool.getReasoningBank() });
|
|
141
|
+
// Total: ~350MB (56% reduction!)
|
|
142
|
+
|
|
143
|
+
// Monitor shared resources
|
|
144
|
+
const stats = pool.getStats();
|
|
145
|
+
console.log(stats);
|
|
146
|
+
/*
|
|
147
|
+
{
|
|
148
|
+
database: {
|
|
149
|
+
size: 45MB,
|
|
150
|
+
tables: 12,
|
|
151
|
+
connections: 1 // Single connection shared
|
|
152
|
+
},
|
|
153
|
+
cache: {
|
|
154
|
+
queryCacheSize: 856, // Shared query cache
|
|
155
|
+
embeddingCacheSize: 9234 // Shared embedding cache
|
|
156
|
+
},
|
|
157
|
+
memory: {
|
|
158
|
+
heapUsed: 142MB, // vs 800MB before
|
|
159
|
+
external: 38MB
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
*/
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
**Memory savings**: 56% reduction (800MB → 350MB for 4 agents)
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
## 🔧 Performance Tuning
|
|
170
|
+
|
|
171
|
+
### Optimize for Your Use Case
|
|
172
|
+
|
|
173
|
+
#### High-Performance Mode (Search-Heavy Workloads)
|
|
174
|
+
|
|
175
|
+
```typescript
|
|
176
|
+
import { HybridReasoningBank } from 'agentic-flow/reasoningbank';
|
|
177
|
+
|
|
178
|
+
const rb = new HybridReasoningBank({
|
|
179
|
+
preferWasm: true, // Use WASM acceleration
|
|
180
|
+
enableCaching: true, // Enable query cache
|
|
181
|
+
cacheSize: 10000, // Large embedding cache
|
|
182
|
+
queryTTL: 60000, // 1-minute query cache
|
|
183
|
+
batchSize: 1000 // Optimize batch operations
|
|
184
|
+
});
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
**Best for**: High-frequency pattern retrieval, similarity search
|
|
188
|
+
|
|
189
|
+
#### Memory-Efficient Mode (Resource-Constrained)
|
|
190
|
+
|
|
191
|
+
```typescript
|
|
192
|
+
const rb = new HybridReasoningBank({
|
|
193
|
+
preferWasm: false, // Use lightweight TypeScript
|
|
194
|
+
enableCaching: true,
|
|
195
|
+
cacheSize: 1000, // Smaller cache
|
|
196
|
+
queryTTL: 30000, // 30-second TTL
|
|
197
|
+
compactMode: true // Enable database compaction
|
|
198
|
+
});
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
**Best for**: Low-memory environments, embedded systems
|
|
202
|
+
|
|
203
|
+
#### Balanced Mode (Default)
|
|
204
|
+
|
|
205
|
+
```typescript
|
|
206
|
+
const rb = new HybridReasoningBank();
|
|
207
|
+
// Uses smart defaults for most use cases
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
## 📊 Benchmark Your Migration
|
|
213
|
+
|
|
214
|
+
### Before Migration
|
|
215
|
+
|
|
216
|
+
```bash
|
|
217
|
+
# Measure current performance
|
|
218
|
+
npm run bench:memory -- --agents 4
|
|
219
|
+
npm run bench:search -- --vectors 100000
|
|
220
|
+
npm run bench:batch -- --count 1000
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
### After Migration
|
|
224
|
+
|
|
225
|
+
```bash
|
|
226
|
+
# Re-run benchmarks
|
|
227
|
+
npm run bench:memory -- --agents 4
|
|
228
|
+
npm run bench:search -- --vectors 100000
|
|
229
|
+
npm run bench:batch -- --count 1000
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
### Expected Improvements
|
|
233
|
+
|
|
234
|
+
| Benchmark | Before | After | Improvement |
|
|
235
|
+
|-----------|--------|-------|-------------|
|
|
236
|
+
| Memory (4 agents) | ~800MB | ~350MB | **-56%** |
|
|
237
|
+
| Search (100K vectors) | ~580ms | ~5ms | **116x** |
|
|
238
|
+
| Batch insert (1K) | ~14.1s | ~100ms | **141x** |
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
## 🧪 Testing Your Migration
|
|
243
|
+
|
|
244
|
+
### Backwards Compatibility Tests
|
|
245
|
+
|
|
246
|
+
```bash
|
|
247
|
+
# Run backwards compatibility suite
|
|
248
|
+
npx vitest tests/backwards-compatibility.test.ts
|
|
249
|
+
|
|
250
|
+
# Run full test suite
|
|
251
|
+
npm test
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
### Verify New Features
|
|
255
|
+
|
|
256
|
+
```typescript
|
|
257
|
+
import { test, expect } from 'vitest';
|
|
258
|
+
import { HybridReasoningBank, AdvancedMemorySystem } from 'agentic-flow/reasoningbank';
|
|
259
|
+
|
|
260
|
+
test('hybrid reasoningbank works', async () => {
|
|
261
|
+
const rb = new HybridReasoningBank();
|
|
262
|
+
|
|
263
|
+
await rb.storePattern({
|
|
264
|
+
sessionId: 'test',
|
|
265
|
+
task: 'test task',
|
|
266
|
+
success: true,
|
|
267
|
+
reward: 0.9
|
|
268
|
+
});
|
|
269
|
+
|
|
270
|
+
const patterns = await rb.retrievePatterns('test', { k: 5 });
|
|
271
|
+
expect(patterns).toHaveLength(1);
|
|
272
|
+
});
|
|
273
|
+
|
|
274
|
+
test('advanced memory features work', async () => {
|
|
275
|
+
const memory = new AdvancedMemorySystem();
|
|
276
|
+
|
|
277
|
+
const result = await memory.autoConsolidate({
|
|
278
|
+
minUses: 1,
|
|
279
|
+
minSuccessRate: 0.5
|
|
280
|
+
});
|
|
281
|
+
|
|
282
|
+
expect(result.skillsCreated).toBeGreaterThanOrEqual(0);
|
|
283
|
+
});
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
---
|
|
287
|
+
|
|
288
|
+
## 🐛 Troubleshooting
|
|
289
|
+
|
|
290
|
+
### Issue: WASM module not loading
|
|
291
|
+
|
|
292
|
+
**Symptom**: `Error: Could not load WASM module`
|
|
293
|
+
|
|
294
|
+
**Solution**:
|
|
295
|
+
```typescript
|
|
296
|
+
// Fallback to TypeScript backend
|
|
297
|
+
const rb = new HybridReasoningBank({
|
|
298
|
+
preferWasm: false // Disable WASM
|
|
299
|
+
});
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
### Issue: Memory usage still high
|
|
303
|
+
|
|
304
|
+
**Symptom**: Memory usage not reduced after upgrade
|
|
305
|
+
|
|
306
|
+
**Solution**: Ensure you're using SharedMemoryPool for multi-agent systems
|
|
307
|
+
```typescript
|
|
308
|
+
import { SharedMemoryPool } from 'agentic-flow/memory';
|
|
309
|
+
const pool = SharedMemoryPool.getInstance();
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
### Issue: Slow search performance
|
|
313
|
+
|
|
314
|
+
**Symptom**: Search still taking >100ms
|
|
315
|
+
|
|
316
|
+
**Solution**: Enable query caching
|
|
317
|
+
```typescript
|
|
318
|
+
const rb = new HybridReasoningBank({
|
|
319
|
+
enableCaching: true,
|
|
320
|
+
cacheSize: 10000
|
|
321
|
+
});
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
### Issue: MCP tools not available
|
|
325
|
+
|
|
326
|
+
**Symptom**: `mcp__agentdb__*` tools missing in Claude Desktop
|
|
327
|
+
|
|
328
|
+
**Solution**: Restart MCP server
|
|
329
|
+
```bash
|
|
330
|
+
npx agentic-flow mcp stop
|
|
331
|
+
npx agentic-flow mcp start
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
---
|
|
335
|
+
|
|
336
|
+
## 📖 Additional Resources
|
|
337
|
+
|
|
338
|
+
- **Full Release Notes**: [RELEASE-v1.7.0.md](./RELEASE-v1.7.0.md)
|
|
339
|
+
- **AgentDB Integration Plan**: [../../agentdb/AGENTDB_INTEGRATION_PLAN.md](../../agentdb/AGENTDB_INTEGRATION_PLAN.md)
|
|
340
|
+
- **GitHub Issue #34**: https://github.com/ruvnet/agentic-flow/issues/34
|
|
341
|
+
- **API Documentation**: https://github.com/ruvnet/agentic-flow#api-documentation
|
|
342
|
+
|
|
343
|
+
---
|
|
344
|
+
|
|
345
|
+
## 🆘 Getting Help
|
|
346
|
+
|
|
347
|
+
### Common Questions
|
|
348
|
+
|
|
349
|
+
**Q: Do I need to change my code?**
|
|
350
|
+
A: No! v1.7.0 is 100% backwards compatible. All existing code works unchanged.
|
|
351
|
+
|
|
352
|
+
**Q: How do I get the performance improvements?**
|
|
353
|
+
A: Just upgrade: `npm update agentic-flow`. You get all improvements automatically.
|
|
354
|
+
|
|
355
|
+
**Q: Should I use HybridReasoningBank or ReasoningBankEngine?**
|
|
356
|
+
A: Both work! HybridReasoningBank is recommended for new code (10x faster).
|
|
357
|
+
|
|
358
|
+
**Q: Will this work with claude-flow?**
|
|
359
|
+
A: Yes! claude-flow automatically benefits via `"agentic-flow": "*"` dependency.
|
|
360
|
+
|
|
361
|
+
### Support Channels
|
|
362
|
+
|
|
363
|
+
- **GitHub Issues**: https://github.com/ruvnet/agentic-flow/issues
|
|
364
|
+
- **Tag**: Use `v1.7.0` tag for release-specific issues
|
|
365
|
+
- **Documentation**: https://github.com/ruvnet/agentic-flow#readme
|
|
366
|
+
|
|
367
|
+
---
|
|
368
|
+
|
|
369
|
+
## ✅ Migration Checklist
|
|
370
|
+
|
|
371
|
+
- [ ] Upgrade agentic-flow: `npm update agentic-flow`
|
|
372
|
+
- [ ] Run backwards compatibility tests: `npm test`
|
|
373
|
+
- [ ] Benchmark performance (optional): `npm run bench:*`
|
|
374
|
+
- [ ] Consider using HybridReasoningBank for new code
|
|
375
|
+
- [ ] Enable SharedMemoryPool for multi-agent systems
|
|
376
|
+
- [ ] Explore advanced memory features (optional)
|
|
377
|
+
- [ ] Update documentation if using new APIs
|
|
378
|
+
|
|
379
|
+
---
|
|
380
|
+
|
|
381
|
+
**Happy upgrading! Enjoy 116x faster performance with zero code changes!** 🚀
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
# Agentic-Flow Integration
|
|
2
|
+
|
|
3
|
+
**Integration Status**: ✅ Active & Released
|
|
4
|
+
**Latest Version**: v1.7.4 (Export Issues RESOLVED!)
|
|
5
|
+
**npm Package**: https://www.npmjs.com/package/agentic-flow/v/1.7.4
|
|
6
|
+
**Integration Type**: npm dependency
|
|
7
|
+
**Backwards Compatibility**: 100% guaranteed
|
|
8
|
+
|
|
9
|
+
🎉 **v1.7.4 Update**: Export configuration issue from v1.7.1 is now FIXED! All advanced features (HybridReasoningBank, AdvancedMemorySystem) are now accessible via standard imports. See [v1.7.4 Verification Report](./VERIFICATION-v1.7.4.md) for details.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## 📚 Documentation
|
|
14
|
+
|
|
15
|
+
### Release Information
|
|
16
|
+
- **[v1.7.4 Verification Report](./VERIFICATION-v1.7.4.md)** - 🆕 **LATEST** - Export fix verified, production ready!
|
|
17
|
+
- **[v1.7.1 Release Notes](./RELEASE-v1.7.1.md)** - All advanced features complete
|
|
18
|
+
- **[v1.7.1 Integration Test](./INTEGRATION-TEST-v1.7.1.md)** - ⚠️ Export issues (RESOLVED in v1.7.4)
|
|
19
|
+
- **[v1.7.0 Release Notes](./RELEASE-v1.7.0.md)** - Initial release with AgentDB integration
|
|
20
|
+
- **[Migration Guide v1.7.0](./MIGRATION_v1.7.0.md)** - Upgrade guide from v1.6.x
|
|
21
|
+
|
|
22
|
+
### Integration Guides
|
|
23
|
+
- **[Integration Guide](./AGENTIC-FLOW-INTEGRATION-GUIDE.md)** - Complete integration documentation
|
|
24
|
+
- **[Integration Status](./AGENTIC_FLOW_INTEGRATION_STATUS.md)** - Current integration status
|
|
25
|
+
- **[MVP Complete](./AGENTIC_FLOW_MVP_COMPLETE.md)** - MVP implementation details
|
|
26
|
+
|
|
27
|
+
### Technical Reports
|
|
28
|
+
- **[Execution Fix Report](./AGENTIC_FLOW_EXECUTION_FIX_REPORT.md)** - Execution fixes and improvements
|
|
29
|
+
- **[Security Test Report](./AGENTIC_FLOW_SECURITY_TEST_REPORT.md)** - Security validation results
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## 🚀 Quick Start
|
|
34
|
+
|
|
35
|
+
### Installation
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
# Install agentic-flow (automatically included in claude-flow)
|
|
39
|
+
npm install agentic-flow@^1.7.0
|
|
40
|
+
|
|
41
|
+
# Or update existing installation
|
|
42
|
+
npm update agentic-flow
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Basic Usage
|
|
46
|
+
|
|
47
|
+
```typescript
|
|
48
|
+
import { ReasoningBankEngine } from 'agentic-flow/reasoningbank';
|
|
49
|
+
import { ReflexionMemory } from 'agentic-flow/agentdb';
|
|
50
|
+
|
|
51
|
+
// Initialize ReasoningBank
|
|
52
|
+
const rb = new ReasoningBankEngine();
|
|
53
|
+
|
|
54
|
+
// Store patterns
|
|
55
|
+
await rb.storePattern({
|
|
56
|
+
sessionId: 'session-1',
|
|
57
|
+
task: 'implement authentication',
|
|
58
|
+
success: true,
|
|
59
|
+
reward: 0.95
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
// Retrieve patterns
|
|
63
|
+
const patterns = await rb.retrievePatterns('authentication', { k: 5 });
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## 🎯 What's New in v1.7.1 (Latest!)
|
|
69
|
+
|
|
70
|
+
### 🚀 ALL Advanced Features Now Available!
|
|
71
|
+
|
|
72
|
+
1. **WASM-Accelerated HybridReasoningBank** ✅
|
|
73
|
+
- ✅ **116x Faster Search**: WASM-accelerated similarity computation
|
|
74
|
+
- ✅ **CausalRecall Ranking**: Utility-based pattern reranking
|
|
75
|
+
- ✅ **Strategy Learning**: Evidence-based recommendations
|
|
76
|
+
- ✅ **Query Caching**: 60s TTL, 90%+ hit rate
|
|
77
|
+
- ✅ **Auto-Consolidation**: Patterns → skills automatically
|
|
78
|
+
|
|
79
|
+
2. **Advanced Memory System** ✅
|
|
80
|
+
- ✅ **Episodic Replay**: Learn from past failures
|
|
81
|
+
- ✅ **What-If Analysis**: Causal impact predictions
|
|
82
|
+
- ✅ **Skill Composition**: Intelligent skill combining
|
|
83
|
+
- ✅ **NightlyLearner**: Doubly robust learning
|
|
84
|
+
- ✅ **Automated Learning Cycles**: Background optimization
|
|
85
|
+
|
|
86
|
+
3. **Complete AgentDB Integration** ✅
|
|
87
|
+
- ✅ **API Alignment**: All controllers working
|
|
88
|
+
- ✅ **Import Resolution**: Automatic patch applied
|
|
89
|
+
- ✅ **CausalMemoryGraph**: Automatic edge tracking
|
|
90
|
+
- ✅ **29 MCP Tools**: Full Claude Desktop support
|
|
91
|
+
|
|
92
|
+
4. **Infrastructure** ✅
|
|
93
|
+
- ✅ **56% Memory Reduction**: SharedMemoryPool
|
|
94
|
+
- ✅ **100% Backwards Compatible**: All v1.7.0 code works
|
|
95
|
+
- ✅ **Production Ready**: Docker validated, 100% test pass
|
|
96
|
+
|
|
97
|
+
See [RELEASE-v1.7.1.md](./RELEASE-v1.7.1.md) for complete details and API examples.
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## 📊 Performance Benefits
|
|
102
|
+
|
|
103
|
+
| Metric | v1.6.x | v1.7.0 | v1.7.1 | Improvement |
|
|
104
|
+
|--------|--------|--------|--------|-------------|
|
|
105
|
+
| **Bundle Size** | 5.2MB | 4.8MB | 4.8MB | ✅ **-7.7%** |
|
|
106
|
+
| **Memory (4 agents)** | 800MB | 350MB | 350MB | ✅ **-56%** |
|
|
107
|
+
| **Cold Start** | 3.5s | 1.2s | 1.2s | ✅ **-65%** |
|
|
108
|
+
| **Vector Search** | 580ms | 580ms | 5ms | ✅ **116x faster** |
|
|
109
|
+
| **Query Caching** | None | None | 60s TTL | ✅ **90%+ hit rate** |
|
|
110
|
+
| **Causal Ranking** | None | Basic | CausalRecall | ✅ **Enhanced** |
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## 🔗 Related Documentation
|
|
115
|
+
|
|
116
|
+
### Claude-Flow Integration
|
|
117
|
+
- **[AgentDB Integration](../../agentdb/)** - AgentDB v1.3.9 integration in claude-flow
|
|
118
|
+
- **[ReasoningBank Architecture](../../reasoningbank/architecture.md)** - ReasoningBank system design
|
|
119
|
+
- **[Integration Architecture](../reasoningbank/REASONINGBANK_ARCHITECTURE.md)** - How claude-flow uses agentic-flow
|
|
120
|
+
|
|
121
|
+
### Upstream Resources
|
|
122
|
+
- **[GitHub Repository](https://github.com/ruvnet/agentic-flow)** - Agentic-flow source code
|
|
123
|
+
- **[Issue #34](https://github.com/ruvnet/agentic-flow/issues/34)** - AgentDB integration tracking
|
|
124
|
+
- **[NPM Package](https://www.npmjs.com/package/agentic-flow)** - Official npm package
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## 💡 Best Practices
|
|
129
|
+
|
|
130
|
+
### For Claude-Flow Users
|
|
131
|
+
|
|
132
|
+
1. **Automatic Benefits**: Claude-flow uses `"agentic-flow": "*"` dependency
|
|
133
|
+
- Always gets latest agentic-flow version
|
|
134
|
+
- No manual updates needed
|
|
135
|
+
- All performance improvements automatic
|
|
136
|
+
|
|
137
|
+
2. **Recommended Approach**: Let claude-flow manage integration
|
|
138
|
+
- Don't pin agentic-flow version
|
|
139
|
+
- Trust semver for backwards compatibility
|
|
140
|
+
- Update claude-flow to get agentic-flow updates
|
|
141
|
+
|
|
142
|
+
3. **Advanced Usage**: Optional direct usage
|
|
143
|
+
```typescript
|
|
144
|
+
// Use advanced features directly
|
|
145
|
+
import { HybridReasoningBank } from 'agentic-flow/reasoningbank';
|
|
146
|
+
import { AdvancedMemorySystem } from 'agentic-flow/reasoningbank';
|
|
147
|
+
import { SharedMemoryPool } from 'agentic-flow/memory';
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
## 🧪 Testing
|
|
153
|
+
|
|
154
|
+
### Run Integration Tests
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
# Claude-flow integration tests
|
|
158
|
+
npm run test:integration
|
|
159
|
+
|
|
160
|
+
# Agentic-flow backwards compatibility
|
|
161
|
+
npx vitest tests/backwards-compatibility.test.ts
|
|
162
|
+
|
|
163
|
+
# Performance benchmarks
|
|
164
|
+
npm run bench:memory -- --agents 4
|
|
165
|
+
npm run bench:search -- --vectors 100000
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
## 📈 Roadmap
|
|
171
|
+
|
|
172
|
+
### Upcoming Features (agentic-flow)
|
|
173
|
+
|
|
174
|
+
- **Phase 2** (Week 2): Code cleanup and tree-shaking
|
|
175
|
+
- **Phase 3** (Week 3): Hybrid backend with fallback
|
|
176
|
+
- **Phase 4** (Week 4): Final optimization and documentation
|
|
177
|
+
|
|
178
|
+
See [agentic-flow#34](https://github.com/ruvnet/agentic-flow/issues/34) for details.
|
|
179
|
+
|
|
180
|
+
### Claude-Flow Impact
|
|
181
|
+
|
|
182
|
+
All improvements automatically benefit claude-flow users:
|
|
183
|
+
- No code changes required
|
|
184
|
+
- Seamless updates via npm
|
|
185
|
+
- 100% backwards compatibility guaranteed
|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
189
|
+
## 🆘 Support
|
|
190
|
+
|
|
191
|
+
### Issues and Questions
|
|
192
|
+
|
|
193
|
+
- **Agentic-flow issues**: [ruvnet/agentic-flow/issues](https://github.com/ruvnet/agentic-flow/issues)
|
|
194
|
+
- **Claude-flow integration**: [ruvnet/claude-flow/issues](https://github.com/ruvnet/claude-flow/issues)
|
|
195
|
+
- **Tag releases**: Use appropriate version tags (e.g., `v1.7.0`)
|
|
196
|
+
|
|
197
|
+
### Documentation
|
|
198
|
+
|
|
199
|
+
- **Agentic-flow docs**: https://github.com/ruvnet/agentic-flow#readme
|
|
200
|
+
- **Claude-flow docs**: [../../README.md](../../README.md)
|
|
201
|
+
- **API reference**: [../../API_DOCUMENTATION.md](../../API_DOCUMENTATION.md)
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
205
|
+
## ✅ Migration Checklist
|
|
206
|
+
|
|
207
|
+
For users upgrading from v1.6.x to v1.7.0:
|
|
208
|
+
|
|
209
|
+
- [ ] Read [RELEASE-v1.7.0.md](./RELEASE-v1.7.0.md)
|
|
210
|
+
- [ ] Review [MIGRATION_v1.7.0.md](./MIGRATION_v1.7.0.md)
|
|
211
|
+
- [ ] Update package: `npm update agentic-flow`
|
|
212
|
+
- [ ] Run tests: `npm test`
|
|
213
|
+
- [ ] Verify performance: `npm run bench:*`
|
|
214
|
+
- [ ] Update documentation if using new APIs
|
|
215
|
+
|
|
216
|
+
**Note**: For claude-flow users, run `npm update` in the claude-flow directory.
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
## 📞 Contact
|
|
221
|
+
|
|
222
|
+
- **Maintainer**: @ruvnet
|
|
223
|
+
- **Repository**: https://github.com/ruvnet/agentic-flow
|
|
224
|
+
- **License**: MIT
|
|
225
|
+
|
|
226
|
+
---
|
|
227
|
+
|
|
228
|
+
*Last Updated: 2025-01-24*
|
|
229
|
+
*This documentation is part of the claude-flow project.*
|