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
Add support for commands that switch the active agent via a new 'agent:' field
in the commands section of agent.yaml. Users can now use /plan to switch to a
planner sub-agent, /review to switch to a reviewer, etc. Trailing arguments
after the command are forwarded to the target agent as the first prompt.
Copy file name to clipboardExpand all lines: agent-schema.json
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -595,7 +595,7 @@
595
595
},
596
596
"CommandConfig": {
597
597
"type": "object",
598
-
"description": "Advanced command configuration with description and instruction",
598
+
"description": "Advanced command configuration. Set 'instruction' to send a prompt to the current agent. Set 'agent' to switch the active agent to a sub-agent (e.g. /plan -> the 'planner' sub-agent). Both fields can be combined: the agent is switched first, then the instruction is sent to the new agent.",
599
599
"properties": {
600
600
"description": {
601
601
"type": "string",
@@ -604,6 +604,10 @@
604
604
"instruction": {
605
605
"type": "string",
606
606
"description": "The prompt sent to the agent. Supports bang commands (!`command`) and positional arguments ($1, $2, etc.)"
607
+
},
608
+
"agent": {
609
+
"type": "string",
610
+
"description": "Name of a sub-agent to switch to when this command is invoked. The agent must be reachable from the current agent's sub-agent graph. When set without 'instruction', any text typed after the slash command is forwarded as a prompt to the target agent."
0 commit comments