message field of a stream request. The agent runtime sees the leading /, parses the command, and dispatches it instead of treating the text as a prompt.
How they work
Every slash command is a string you pass tosdk.agent.stream():
/plan run or /goal pause).
What you get back
Some commands return action events in the stream — structured events liketask.completed or action that report state changes as they happen. Others return a plain inline text response, similar to a normal chat reply. The table below notes which is which.
All eight commands reuse the same threadId you already use for conversations, so command state and message history stay connected.
All eight commands
Next steps
- Command Reference — syntax, arguments, and subcommands for every command
- Plan — the full plan lifecycle with code examples
- Goal — durable goals that span multiple messages
- Mode, Sandbox, and Proof — execution controls and history listings
- Stream Protocol — every event type the stream can emit