diff --git a/src/main/connector-matching.ts b/src/main/connector-matching.ts index 2e8d2e65..016519a7 100644 --- a/src/main/connector-matching.ts +++ b/src/main/connector-matching.ts @@ -140,13 +140,10 @@ export function matchConnector(input: ConnectorMatchInput): ConnectorMatchResult // recommended should always be set if readySet.size > 0, but guard if (recommended) { - const onlyOneReady = readySet.size === 1; return { recommendedConnectorId: recommended, fallbackConnectorId: fallback, - reason: onlyOneReady - ? `Only available connector: ${recommended}. Assign to all agents.` - : `Best match for ${taskType} tasks: ${CONNECTOR_STRENGTHS[recommended]}`, + reason: `Selected ${recommended} for ${taskType} tasks.`, }; } } diff --git a/src/main/prompt-builder.ts b/src/main/prompt-builder.ts index 6d36f968..eea1b880 100644 --- a/src/main/prompt-builder.ts +++ b/src/main/prompt-builder.ts @@ -928,31 +928,11 @@ IMPORTANT: Wait for the Board to approve before starting business operations. return `- **${c.label}** (\`${c.id}\`): ${strengths} [STATUS: ${c.status}]`; }); - const readyConnectors = ctx.allConnectors.filter((c) => c.status === "ready"); - const onlyOneConnector = readyConnectors.length === 1; - - if (onlyOneConnector) { - const sole = readyConnectors[0]; - sections.push(`# Available Connectors for Hiring -You have ONE available connector: + sections.push(`# Available Connectors ${connectorLines.join("\n")} -Since only **${sole.label}** (\`${sole.id}\`) is ready, assign it to ALL agents you create. Do not worry about matching connectors to roles — use this connector for every agent. +When creating agents, automatically assign the best ready connector for their role. Use connectors marked "ready" only. `); - } else { - sections.push(`# Available Connectors for Hiring -When hiring agents, assign the best connector for their role: -${connectorLines.join("\n")} - -Connector Assignment Guide: -- Engineering/code roles: prefer claude_local or codex_local -- Research/analysis roles: prefer gemini_local (falls back to claude_local) -- Content/writing roles: prefer claude_local -- Management/coordination: prefer claude_local -- If preferred connector is not listed as "ready", use the next best available -- NEVER assign a connector with status "not_installed" or "error" -`); - } } } else if (hasPendingOrgApproval) { sections.push(`# Operating Instructions (CEO — Awaiting Org Approval)