Custom Agent YAML Frontmatter Should Support Reasoning Effort
Describe the feature or problem you'd like to solve
Custom agents (.agent.md files) support a model frontmatter field to pin a specific model, but there is no way to set reasoning effort per agent. Today, reasoning effort is only configurable globally - CLI flag: --effort=LEVEL / --reasoning-effort=LEVEL or User config (~/.copilot/config.json): "effortLevel": "medium" This means all custom agents inherit the same global effort level, even though different agents have radically different compute profiles. A fast explore-style agent should run at low effort to stay snappy, while a rubber-duck critique agent benefits from high or xhigh effort for deeper reasoning. Today you can't express that—you have to pick one global setting and compromise everywhere.
Proposed solution
Two design options, each with tradeoffs.
Option A: Dedicated effort frontmatter field
Add a new effort (or reasoning-effort) field to the custom agent YAML frontmatter, parallel to model.
---
name: deep-reviewer
description: Thorough code review agent that catches subtle bugs
model: claude-sonnet-4.5
effort: high
---
You are a meticulous code reviewer...
---
name: quick-lookup
description: Fast codebase explorer for simple questions
model: claude-haiku-4.5
effort: low
---
You are a fast, lightweight exploration agent...
Values: low, medium (default, matches global behavior), high, xhigh
Precedence: Agent frontmatter effort overrides the global effortLevel config and --effort CLI flag for that specific agent invocation. When unset, the agent inherits the session-level effort (current behavior, no breaking change).
Pros:
- Clean separation of concerns—model choice and reasoning intensity are independent knobs
- Consistent with the existing
effortLevelconfig key and--effortCLI flag naming - Easy to understand: one field, one purpose
- Trivially extensible if new effort levels are added later
Cons:
- Adds another frontmatter field to the schema
- Two fields (
model+effort) to configure what is conceptually one "compute profile"
Option B: Model attribute syntax (model: <model>@<effort>)
Extend the existing model field to accept an optional @effort suffix, encoding the reasoning effort as a model attribute.
---
name: deep-reviewer
description: Thorough code review agent that catches subtle bugs
model: claude-sonnet-4.5@high
---
You are a meticulous code reviewer...
---
name: quick-lookup
description: Fast codebase explorer for simple questions
model: claude-haiku-4.5@low
---
You are a fast, lightweight exploration agent...
Syntax: model: <model-id>[@<effort>] — the @effort suffix is optional. model: claude-sonnet-4.5 continues to work exactly as today.
Pros:
- Zero new fields—reuses the existing
modelfield - Compact single-line declaration for the common "I want this model at this reasoning level" use case
- Familiar
@attribute pattern (similar to npm'spackage@version, Docker'simage:tag, or email'suser@domain) - Could generalize to other model attributes in the future (e.g.,
model: gpt-5.4@high,streaming)
Cons:
- Overloads the
modelfield with two responsibilities - Parsing complexity: need to split on
@, handle edge cases (model names containing@?) - Less discoverable—users may not realize
@highis valid unless they read the docs - Harder to set effort without pinning a model (would need something like
model: auto@highormodel: @high)
Example prompts or workflows
1. Fast triage agent with low reasoning effort
---
name: triage
description: Quick issue triage - categorize and label issues
model: claude-haiku-4.5
effort: low
---
Categorize the issue into: bug, feature, docs, or question. Add appropriate labels.
Workflow: copilot --agent=triage -p "Triage issue #42" → sub-second categorization at minimal compute cost.
2. Deep architecture review at high effort
---
name: arch-review
description: Deep architecture review with thorough reasoning
model: claude-sonnet-4.5
effort: xhigh
---
Review the proposed architecture change. Consider scalability, security, maintainability...
Workflow: After planning a major refactor, invoke arch-review for a thorough critique that uses extended thinking to catch subtle issues.
Additional context
- The global
--effortflag andeffortLevelconfig already prove that per-invocation effort control is valuable. This request extends that to per-agent granularity. - The
modelfield precedence rules (documented here) already handle inheritance and override semantics. Theeffortfield should follow the same pattern: agent frontmatter > CLI flag > user config > default (medium). - This is especially impactful for teams running mixed agent fleets where cost optimization matters—e.g., 10 fast
exploreagents atlow+ 1deep-reviewagent atxhighcan save significant compute while maintaining quality where it counts. - Models that don't support extended thinking (or a particular effort level) should gracefully ignore the field or clamp to the nearest supported level—consistent with how
--effortbehaves today.
+1 on this. Filing a parallel request on the SDK side so the CustomAgentConfig type gains the matching field, since even once the YAML frontmatter accepts reasoningEffort, the CLI loader has nowhere to put it when calling into copilot-sdk today.
Worth noting the Claude Agent SDK already ships exactly this capability: AgentDefinition.effort on subagents, with values low | medium | high | xhigh | max — same vocabulary copilot-sdk already uses at session level. Precedent: https://code.claude.com/docs/en/agent-sdk/subagents
Also filed sibling requests for the same architectural axis:
- github/copilot-cli#2939 — per-subagent model override
- github/copilot-sdk#1131 — per-subagent reasoning effort in CustomAgentConfig
+1 absolute must have feature
Any update on this? 👀
+1 would love to see this.
One comment though, I believe option B would be best, as option A does not support defining reasoning parameter per model, in agents where you have more than one model defined (having fallbacks).
Especially when you have 2 models where a reasoning level name might not match for both (GPT vs Claude models), I think it's best if you can specify reasoning level naming for each model individually.
Has there been any movement or discussion about implementing this yet?
This feature was released in Copilot CLI v1.0.66. The release notes include:
Let custom agents set reasoning effort in their definitions
I could not find any documentation on the feature, but was able to utilize it using the following syntax:
---
name: example-agent
model: claude-sonnet-4.6
reasoning-effort: high
---
I will leave this issue open until closed by a maintainer or when documentation is updated.
+1 on this.
I everyone,
What about Context Size ?
This appears to be resolved as of GitHub Copilot CLI v1.0.85. Please update to that release or a newer stable version. We're closing this as completed. If it still happens, please comment with your version and reproduction steps.