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

rUv4476c5b7d51f
diff --git a/v3/@claude-flow/cli/src/mcp-tools/agent-tools.ts b/v3/@claude-flow/cli/src/mcp-tools/agent-tools.ts
index 497c327d40..793d69ed97 100644
--- a/v3/@claude-flow/cli/src/mcp-tools/agent-tools.ts
+++ b/v3/@claude-flow/cli/src/mcp-tools/agent-tools.ts
@@ -209,8 +209,8 @@ export const agentTools: MCPTool[] = [
// Get task from either top-level or config (CLI passes it in config.task)
const task = (input.task as string) || (config.task as string) || undefined;
- // Determine model using routing logic
- const { model, routedBy } = await determineAgentModel(
+ // Determine model using ADR-026 3-tier routing logic
+ const routingResult = await determineAgentModel(
agentType,
config,
task
@@ -225,22 +225,35 @@ export const agentTools: MCPTool[] = [
config,
createdAt: new Date().toISOString(),
domain: input.domain as string,
- model,
- modelRoutedBy: routedBy,
+ model: routingResult.model,
+ modelRoutedBy: routingResult.routedBy,
};
store.agents[agentId] = agent;
saveAgentStore(store);
- return {
+ // Include Agent Booster routing info if applicable
+ const response: Record<string, unknown> = {
success: true,
agentId,
agentType: agent.agentType,
model: agent.model,
- modelRoutedBy: routedBy,
+ modelRoutedBy: routingResult.routedBy,
status: 'spawned',
createdAt: agent.createdAt,
};
+
+ // Add Agent Booster info if task can skip LLM
+ if (routingResult.canSkipLLM) {
+ response.canSkipLLM = true;
+ response.agentBoosterIntent = routingResult.agentBoosterIntent;
+ response.tier = routingResult.tier;
+ response.note = `Agent Booster can handle "${routingResult.agentBoosterIntent}" - use agent_booster_edit_file MCP tool`;
+ } else if (routingResult.tier) {
+ response.tier = routingResult.tier;
+ }
+
+ return response;
},
},
{