agentic-flow 1.3.0 → 1.4.0
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 +87 -12
- package/dist/agents/claudeAgent.js +96 -67
- package/dist/cli/claude-code-wrapper.js +23 -1
- package/dist/cli-proxy.js +71 -5
- package/dist/mcp/standalone-stdio.js +251 -2
- package/dist/proxy/anthropic-to-requesty.js +707 -0
- package/dist/utils/cli.js +6 -0
- package/dist/utils/modelCapabilities.js +22 -0
- package/docs/plans/agent-booster/00-INDEX.md +230 -0
- package/docs/plans/agent-booster/00-OVERVIEW.md +454 -0
- package/docs/plans/agent-booster/01-ARCHITECTURE.md +699 -0
- package/docs/plans/agent-booster/02-INTEGRATION.md +771 -0
- package/docs/plans/agent-booster/03-BENCHMARKS.md +616 -0
- package/docs/plans/agent-booster/04-NPM-SDK.md +673 -0
- package/docs/plans/agent-booster/GITHUB-ISSUE.md +523 -0
- package/docs/plans/agent-booster/README.md +576 -0
- package/docs/plans/requesty/00-overview.md +176 -0
- package/docs/plans/requesty/01-api-research.md +573 -0
- package/docs/plans/requesty/02-architecture.md +1076 -0
- package/docs/plans/requesty/03-implementation-phases.md +1129 -0
- package/docs/plans/requesty/04-testing-strategy.md +905 -0
- package/docs/plans/requesty/05-migration-guide.md +576 -0
- package/docs/plans/requesty/README.md +290 -0
- package/package.json +1 -1
package/dist/utils/cli.js
CHANGED
|
@@ -130,6 +130,7 @@ USAGE:
|
|
|
130
130
|
npx agentic-flow [COMMAND] [OPTIONS]
|
|
131
131
|
|
|
132
132
|
COMMANDS:
|
|
133
|
+
claude-code [options] Spawn Claude Code with proxy + Agent Booster (57x faster edits)
|
|
133
134
|
mcp <command> [server] Manage MCP servers (start, stop, status, list)
|
|
134
135
|
config [command] Configuration wizard (set, get, list, delete, reset)
|
|
135
136
|
agent <command> Agent management (list, create, info, conflicts)
|
|
@@ -178,6 +179,11 @@ OPTIONS:
|
|
|
178
179
|
--help, -h Show this help message
|
|
179
180
|
|
|
180
181
|
EXAMPLES:
|
|
182
|
+
# Claude Code with Agent Booster (57x faster code edits)
|
|
183
|
+
npx agentic-flow claude-code --provider openrouter --agent-booster
|
|
184
|
+
npx agentic-flow claude-code --provider gemini "Write a REST API"
|
|
185
|
+
npx agentic-flow claude-code --help # See all claude-code options
|
|
186
|
+
|
|
181
187
|
# Agent Management
|
|
182
188
|
npx agentic-flow agent list # List all agents with sources
|
|
183
189
|
npx agentic-flow agent create # Interactive agent creator
|
|
@@ -43,6 +43,28 @@ const MODEL_CAPABILITIES = {
|
|
|
43
43
|
emulationStrategy: 'none',
|
|
44
44
|
costPerMillionTokens: 0.30
|
|
45
45
|
},
|
|
46
|
+
// OpenAI Models (via OpenRouter/Requesty)
|
|
47
|
+
'openai/gpt-4o': {
|
|
48
|
+
supportsNativeTools: true,
|
|
49
|
+
contextWindow: 128000,
|
|
50
|
+
requiresEmulation: false,
|
|
51
|
+
emulationStrategy: 'none',
|
|
52
|
+
costPerMillionTokens: 2.50
|
|
53
|
+
},
|
|
54
|
+
'openai/gpt-4o-mini': {
|
|
55
|
+
supportsNativeTools: true,
|
|
56
|
+
contextWindow: 128000,
|
|
57
|
+
requiresEmulation: false,
|
|
58
|
+
emulationStrategy: 'none',
|
|
59
|
+
costPerMillionTokens: 0.15
|
|
60
|
+
},
|
|
61
|
+
'openai/gpt-4-turbo': {
|
|
62
|
+
supportsNativeTools: true,
|
|
63
|
+
contextWindow: 128000,
|
|
64
|
+
requiresEmulation: false,
|
|
65
|
+
emulationStrategy: 'none',
|
|
66
|
+
costPerMillionTokens: 10.00
|
|
67
|
+
},
|
|
46
68
|
// OpenRouter - No Native Tool Support (Require Emulation)
|
|
47
69
|
'mistralai/mistral-7b-instruct': {
|
|
48
70
|
supportsNativeTools: false,
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
# Agent Booster: Complete Planning Documentation
|
|
2
|
+
|
|
3
|
+
> **Ultra-fast code application engine - 200x faster than Morph LLM at $0 cost**
|
|
4
|
+
|
|
5
|
+
## 📚 Documentation Index
|
|
6
|
+
|
|
7
|
+
### Core Planning Documents
|
|
8
|
+
|
|
9
|
+
1. **[00-OVERVIEW.md](./00-OVERVIEW.md)** - Vision, Objectives & Success Metrics
|
|
10
|
+
- Project vision and motivation
|
|
11
|
+
- Core objectives (performance, accuracy, cost, DX)
|
|
12
|
+
- Key features and capabilities
|
|
13
|
+
- Development phases (10 weeks)
|
|
14
|
+
- Success criteria and metrics
|
|
15
|
+
- Open questions and next steps
|
|
16
|
+
|
|
17
|
+
2. **[01-ARCHITECTURE.md](./01-ARCHITECTURE.md)** - Technical Architecture & Design
|
|
18
|
+
- System architecture diagrams
|
|
19
|
+
- Rust crate structure (core, native, wasm)
|
|
20
|
+
- Module breakdown (parser, embeddings, vector, merge)
|
|
21
|
+
- Data flow and algorithms
|
|
22
|
+
- Performance optimizations
|
|
23
|
+
- Testing strategy
|
|
24
|
+
- Error handling
|
|
25
|
+
|
|
26
|
+
3. **[02-INTEGRATION.md](./02-INTEGRATION.md)** - Integration with Agentic-Flow & MCP
|
|
27
|
+
- Agentic-flow integration (.env, tools, CLI)
|
|
28
|
+
- MCP server architecture
|
|
29
|
+
- Tool implementations
|
|
30
|
+
- Configuration presets
|
|
31
|
+
- Metrics & monitoring
|
|
32
|
+
- Workspace detection
|
|
33
|
+
|
|
34
|
+
4. **[03-BENCHMARKS.md](./03-BENCHMARKS.md)** - Benchmark Methodology
|
|
35
|
+
- Test dataset design (100 samples)
|
|
36
|
+
- Morph LLM baseline (Claude Sonnet/Opus/Haiku)
|
|
37
|
+
- Agent Booster variants (native/WASM/TypeScript)
|
|
38
|
+
- Metrics collection (performance, accuracy, cost)
|
|
39
|
+
- Statistical analysis
|
|
40
|
+
- Expected results (166x speedup, 100% cost savings)
|
|
41
|
+
|
|
42
|
+
5. **[04-NPM-SDK.md](./04-NPM-SDK.md)** - NPM SDK & CLI Design
|
|
43
|
+
- Package structure (agent-booster, agent-booster-cli)
|
|
44
|
+
- Auto-detection loader (native > WASM)
|
|
45
|
+
- TypeScript definitions
|
|
46
|
+
- CLI commands (apply, batch, watch, mcp, dashboard)
|
|
47
|
+
- Platform-specific packages
|
|
48
|
+
- Distribution strategy
|
|
49
|
+
|
|
50
|
+
6. **[README.md](./README.md)** - Main README (for crate/package)
|
|
51
|
+
- Quick start guide
|
|
52
|
+
- Performance comparison tables
|
|
53
|
+
- Feature comparison vs Morph LLM
|
|
54
|
+
- Usage examples
|
|
55
|
+
- Installation instructions
|
|
56
|
+
- Documentation links
|
|
57
|
+
|
|
58
|
+
7. **[GITHUB-ISSUE.md](./GITHUB-ISSUE.md)** - GitHub Issue Template
|
|
59
|
+
- Complete feature request
|
|
60
|
+
- Implementation roadmap (10 weeks)
|
|
61
|
+
- Task breakdown by phase
|
|
62
|
+
- Success criteria
|
|
63
|
+
- Testing checklist
|
|
64
|
+
- Release plan
|
|
65
|
+
|
|
66
|
+
## 🎯 Quick Reference
|
|
67
|
+
|
|
68
|
+
### Key Performance Targets
|
|
69
|
+
|
|
70
|
+
| Metric | Morph LLM | Agent Booster | Improvement |
|
|
71
|
+
|--------|-----------|---------------|-------------|
|
|
72
|
+
| **Latency (p50)** | 6,000ms | 30ms | **200x faster** ⚡ |
|
|
73
|
+
| **Throughput** | 10,500 tok/s | 1M+ tok/s | **95x faster** ⚡ |
|
|
74
|
+
| **Cost/edit** | $0.01 | $0.00 | **100% savings** 💰 |
|
|
75
|
+
| **Accuracy** | 98% | 97-99% | **Comparable** ✅ |
|
|
76
|
+
| **Privacy** | API | Local | **100% private** 🔒 |
|
|
77
|
+
|
|
78
|
+
### Technology Stack
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
Core:
|
|
82
|
+
├── Rust (performance + safety)
|
|
83
|
+
├── Tree-sitter (AST parsing, 40+ languages)
|
|
84
|
+
├── ONNX Runtime (local ML inference)
|
|
85
|
+
└── HNSW (vector similarity)
|
|
86
|
+
|
|
87
|
+
Bindings:
|
|
88
|
+
├── napi-rs (Node.js native addon)
|
|
89
|
+
├── wasm-bindgen (WebAssembly)
|
|
90
|
+
└── TypeScript (type-safe API)
|
|
91
|
+
|
|
92
|
+
Models:
|
|
93
|
+
├── jina-embeddings-v2-base-code (768-dim, best)
|
|
94
|
+
└── all-MiniLM-L6-v2 (384-dim, fast)
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### Project Structure
|
|
98
|
+
|
|
99
|
+
```
|
|
100
|
+
agent-booster/
|
|
101
|
+
├── crates/
|
|
102
|
+
│ ├── agent-booster/ # Core Rust library
|
|
103
|
+
│ ├── agent-booster-native/ # napi-rs bindings
|
|
104
|
+
│ └── agent-booster-wasm/ # WASM bindings
|
|
105
|
+
│
|
|
106
|
+
├── npm/
|
|
107
|
+
│ ├── agent-booster/ # Main NPM package
|
|
108
|
+
│ └── agent-booster-cli/ # Standalone CLI
|
|
109
|
+
│
|
|
110
|
+
├── benchmarks/ # Benchmark suite
|
|
111
|
+
│ ├── datasets/ # Test code samples
|
|
112
|
+
│ ├── baselines/ # Morph LLM baselines
|
|
113
|
+
│ └── results/ # Benchmark outputs
|
|
114
|
+
│
|
|
115
|
+
└── docs/ # Documentation
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### 10-Week Implementation Roadmap
|
|
119
|
+
|
|
120
|
+
- **Week 1-2**: Foundation (Rust setup, tree-sitter, benchmarks)
|
|
121
|
+
- **Week 3-4**: Core engine (embeddings, vector search, merge)
|
|
122
|
+
- **Week 5**: Native integration (napi-rs, NPM package)
|
|
123
|
+
- **Week 6**: WASM support (browser compatibility)
|
|
124
|
+
- **Week 7**: Agentic-flow integration (.env, tools)
|
|
125
|
+
- **Week 8**: MCP server (Claude/Cursor/VS Code)
|
|
126
|
+
- **Week 9**: CLI & SDK (npx agent-booster)
|
|
127
|
+
- **Week 10**: Documentation & release
|
|
128
|
+
|
|
129
|
+
## 🚀 Getting Started
|
|
130
|
+
|
|
131
|
+
### For Reviewers
|
|
132
|
+
|
|
133
|
+
1. Read **[00-OVERVIEW.md](./00-OVERVIEW.md)** for high-level vision
|
|
134
|
+
2. Review **[01-ARCHITECTURE.md](./01-ARCHITECTURE.md)** for technical design
|
|
135
|
+
3. Check **[03-BENCHMARKS.md](./03-BENCHMARKS.md)** for validation plan
|
|
136
|
+
4. See **[GITHUB-ISSUE.md](./GITHUB-ISSUE.md)** for complete task breakdown
|
|
137
|
+
|
|
138
|
+
### For Implementers
|
|
139
|
+
|
|
140
|
+
1. Start with **[01-ARCHITECTURE.md](./01-ARCHITECTURE.md)** for crate structure
|
|
141
|
+
2. Follow **[GITHUB-ISSUE.md](./GITHUB-ISSUE.md)** roadmap (week by week)
|
|
142
|
+
3. Reference **[02-INTEGRATION.md](./02-INTEGRATION.md)** for agentic-flow integration
|
|
143
|
+
4. Use **[04-NPM-SDK.md](./04-NPM-SDK.md)** for NPM package design
|
|
144
|
+
|
|
145
|
+
### For Users
|
|
146
|
+
|
|
147
|
+
1. Start with **[README.md](./README.md)** for quick start
|
|
148
|
+
2. Check **[02-INTEGRATION.md](./02-INTEGRATION.md)** for usage examples
|
|
149
|
+
3. Review **[03-BENCHMARKS.md](./03-BENCHMARKS.md)** for performance data
|
|
150
|
+
|
|
151
|
+
## 📊 Expected Results
|
|
152
|
+
|
|
153
|
+
### Performance (100 edits)
|
|
154
|
+
|
|
155
|
+
```
|
|
156
|
+
Morph LLM baseline:
|
|
157
|
+
├─ Total time: 10 minutes
|
|
158
|
+
├─ Total cost: $1.00
|
|
159
|
+
└─ Method: API calls
|
|
160
|
+
|
|
161
|
+
Agent Booster:
|
|
162
|
+
├─ Total time: 3.5 seconds ⚡ 170x faster
|
|
163
|
+
├─ Total cost: $0.00 💰 100% savings
|
|
164
|
+
└─ Method: Local inference
|
|
165
|
+
|
|
166
|
+
Hybrid (80% Agent Booster, 20% fallback):
|
|
167
|
+
├─ Total time: 1.4 minutes ⚡ 7x faster
|
|
168
|
+
├─ Total cost: $0.20 💰 80% savings
|
|
169
|
+
└─ Best accuracy + speed
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
### Accuracy
|
|
173
|
+
|
|
174
|
+
| Complexity | Morph LLM | Agent Booster | Difference |
|
|
175
|
+
|------------|-----------|---------------|------------|
|
|
176
|
+
| Simple | 99.2% | 98.5% | -0.7% |
|
|
177
|
+
| Medium | 97.8% | 96.2% | -1.6% |
|
|
178
|
+
| Complex | 96.1% | 93.8% | -2.3% |
|
|
179
|
+
| **Overall** | **98.0%** | **96.8%** | **-1.2%** |
|
|
180
|
+
|
|
181
|
+
## 🎯 Success Metrics
|
|
182
|
+
|
|
183
|
+
### MVP (v0.1)
|
|
184
|
+
- [x] Complete planning
|
|
185
|
+
- [ ] Core Rust library functional
|
|
186
|
+
- [ ] 100x speedup demonstrated
|
|
187
|
+
- [ ] 95%+ accuracy on simple edits
|
|
188
|
+
- [ ] Agentic-flow integration working
|
|
189
|
+
|
|
190
|
+
### Production (v1.0)
|
|
191
|
+
- [ ] WASM support
|
|
192
|
+
- [ ] MCP server
|
|
193
|
+
- [ ] 5+ languages
|
|
194
|
+
- [ ] >80% test coverage
|
|
195
|
+
- [ ] Documentation site
|
|
196
|
+
|
|
197
|
+
### Adoption
|
|
198
|
+
- [ ] 100+ GitHub stars
|
|
199
|
+
- [ ] 1,000+ npm downloads
|
|
200
|
+
- [ ] 10+ production users
|
|
201
|
+
- [ ] 5+ contributors
|
|
202
|
+
|
|
203
|
+
## 💡 Key Innovations
|
|
204
|
+
|
|
205
|
+
1. **Vector-Based Semantic Merging** - No LLM needed for code application
|
|
206
|
+
2. **Hybrid Fallback Strategy** - Best of both worlds (speed + accuracy)
|
|
207
|
+
3. **Universal Deployment** - Native, WASM, MCP server from one codebase
|
|
208
|
+
4. **Zero Runtime Cost** - 100% local after model download
|
|
209
|
+
5. **Deterministic Results** - Same input always produces same output
|
|
210
|
+
|
|
211
|
+
## 🤝 Next Steps
|
|
212
|
+
|
|
213
|
+
1. **Review Planning** - Get team feedback on architecture
|
|
214
|
+
2. **Finalize Scope** - Confirm MVP features
|
|
215
|
+
3. **Create GitHub Issue** - Use [GITHUB-ISSUE.md](./GITHUB-ISSUE.md) template
|
|
216
|
+
4. **Begin Phase 1** - Setup Rust workspace and benchmarks
|
|
217
|
+
5. **Recruit Contributors** - Find Rust developers interested
|
|
218
|
+
|
|
219
|
+
## 📝 Questions or Feedback?
|
|
220
|
+
|
|
221
|
+
- Open an issue on GitHub
|
|
222
|
+
- Comment on the planning documents
|
|
223
|
+
- Join the discussion in Discord
|
|
224
|
+
- DM the project maintainers
|
|
225
|
+
|
|
226
|
+
---
|
|
227
|
+
|
|
228
|
+
**Ready to make AI code editing 200x faster! 🚀**
|
|
229
|
+
|
|
230
|
+
*Last updated: 2025-10-07*
|