Files
coder/coderd/x/chatd
Hugo Dutka 5f5c30eafb fix(coderd/x/chatd): prefer native subagents over ACP harnesses (#32604)
Agents sometimes call `acp_spawn_agent` when a native subagent
(`spawn_agent`) could do the job, even when the requested model is
available natively.

This adds one line to the `<acp-subagents>` system prompt block: "Prefer
using non-ACP subagents unless the user asks for an ACP harness or if
the requested model is only available through ACP."

Tests reference `acpSubagentPromptBlock` by constant rather than by
text, so no test changes are needed.
2026-11-23 12:11:44 +00:00
..
…