You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enable better options for subagent prompting #3574
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.
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.
Activity
examon commentedon May 30, 2026
This is now supported. You can define custom agents as
*.agent.mdfiles (in.github/agentsfor 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-inexploreagent. If you believe this isn't resolved, please comment with details and we'll take another look.