agentic-flow 1.4.0 → 1.4.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 +38 -10
- package/dist/mcp/standalone-stdio.js +3 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ Define routing rules through flexible policy modes: Strict mode keeps sensitive
|
|
|
24
24
|
|
|
25
25
|
**Key Capabilities:**
|
|
26
26
|
- ✅ **Claude Code Mode** - Run Claude Code with OpenRouter/Gemini/ONNX (85-99% savings)
|
|
27
|
-
- ✅ **Agent Booster** -
|
|
27
|
+
- ✅ **Agent Booster** - Local code editing: 85ms vs 13s (152x faster), $0 cost, runs offline
|
|
28
28
|
- ✅ **66 Specialized Agents** - Pre-built experts for coding, research, review, testing, DevOps
|
|
29
29
|
- ✅ **216 MCP Tools** - Agent Booster (3), Memory, GitHub, neural networks, sandboxes, workflows, payments
|
|
30
30
|
- ✅ **Multi-Model Router** - Anthropic, OpenRouter (300+ models), Gemini, ONNX (free local)
|
|
@@ -81,9 +81,35 @@ npx agentic-flow --list
|
|
|
81
81
|
|
|
82
82
|
---
|
|
83
83
|
|
|
84
|
-
### Option 2:
|
|
84
|
+
### Option 2: Agent Booster (Fast Code Edits)
|
|
85
85
|
|
|
86
|
-
|
|
86
|
+
For mechanical code changes, use Agent Booster to avoid LLM API calls entirely:
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
# Install Agent Booster
|
|
90
|
+
npm install -g agent-booster
|
|
91
|
+
|
|
92
|
+
# Apply code edit (JSON stdin)
|
|
93
|
+
echo '{"code":"function add(a,b){return a+b;}","edit":"function add(a,b){if(typeof a!=='\''number'\'')throw new Error();return a+b;}"}' | agent-booster apply --language javascript
|
|
94
|
+
|
|
95
|
+
# Output: Modified code in 85ms (vs 13s with LLM)
|
|
96
|
+
# Cost: $0.00 (vs ~$0.001 with API)
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
**Use Agent Booster MCP tools in Claude Desktop:**
|
|
100
|
+
|
|
101
|
+
The 3 Agent Booster tools are included in the agentic-flow MCP server:
|
|
102
|
+
- `agent_booster_edit_file` - Apply precise code edits to files
|
|
103
|
+
- `agent_booster_batch_edit` - Edit multiple files in one operation
|
|
104
|
+
- `agent_booster_parse_markdown` - Extract code from AI responses
|
|
105
|
+
|
|
106
|
+
When confidence is low (<70%), tools automatically suggest LLM fallback. [Learn more](https://github.com/ruvnet/agentic-flow/tree/main/agent-booster)
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
### Option 3: MCP Tools (Direct Access)
|
|
111
|
+
|
|
112
|
+
Access 216 MCP tools for memory, swarms, GitHub, neural networks, and cloud sandboxes:
|
|
87
113
|
|
|
88
114
|
```bash
|
|
89
115
|
# Start all MCP servers (216 tools) - stdio transport
|
|
@@ -169,15 +195,17 @@ npx agentic-flow claude-code --provider onnx "Analyze this codebase"
|
|
|
169
195
|
|
|
170
196
|
⚠️ **Note:** Claude Code sends 35k+ tokens in tool definitions. Models with <128k context (like Mistral Small at 32k) will fail with "context length exceeded" errors.
|
|
171
197
|
|
|
172
|
-
**Agent Booster
|
|
198
|
+
**Agent Booster - Local Code Editing:**
|
|
199
|
+
|
|
200
|
+
Instead of sending every code edit through expensive LLM APIs, Agent Booster handles mechanical code changes locally using pattern matching and AST analysis. This delivers substantial performance and cost benefits for routine edits:
|
|
173
201
|
|
|
174
|
-
| Metric | Standard LLM | Agent Booster
|
|
175
|
-
|
|
176
|
-
| **
|
|
177
|
-
| **Cost** |
|
|
178
|
-
| **
|
|
202
|
+
| Metric | Standard LLM | Agent Booster | Benefit |
|
|
203
|
+
|--------|-------------|---------------|---------|
|
|
204
|
+
| **Speed** | 13 seconds | 85ms | 152x faster response |
|
|
205
|
+
| **Cost** | ~$0.001 per edit | $0.00 | No API charges |
|
|
206
|
+
| **Privacy** | Cloud API call | Local execution | Code stays local |
|
|
179
207
|
|
|
180
|
-
|
|
208
|
+
Works well for type annotations, error handling, var→const conversions, and async/await transformations. For complex reasoning or structural refactors, Agent Booster automatically suggests LLM fallback. Runs entirely in-process using Rust/WASM—no external dependencies. Enabled by default, disable with `--no-agent-booster`.
|
|
181
209
|
|
|
182
210
|
**How it works:**
|
|
183
211
|
1. ✅ Auto-starts proxy server in background (OpenRouter/Gemini/ONNX)
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import { FastMCP } from 'fastmcp';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { execSync } from 'child_process';
|
|
6
|
-
import { resolve } from 'path';
|
|
7
6
|
// Suppress FastMCP internal warnings for cleaner output
|
|
8
7
|
const originalConsoleWarn = console.warn;
|
|
9
8
|
console.warn = (...args) => {
|
|
@@ -323,15 +322,13 @@ server.addTool({
|
|
|
323
322
|
};
|
|
324
323
|
language = langMap[ext] || 'javascript';
|
|
325
324
|
}
|
|
326
|
-
// Apply edit using agent-booster CLI
|
|
327
|
-
const
|
|
328
|
-
const cmd = `node ${agentBoosterCli} apply --language ${language}`;
|
|
325
|
+
// Apply edit using agent-booster CLI (automatically installs from npm if not available)
|
|
326
|
+
const cmd = `npx --yes agent-booster apply --language ${language}`;
|
|
329
327
|
const result = execSync(cmd, {
|
|
330
328
|
encoding: 'utf-8',
|
|
331
329
|
input: JSON.stringify({ code: originalCode, edit: code_edit }),
|
|
332
330
|
maxBuffer: 10 * 1024 * 1024,
|
|
333
|
-
timeout:
|
|
334
|
-
cwd: resolve(__dirname, '../../../agent-booster')
|
|
331
|
+
timeout: 30000 // Allow time for npx to download package on first run
|
|
335
332
|
});
|
|
336
333
|
const parsed = JSON.parse(result);
|
|
337
334
|
if (parsed.success && parsed.confidence >= 0.7) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentic-flow",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "Production-ready AI agent orchestration platform with 66 specialized agents, 213 MCP tools, and autonomous multi-agent swarms. Built by @ruvnet with Claude Agent SDK, neural networks, memory persistence, GitHub integration, and distributed consensus protocols.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|