You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Missed that. Though even with the file name corrected it isn't switching models on changing agents
+1. I placed the different agent spec files in my user profile folder (C:\Users\alias\.copilot\agents) and while the CLI sees them and takes on the defined persona it fails to use the defined model and I have tried numerous ones and formats for the text.
Exact same experience, VS Code respects the model choice but the CLI does not.
I have to explicitly provide the model via the command line args in order for it to be used
This is kind of a major problem right? I know Copilot CLI is still catching up, but without the ability to switch models an agentic workflow may cost orders of magnitude more than it needs to.
This was taken care of in v0.0.415. Custom agents now support the model field in frontmatter to specify which model to use, and unknown frontmatter fields no longer block agent loading — they now warn instead of error. If you believe this isn’t resolved, please feel free to reopen this issue.
Activity
jsburckhardt commentedon Jan 15, 2026
file name should be
.github/agents/tester.agent.md- example -> https://docs.github.com/en/copilot/tutorials/customization-library/custom-agents/your-first-custom-agent#test-it-outArkoprabho commentedon Jan 15, 2026
Missed that.
Though even with the file name corrected it isn't switching models on changing agents
MattVevang commentedon Jan 15, 2026
+1. I placed the different agent spec files in my user profile folder (C:\Users\alias\.copilot\agents) and while the CLI sees them and takes on the defined persona it fails to use the defined model and I have tried numerous ones and formats for the text.
devdnn commentedon Jan 21, 2026
Same with me, Model from agents file are only respected in VSCode Copilot Chat.
Copilot CLI uses what ever model is selected in the cli or the default CLI.
SteveOfficerSeccl commentedon Jan 23, 2026
I have also run into this issue.
Exact same experience, VS Code respects the model choice but the CLI does not.
I have to explicitly provide the model via the command line args in order for it to be used
Ogekuri commentedon Feb 1, 2026
Confirmed on 0.0.400:
/.github/agents/req.fix.agent.md: agent uses unsupported fields: modelbagleytravis68 commentedon Mar 2, 2026
This is kind of a major problem right? I know Copilot CLI is still catching up, but without the ability to switch models an agentic workflow may cost orders of magnitude more than it needs to.
examon commentedon Apr 7, 2026
This was taken care of in v0.0.415. Custom agents now support the
modelfield in frontmatter to specify which model to use, and unknown frontmatter fields no longer block agent loading — they now warn instead of error. If you believe this isn’t resolved, please feel free to reopen this issue.