-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Plugin agents ignore model: frontmatter #2492
Copy link
Copy link
Closed
Labels
area:agentsSub-agents, fleet, autopilot, plan mode, background agents, and custom agentsSub-agents, fleet, autopilot, plan mode, background agents, and custom agentsarea:modelsModel selection, availability, switching, rate limits, and model-specific behaviorModel selection, availability, switching, rate limits, and model-specific behaviorarea:pluginsPlugin system, marketplace, hooks, skills, extensions, and custom agentsPlugin system, marketplace, hooks, skills, extensions, and custom agents
Metadata
Metadata
Assignees
Labels
area:agentsSub-agents, fleet, autopilot, plan mode, background agents, and custom agentsSub-agents, fleet, autopilot, plan mode, background agents, and custom agentsarea:modelsModel selection, availability, switching, rate limits, and model-specific behaviorModel selection, availability, switching, rate limits, and model-specific behaviorarea:pluginsPlugin system, marketplace, hooks, skills, extensions, and custom agentsPlugin system, marketplace, hooks, skills, extensions, and custom agents
Type
Fields
Give feedbackNo fields configured for Bug.
Describe the bug
Agents loaded via
copilot plugin installignore themodel:field in YAML frontmatter. The CLI logsdefinitionModel="(none)"and falls back to the session's default model.Repo-level agents (
.github/agents/) read the same field correctly.Affected version
GitHub Copilot CLI 1.0.14 (and GitHub Copilot CLI 1.0.11)
Steps to reproduce the behavior
1. Create a minimal plugin
plugin.json{ "name": "my-plugin", "version": "1.0.0", "agents": "agents/" }agents/orchestrator.agent.mdagents/fast-helper.agent.md2. Install and run
copilot plugin install /path/to/my-plugin copilot --log-level=all --model gpt-5.4 \ --agent my-plugin/orchestrator \ -p "Delegate to fast-helper: what is 2+2?"3. Check the log
In
~/.copilot/logs/process-*.log:The usage summary confirms only one model ran:
Expected behavior
The plugin agent's
model: claude-haiku-4.5should appear asdefinitionModel="claude-haiku-4.5"and the CLI should use that model, the same way repo-level agents work.Control: repo-level agents work
Place identical agent files in
.github/agents/instead of the plugin. Same command, same CLI version. The log now reads:Both agents use their declared models.
Additional context