From 0c3596d044afa6efc8f58d5a05d84847febea3c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20Bene=C5=A1?= Date: Mon, 9 Nov 2026 17:08:49 +0000 Subject: [PATCH] The model roster in the prompt: a subagent runs on another model only when the person names it (spec 3.3.0) Co-Authored-By: Claude Opus 5.5 --- src/prompt/assemble.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prompt/assemble.ts b/src/prompt/assemble.ts index 13cd630..1180bad 100644 --- a/src/prompt/assemble.ts +++ b/src/prompt/assemble.ts @@ -345,7 +345,7 @@ export function assembleSystem(ctx: PromptContext): string { ].join("\n"), ) if (ctx.roster && !ctx.subagent) - sections.push(`Other models configured here — the task tool can run a subagent on one (its model argument); the user can switch to one, and so can you through the settings tool when they ask:\n\n${ctx.roster}\n`) + sections.push(`Other models configured here — a subagent runs on one (task's or team_add's model argument) only when the user names it; the user can switch to one, and so can you through the settings tool when they ask:\n\n${ctx.roster}\n`) if (ctx.git) sections.push(`The git repository as it was when this session started — a snapshot, not kept up to date; run git status for how it is now:\n\n${ctx.git}\n`) if (ctx.tasks && !ctx.subagent) sections.push(`Open items on the project's task board (the tasks tool changes it):\n\n${ctx.tasks}\n`)