Summary
The rubber-duck sub-agent exists to give a cross-family second opinion — a Claude session gets a GPT reviewer, and vice versa. Its shipped definition deliberately omits model: so the complementary strategy can select an opposite-family model.
However, the task tool exposes an optional model parameter to the calling model. When the parent agent supplies it, that value wins over everything, including a complementary value the user explicitly configured in /subagents. The result is a Claude session getting a Claude reviewer — silently, with no warning, defeating the agent's entire purpose.
Version: GitHub Copilot CLI 1.0.79 (darwin-arm64)
Why this is a defect rather than expected precedence
"Explicit argument beats config file" is correct precedence when a human supplied the argument. Here the argument is a non-deterministic token sequence emitted by an LLM that has no knowledge that the user configured anything. So model discretion silently outranks explicit user configuration, and nothing surfaces the divergence.
Contributing factors:
-
The design intent is documented in the shipped agent file. definitions/rubber-duck.agent.yaml:
# model: omitted - will be selected dynamically at runtime based on user's current model preference
-
No guidance is given to the calling model. The task tool describes model generically ("Use 'model' parameter to override the default model (20 models available)"). Neither that description nor the rubber-duck agent description mentions that setting model defeats the complementary strategy. The calling model has no signal that this agent is special.
-
No guard and no warning exist. Searching the native runtime.node for complementary-related user-facing strings turns up only the unavailable error ("...uses a complementary model... but none is available..."). There is no warning when an explicit model collapses the agent to the parent's own family.
Reproduction
Observed in a real session (claude-opus-5 parent). From ~/.copilot/session-state/<id>/events.jsonl:
tool.execution_start, toolCallId: toolu_01DXhyxFyFHbcsQmGQseBwmi:
{
"agent_type": "rubber-duck",
"name": "reval-review",
"description": "Review README revalidation changes",
"model": "claude-opus-4.8",
"prompt": "..."
}
Corresponding subagent.completed:
agentName: "rubber-duck" model: "claude-opus-4.8"
A Claude session received a Claude reviewer.
Verified precedence
Calling the native resolver directly (runtime.node → subagentStartPlan), parent model claude-opus-5, available models claude-opus-5 / claude-opus-4.8 / gpt-5.6-sol all at price category high:
/subagents setting |
explicit model arg |
resolved model |
| (none) |
(none) |
gpt-5.6-sol ✅ |
| (none) |
claude-opus-4.8 |
claude-opus-4.8 ❌ |
complementary |
claude-opus-4.8 |
claude-opus-4.8 ❌ |
gpt-5.6-sol |
claude-opus-4.8 |
claude-opus-4.8 ❌ |
gpt-5.6-sol |
(none) |
gpt-5.6-sol ✅ |
Effective precedence:
explicit `model` arg > /subagents setting > agent-declared model > complementary > inherit
Rows 3 and 4 are the problem: a setting the user deliberately chose is overridden by a value the model guessed.
Repro script
// from ~/.copilot/pkg/darwin-arm64/1.0.79/
const h = require("./prebuilds/darwin-arm64/runtime.node");
const models = [
{ id: "claude-opus-5", label: "C5", priceCategory: "high" },
{ id: "claude-opus-4.8", label: "C48", priceCategory: "high" },
{ id: "gpt-5.6-sol", label: "Sol", priceCategory: "high" },
];
const plan = (o) => JSON.parse(h.subagentStartPlan(JSON.stringify({
agentType: "rubber-duck",
availableBuiltinNames: ["rubber-duck"],
customAgentNames: [], isCustom: false,
explicitModel: o.explicitModel,
subagents: o.subagents,
selectedParentModel: "claude-opus-5",
autoMode: false,
defaultToComplementary: true,
complementarySelection: { model: "gpt-5.6-sol" },
availableModels: models,
})));
const S = (m) => ({ agents: { "rubber-duck": { model: m } } });
console.log(plan({})); // gpt-5.6-sol
console.log(plan({ explicitModel: "claude-opus-4.8" })); // claude-opus-4.8
console.log(plan({ explicitModel: "claude-opus-4.8", subagents: S("complementary") })); // claude-opus-4.8
console.log(plan({ explicitModel: "claude-opus-4.8", subagents: S("gpt-5.6-sol") })); // claude-opus-4.8
Expected behaviour
Any one of these would resolve it; they are listed cheapest first.
-
Document the constraint to the calling model. Add to the task tool description, or the rubber-duck agent description: "Do not set model for this agent — it selects a complementary, opposite-family model automatically." Low-risk and likely fixes the majority of occurrences.
-
Rank a configured /subagents value above a model-emitted model argument. Distinguish a human per-invocation override from one the model produced, and let explicit user configuration win. This is the principled fix.
-
Warn on family collapse. When rubber-duck resolves to the same model family as the parent session, surface it in the timeline or emit a warning. Today the only way to discover this is to read events.jsonl by hand.
Impact
The failure is silent and the output is still plausible — a same-family reviewer returns a confident critique that simply shares the author model's blind spots. Users believe they are getting a cross-family second opinion when they are not, and the /subagents setting they configured to guarantee it does not hold.
Current workaround
Instruct the parent agent never to pass model for agent_type: "rubber-duck" (e.g. in ~/.copilot/copilot-instructions.md). This is per-machine and depends on instruction adherence, so it is not a substitute for a product fix.
Related
#4380 reports the same user-visible symptom (rubber-duck running the parent's own model family), but appears to be a different mechanism: there the reporter's /subagents shows complementary — unavailable, disabled with Overridden: No, i.e. no opposite-family model was available at all.
In the case above, complementary was available (gpt-5.6-sol was present at the same price category and is what resolves when no model argument is passed) and was overridden by the explicit argument. So the two may need separate fixes, and I have added this evidence there as well.
Summary
The
rubber-ducksub-agent exists to give a cross-family second opinion — a Claude session gets a GPT reviewer, and vice versa. Its shipped definition deliberately omitsmodel:so thecomplementarystrategy can select an opposite-family model.However, the
tasktool exposes an optionalmodelparameter to the calling model. When the parent agent supplies it, that value wins over everything, including acomplementaryvalue the user explicitly configured in/subagents. The result is a Claude session getting a Claude reviewer — silently, with no warning, defeating the agent's entire purpose.Version: GitHub Copilot CLI 1.0.79 (darwin-arm64)
Why this is a defect rather than expected precedence
"Explicit argument beats config file" is correct precedence when a human supplied the argument. Here the argument is a non-deterministic token sequence emitted by an LLM that has no knowledge that the user configured anything. So model discretion silently outranks explicit user configuration, and nothing surfaces the divergence.
Contributing factors:
The design intent is documented in the shipped agent file.
definitions/rubber-duck.agent.yaml:# model: omitted - will be selected dynamically at runtime based on user's current model preferenceNo guidance is given to the calling model. The
tasktool describesmodelgenerically ("Use 'model' parameter to override the default model (20 models available)"). Neither that description nor therubber-duckagent description mentions that settingmodeldefeats the complementary strategy. The calling model has no signal that this agent is special.No guard and no warning exist. Searching the native
runtime.nodefor complementary-related user-facing strings turns up only the unavailable error ("...uses a complementary model... but none is available..."). There is no warning when an explicit model collapses the agent to the parent's own family.Reproduction
Observed in a real session (
claude-opus-5parent). From~/.copilot/session-state/<id>/events.jsonl:tool.execution_start,toolCallId: toolu_01DXhyxFyFHbcsQmGQseBwmi:{ "agent_type": "rubber-duck", "name": "reval-review", "description": "Review README revalidation changes", "model": "claude-opus-4.8", "prompt": "..." }Corresponding
subagent.completed:A Claude session received a Claude reviewer.
Verified precedence
Calling the native resolver directly (
runtime.node→subagentStartPlan), parent modelclaude-opus-5, available modelsclaude-opus-5/claude-opus-4.8/gpt-5.6-solall at price categoryhigh:/subagentssettingmodelarggpt-5.6-sol✅claude-opus-4.8claude-opus-4.8❌complementaryclaude-opus-4.8claude-opus-4.8❌gpt-5.6-solclaude-opus-4.8claude-opus-4.8❌gpt-5.6-solgpt-5.6-sol✅Effective precedence:
Rows 3 and 4 are the problem: a setting the user deliberately chose is overridden by a value the model guessed.
Repro script
Expected behaviour
Any one of these would resolve it; they are listed cheapest first.
Document the constraint to the calling model. Add to the
tasktool description, or therubber-duckagent description: "Do not setmodelfor this agent — it selects a complementary, opposite-family model automatically." Low-risk and likely fixes the majority of occurrences.Rank a configured
/subagentsvalue above a model-emittedmodelargument. Distinguish a human per-invocation override from one the model produced, and let explicit user configuration win. This is the principled fix.Warn on family collapse. When
rubber-duckresolves to the same model family as the parent session, surface it in the timeline or emit a warning. Today the only way to discover this is to readevents.jsonlby hand.Impact
The failure is silent and the output is still plausible — a same-family reviewer returns a confident critique that simply shares the author model's blind spots. Users believe they are getting a cross-family second opinion when they are not, and the
/subagentssetting they configured to guarantee it does not hold.Current workaround
Instruct the parent agent never to pass
modelforagent_type: "rubber-duck"(e.g. in~/.copilot/copilot-instructions.md). This is per-machine and depends on instruction adherence, so it is not a substitute for a product fix.Related
#4380 reports the same user-visible symptom (rubber-duck running the parent's own model family), but appears to be a different mechanism: there the reporter's
/subagentsshowscomplementary — unavailable, disabledwithOverridden: No, i.e. no opposite-family model was available at all.In the case above, complementary was available (
gpt-5.6-solwas present at the same price category and is what resolves when nomodelargument is passed) and was overridden by the explicit argument. So the two may need separate fixes, and I have added this evidence there as well.