Background / Problem
Currently, when generating a GitHub Copilot subagent, agent/runSubagent is always added automatically, regardless of user intent.
|
const REQUIRED_TOOL = "agent/runSubagent"; |
|
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.tools is not specified or empty → tools field is empty or omitted
- Users explicitly add
agent/runSubagent when orchestration between subagents is required
Would you please consider this? Thank you very much.
Background / Problem
Currently, when generating a GitHub Copilot subagent, agent/runSubagent is always added automatically, regardless of user intent.
rulesync/src/features/subagents/copilot-subagent.ts
Line 19 in b480897
rulesync/src/features/subagents/copilot-subagent.ts
Lines 42 to 45 in b480897
Even if
copilot.toolsis empty or not specified, the generated file always contains["agent/runSubagent"].Proposal
Make
agent/runSubagentopt-in — users should explicitly add it only when needed.Option A: No default, explicit opt-in
Option B: Opt-out via flag
Expected Behavior
copilot.toolsis not specified or empty →toolsfield is empty or omittedagent/runSubagentwhen orchestration between subagents is requiredWould you please consider this? Thank you very much.