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

rUv61da893f49ad
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 15b42e3674..f508c07cc4 100644
--- a/v3/@claude-flow/cli/src/mcp-tools/agent-tools.ts
+++ b/v3/@claude-flow/cli/src/mcp-tools/agent-tools.ts
@@ -2,6 +2,7 @@
* Agent MCP Tools for CLI
*
* Tool definitions for agent lifecycle management with file persistence.
+ * Includes model routing integration for intelligent model selection.
*/
import { existsSync, readFileSync, writeFileSync, mkdirSync } from 'node:fs';
@@ -13,6 +14,9 @@ const STORAGE_DIR = '.claude-flow';
const AGENT_DIR = 'agents';
const AGENT_FILE = 'store.json';
+// Model types matching Claude Agent SDK
+type ClaudeModel = 'haiku' | 'sonnet' | 'opus' | 'inherit';
+
interface AgentRecord {
agentId: string;
agentType: string;
@@ -22,6 +26,8 @@ interface AgentRecord {
config: Record<string, unknown>;
createdAt: string;
domain?: string;
+ model?: ClaudeModel; // Model assigned to this agent
+ modelRoutedBy?: 'explicit' | 'router' | 'default'; // How model was determined
}
interface AgentStore {