-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Labels
Description
Background / Problem
Currently, when generating a GitHub Copilot subagent, agent/runSubagent is always added automatically, regardless of user intent.
| const REQUIRED_TOOL = "agent/runSubagent"; |
rulesync/src/features/subagents/copilot-subagent.ts
Lines 42 to 45 in b480897
| const ensureRequiredTool = (tools: string[]): string[] => { | |
| const mergedTools = new Set([REQUIRED_TOOL, ...tools]); | |
| return Array.from(mergedTools); | |
| }; |
Even if copilot.tools is empty or not specified, the generated file always contains ["agent/runSubagent"].
Proposal
Make agent/runSubagent opt-in — users should explicitly add it only when needed.
Option A: No default, explicit opt-in
copilot:
tools:
- agent/runSubagent # add explicitly only when needed
- web/fetch
Option B: Opt-out via flag
copilot:
runSubagent: false # default true, set false to disable
tools:
- web/fetch
Expected Behavior
- If
copilot.toolsis not specified or empty →toolsfield is empty or omitted - Users explicitly add
agent/runSubagentwhen orchestration between subagents is required
Would you please consider this? Thank you very much.
Reactions are currently unavailable