🌊 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
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
fix(agents): preserve fallback model tier during registry merge
Rudy Celeklia2bb4fd2e5b4
diff --git a/v3/@claude-flow/cli/src/mcp-tools/agent-execute-core.ts b/v3/@claude-flow/cli/src/mcp-tools/agent-execute-core.tsindex b0f3170646..d7b4aa8519 100644--- a/v3/@claude-flow/cli/src/mcp-tools/agent-execute-core.ts+++ b/v3/@claude-flow/cli/src/mcp-tools/agent-execute-core.ts@@ -602,6 +602,7 @@ export async function executeAgentTask(input: AgentExecuteInput): Promise<AgentE`Respond directly and stay focused on the task. If you need information you don't have, state that explicitly.`;const initialModelId = agent.modelId;+ const initialModel = agent.model;agent.status = 'busy';agent.taskCount = (agent.taskCount || 0) + 1;saveAgentStore(store);@@ -770,7 +771,12 @@ export async function executeAgentTask(input: AgentExecuteInput): Promise<AgentEconst current = latest.agents[input.agentId];if (!current || current.createdAt !== agent.createdAt) return;if (current.status === 'busy') current.status = remaining > 0 ? 'busy' : 'idle';- if (agent.modelId !== initialModelId && current.modelId === initialModelId) current.modelId = agent.modelId;+ if (agent.modelId !== initialModelId && current.modelId === initialModelId) {+ // A fallback may also change its tier. Carry that change with the model+ // ID, but preserve any selection the user edited during the request.+ if (agent.model !== initialModel && current.model === initialModel) current.model = agent.model;+ current.modelId = agent.modelId;+ }if (out) current.lastResult = out as unknown as Record<string, unknown>;saveAgentStore(latest);};