require-agent-tool-for-subagents
Require Copilot custom agents that declare subagents to also include the agent tool.
Rule catalog ID: R008
Targeted pattern scopeâ
.github/agents/**/*.agent.md
What this rule reportsâ
- custom agent files that declare
agentswithout also declaring atoolslist - custom agent files that declare
agentsbut omit theagenttool fromtools
Why this rule existsâ
VS Code custom agents can restrict which subagents are available through the agents frontmatter property. The current contract requires those agent files to also include the agent tool in tools; otherwise subagent orchestration is configured incompletely.
â Incorrectâ
---
description: Build features by delegating to specialist agents
tools: [search/codebase, fetch/fetch]
agents: [Researcher, Implementer]
---
Research first, then delegate implementation.
â Correctâ
---
description: Build features by delegating to specialist agents
tools: [agent, search/codebase, fetch/fetch]
agents: [Researcher, Implementer]
---
Research first, then delegate implementation.