Skip to content

Make agent/runSubagent opt-in instead of always required #1181

@hayashidayasuhiro

Description

@hayashidayasuhiro

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions