Skip to content

Enable better options for subagent prompting #3574

Closed

Description

@olson-dan

Describe the feature or problem you'd like to solve

I want all codebase exploration to load a skill before doing any work. I could do this by injecting any sort of mandatory prompt into the explore agent's context, but my options are limited here. From empirical testing, subagents appear to ignore copilot-instructions.md and asking the main agent to pass along a prompt is unreliable. Another option is to create a custom agent and ask the main agent to use it instead of explore for exploration tasks, but this also does not work because the task tool can only spawn builtin agents.

Proposed solution

In order of preference:

  • Allow me to specify custom instructions for built-in subagents, especially explore. (Note: the documentation implies that instructions apply to all agent contexts, but this does not appear to be true from empirical tests.)
  • Allow the main agent to spawn a custom subagent with the task tool. Currently if it tries to do this the task tool fails.

Example prompts or workflows

N/A

Additional context

No response

Activity

  1. examon commented on May 30, 2026

    @examon

    This is now supported. You can define custom agents as *.agent.md files (in .github/agents for a project or your user config directory) that the main agent can spawn through the task tool, so you can author a dedicated exploration agent with your own required instructions and use it in place of the built-in explore agent. If you believe this isn't resolved, please comment with details and we'll take another look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions