require-valid-agent-invocation-controls
Require Copilot custom-agent invocation-control flags to use documented boolean values when present.
Rule catalog ID: R020
Targeted pattern scopeâ
.github/agents/**/*.agent.md
What this rule reportsâ
- invalid
user-invocablevalues - invalid
disable-model-invocationvalues - empty invocation-control fields when those fields are present
Why this rule existsâ
VS Code documents user-invocable and disable-model-invocation as boolean control flags for how a custom agent appears in the agent picker and whether it can be invoked as a subagent. Restricting these fields to boolean values keeps custom-agent invocation behavior explicit and predictable.
â Incorrectâ
---
description: Internal helper agent
user-invocable: sometimes
---
Use this agent for internal helper work.
â Correctâ
---
description: Internal helper agent
user-invocable: false
disable-model-invocation: true
---
Use this agent for internal helper work.