no-deprecated-agent-infer
Disallow deprecated infer frontmatter in Copilot custom agent files.
Rule catalog ID: R007
Targeted pattern scopeâ
.github/agents/**/*.agent.md
What this rule reportsâ
- custom agent files that still declare deprecated
inferfrontmatter
Why this rule existsâ
VS Code custom agents now use user-invocable and disable-model-invocation for picker visibility and subagent invocation control. Keeping deprecated infer metadata around makes agent behavior less explicit and drifts away from the current contract.
â Incorrectâ
---
description: Hidden implementation helper
infer: false
---
Implement changes based on the approved plan.
â Correctâ
---
description: Hidden implementation helper
user-invocable: false
disable-model-invocation: false
---
Implement changes based on the approved plan.