[deleted]
[deleted]
This is partially supported today. Custom subagents defined via YAML can set a per-agent model: field in their frontmatter (accepting both aliases and full model IDs), and it falls back to the session model when omitted. The SDK CustomAgentConfig type doesn't yet expose model and per-subagent BYOK provider overrides aren't wired up, so the SDK-side parity gap is real. If you'd like to track those remaining pieces separately, please comment and we can take another look.
Reopening request — the closing comment states that custom subagents' YAML model: frontmatter is "partially supported," but on Copilot CLI v1.0.40 (2026-05-01) the task / agent dispatch path does not honor it for inference, nor does it honor an explicit model: argument passed on the task invocation.
Reproduction (v1.0.40, Windows 11, parent session model gpt-5.5)
Custom agent on disk:
---
name: micropython-analyst
model: claude-opus-4.7-xhigh
---
Direct test:
Use the task tool to launch micropython-analyst as a sub-agent with
model="claude-opus-4.7-xhigh" and ask it to summarize the project structure.
Observed runtime badge: Micropython-analyst(gpt-5.5) — the parent session's model. Neither the deployed frontmatter nor the explicit model: argument was honored. The v1.0.40 release note "Subagents correctly evaluate tool search support for their own model" confirms the sub-agent has its own model record for capability evaluation, but the inference call still routes to the parent's model.
Full reproduction including a second skill-driven case at: https://github.com/spencerbk/copilot-config/blob/dev/docs/incidents/2026-05-02-copilot-cli-subagent-model-ignored.md. Workaround commit: dc9af0c. Related: #1354 (open), github/copilot-sdk#1131 (open — same architectural gap on the effort side).
Could you confirm whether (a) the task dispatch path is in scope for the "partially supported" claim, and (b) whether per-launch model: arguments on the task tool are intended to be honored? If neither, the public docs at /copilot/how-tos/use-copilot-agents/cloud-agent/create-custom-agents would benefit from explicitly noting that CLI does not yet honor model: for task dispatch (currently it lists VS Code/JetBrains/Eclipse/Xcode as the supported scope, omitting CLI without further clarification).