Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

Checkpoint: File edits

rUv4d9cc47ef91e
diff --git a/v3/@claude-flow/cli/package.json b/v3/@claude-flow/cli/package.json
index 39f8326016..3cc2f9a38c 100644
--- a/v3/@claude-flow/cli/package.json
+++ b/v3/@claude-flow/cli/package.json
@@ -1,6 +1,6 @@
{
"name": "@claude-flow/cli",
- "version": "3.0.0-alpha.110",
+ "version": "3.0.0-alpha.111",
"type": "module",
"description": "CLI module - command parsing, prompts, output formatting",
"main": "dist/src/index.js",
diff --git a/v3/@claude-flow/cli/src/init/claudemd-generator.ts b/v3/@claude-flow/cli/src/init/claudemd-generator.ts
index 40d0c3d40a..7eabf626f8 100644
--- a/v3/@claude-flow/cli/src/init/claudemd-generator.ts
+++ b/v3/@claude-flow/cli/src/init/claudemd-generator.ts
@@ -32,6 +32,39 @@ export function generateClaudeMd(options: InitOptions): string {
**CLI coordinates, Task tool agents do the actual work!**
+### 🤖 INTELLIGENT 3-TIER MODEL ROUTING (ADR-026)
+
+**The routing system has 3 tiers for optimal cost/performance:**
+
+| Tier | Handler | Latency | Cost | Use Cases |
+|------|---------|---------|------|-----------|
+| **1** | Agent Booster | <1ms | $0 | Simple transforms (var→const, add-types, remove-console) |
+| **2** | Haiku | ~500ms | $0.0002 | Simple tasks, bug fixes, low complexity |
+| **3** | Sonnet/Opus | 2-5s | $0.003-$0.015 | Architecture, security, complex reasoning |
+
+**Before spawning agents, get routing recommendation:**
+\`\`\`bash
+npx @claude-flow/cli@latest hooks pre-task --description "[task description]"
+\`\`\`
+
+**When you see these recommendations:**
+
+1. \`[AGENT_BOOSTER_AVAILABLE]\` → Skip LLM entirely, use Edit tool directly
+ - Intent types: \`var-to-const\`, \`add-types\`, \`add-error-handling\`, \`async-await\`, \`add-logging\`, \`remove-console\`
+
+2. \`[TASK_MODEL_RECOMMENDATION] Use model="X"\` → Use that model in Task tool:
+\`\`\`javascript
+Task({
+ prompt: "...",
+ subagent_type: "coder",
+ model: "haiku" // ← USE THE RECOMMENDED MODEL (haiku/sonnet/opus)
+})
+\`\`\`
+
+**Benefits:** 75% cost reduction, 352x faster for Tier 1 tasks
+
+---
+
### 🛡️ Anti-Drift Config (PREFERRED)
**Use this to prevent agent drift:**
diff --git a/v3/package-lock.json b/v3/package-lock.json
index 174f3c682b..fb703afa94 100644
--- a/v3/package-lock.json
+++ b/v3/package-lock.json
@@ -925,7 +925,7 @@
}
},
"@claude-flow/cli": {
- "version": "3.0.0-alpha.110",
+ "version": "3.0.0-alpha.111",
"dependencies": {
"@claude-flow/aidefence": "^3.0.2",
"@claude-flow/embeddings": "^3.0.0-alpha.12",