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
Copy file name to clipboardExpand all lines: .github/agents/copilot-customization-builder.agent.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,6 +85,31 @@ Frontmatter guidelines:
85
85
- Avoid destructive terminal commands; if terminal is required, explain why and keep commands narrowly scoped.
86
86
- Keep tool sets under control; there are practical limits on how many tools can be enabled at once.
87
87
88
+
## Subagents and handoffs (important)
89
+
90
+
### Context-isolated subagents (VS Code)
91
+
92
+
VS Code supports **context-isolated subagents** via the `runSubagent` tool. To use subagents reliably:
93
+
94
+
- Ensure `runSubagent` is enabled (either via the tools picker, or via `tools: [...]` in the agent/prompt frontmatter).
95
+
- If you want a subagent to run as a *specific custom agent*, enable the experimental setting `chat.customAgentInSubagent.enabled`.
96
+
- A custom agent can be blocked from subagent usage by setting `infer: false` in its `*.agent.md` frontmatter.
97
+
98
+
### Handoffs (VS Code)
99
+
100
+
VS Code custom agents support a `handoffs:` frontmatter property to guide users through a multi-step workflow (for example: Plan → Implement → Review).
101
+
102
+
### Cross-environment note (VS Code vs GitHub Copilot)
103
+
104
+
Some frontmatter fields have different behavior depending on where the agent runs.
105
+
106
+
-`infer`:
107
+
- In **VS Code**, `infer` controls whether the agent can be used as a subagent (defaults to `true`).
108
+
- In **GitHub Copilot coding agent**, `infer: false` disables automatic agent selection (the agent must be chosen manually).
109
+
-`handoffs`:
110
+
- Supported in **VS Code**.
111
+
- Currently **ignored** by **GitHub Copilot coding agent** for compatibility.
112
+
88
113
## Reference docs
89
114
90
115
- VS Code Copilot overview: https://code.visualstudio.com/docs/copilot/overview
0 commit comments