Slash Commands
Claude Code Rust has app-owned slash commands and can also show slash commands advertised by the active Agent SDK session. App-owned commands are available from the Rust TUI itself; SDK-advertised commands depend on the current session and what the bridge reports.
Use /docs commands in the app to render the live merged command list into chat. That is the source to use when you want to know exactly which app-owned and SDK-advertised commands are available in the current session.
For step-by-step use of resume, fork, export, copy and Git review, see Work with conversations. This page owns command syntax, completion and current-session controls.
App-Owned Commands
| Command | Usage | Purpose |
|---|---|---|
/btw | /btw <question> | Ask a contextual side question without adding it to the main conversation. |
/cancel | /cancel | Cancel the active assistant turn. |
/compact | /compact | Ask the active session to compact conversation context. |
/config | /config | Open fullscreen settings. |
/memory | /memory | Open the Memory settings pane. |
/permissions | /permissions | Open saved permission defaults, rules and directories. |
/sandbox | /sandbox | Open sandbox settings without toggling sandboxing. |
/hooks | /hooks | Inspect and edit saved hook configuration without executing hooks. |
/copy | /copy | Copy the last completed response, or choose a code block from it. |
/diff | /diff | Review Git changes and full file contents without changing files or the index. |
/docs | /docs <mode|models|shortcuts|commands|agents> | Render command, shortcut, model, mode, or subagent help into chat. |
/agent | /agent <name|reset> | Change the main-thread agent for the active session. Applies on the next turn. |
/effort | /effort <low|medium|high|xhigh|max|reset> | Change thinking effort for the active session. |
/thinking | /thinking <on|off|reset> | Set the thinking preference for the active session or restore its inherited preference. |
/ultracode | /ultracode <on|off|status> | Enable, disable, or inspect Ultracode for the active session. |
/fast | /fast [on|off] | Toggle fast mode or explicitly enable/disable it for the active session. |
/help | /help | Open the fullscreen Help tab. |
/mcp | /mcp | Open MCP status and authorization. |
/plugins | /plugins | Manage installed plugins, marketplaces and session-only local folders. |
/status | /status | Open session and account status. |
/usage | /usage | Open quota and usage information. |
/agents | /agents | Open this session’s subagents with their live status and saved transcripts. |
/login | /login | Run Claude CLI authentication and reconnect the session. |
/logout | /logout | Run Claude CLI logout and clear the active authenticated session. |
/mode | /mode <id> | Switch to a mode advertised by the active session. |
/model | /model <id> | Switch to a model advertised by the active session. |
/new-session | /new-session | Start a fresh bridge session in the current folder. |
/resume | /resume | Search and select a session in the fullscreen picker. |
/rewind | /rewind <user_message_uuid> <both|conversation|code> | Restore conversation, code, or both to a previous user message. |
/reload | /reload | Re-read skills and output styles from disk for the active session. |
/export | /export [path] | Save the complete conversation as a Markdown file. |
Enter completes the selected slash command or argument and submits it when ready. Tab completes without submitting. Exact command names appear ahead of substring matches; arrow keys can select a different match. App commands that still need required arguments stay in the composer; commands with argument choices show those choices, while /btw continues as ordinary question text. An empty suggestion menu allows Enter to submit the typed input for normal validation.
Editing the draft cancels a pending submission. Editing, completion, and submission keys cannot change or send the draft while pasted text is awaiting insertion, including when suggestions are open or keys are remapped. Suggestions refresh after the pasted text is inserted.
Completing the name of a command with no arguments or optional arguments closes the popup and returns focus to the draft. For commands accepting arguments, pressing Tab again requests argument completion explicitly. When the SDK provides only an argument hint, Tab displays that hint without changing or sending the draft; Enter sends the typed command for SDK validation. SDK hints are descriptive text, so their brackets never determine whether the app allows submission. Empty hints and none or [none] do not produce argument help.
Space inserts a literal separator without accepting the highlighted suggestion. It ends command-name completion and continues argument assistance only when the app requires arguments, or when you explicitly requested argument help. There is no special Space dismissal state. Escape dismisses the current menu; argument edits, cursor movement within arguments, and metadata refreshes keep it closed. Tab requests completion again, and editing the command name starts a new completion interaction. A command is recognized only at the start of the draft, allowing leading whitespace; slashes on later lines remain literal prompt or argument text.
The command menu includes the full merged inventory and scrolls as you move through it. SDK commands remain available after /clear changes the session identifier. In SDK sessions that advertise /clear [name], /new and /reset are aliases; the optional name labels the conversation you are leaving. /new-session is the separate app command that starts a fresh bridge session. App command definitions take precedence when the SDK advertises the same name.
Reloading skills and output styles
/reload asks the active session to re-read skills and output styles from disk, so a skill or style you just edited applies without restarting. The input is blocked until the SDK has answered both reloads, output styles first, then a single notice reports how many skills and output styles it found. The two halves are reported separately: one that fails shows its error next to the count for the other, and one that does not answer within 10 seconds is reported as unanswered (it may still apply) instead of as a failure. Before it runs, /reload waits for earlier requests for the same session to finish. If they take longer than 10 seconds from when /reload reached the bridge, whether stalled or just slow, /reload is skipped, nothing is reloaded, and a notice says so; it does not run later when the earlier request finishes. Once started, each half is given 10 seconds, so the input can stay blocked for up to 30 seconds in all; either way it is released. The slash command list picks up new or changed skills through the SDK’s own command-list update. /reload does not reload plugins; use the Plugins tab for that.
SDK-Advertised Commands
The active SDK session can advertise additional slash commands. These are not documented as a fixed table here because they can change with SDK behavior, session capabilities, account state, and future upstream changes.
Use:
/docs commands
to inspect the current session’s full command list. The output includes app-owned commands and SDK-advertised commands, with descriptions when the SDK provides them.
Session Commands
/ultracode on enables session-scoped dynamic-workflow orchestration while retaining the current thinking effort; /ultracode off disables it. Both require an idle turn. /ultracode status can be used during a turn and reports the latest verified SDK snapshot: on, available and off, requested but unavailable, unavailable and off, or unknown. Availability depends on SDK session capabilities and model support. The footer shows Ultracode only when it is verified as effective. Changing effort preserves active Ultracode, and changing models refreshes its state. This command does not persist a preference or control the one-turn ultracode keyword trigger.
If the SDK accepts /ultracode on but reports Ultracode unavailable, the command shows an error explaining that the request was saved but Ultracode remains inactive. The verified requested-but-unavailable state remains visible through /ultracode status, which reports it as information.
/model, /mode, /effort, /thinking, /agent, /fast, and /ultracode change the current session; /config edits saved defaults for new sessions. Choices are checked against SDK capabilities and acknowledged only after the SDK accepts them. Model, effort, fast mode, and Ultracode show reported runtime results, including caps or fallbacks, rather than echoing requests. The starting permission mode comes from SDK initialization, before the first prompt. Saved permission defaults remain inherited by the native session. Both /mode and the mode-cycle shortcut keep the confirmed mode visible while awaiting SDK acceptance; a rejected change leaves it unchanged.
/effort reset uses the current model’s native session default; it does not reload the saved per-model effort. max is session-only. /thinking reset removes the temporary override and restores the inherited thinking preference. Thinking is a preference, and the model may still require or restrict thinking. /agent reset clears the active main-thread agent rather than restoring its saved default.
/fast changes fast mode only for the active session. It does not rewrite the persisted Fast mode setting. Use the settings surface to choose the fast-mode preference applied when future sessions start. If an accepted change cannot be verified, the footer shows FAST:?; retry explicitly with /fast on or /fast off.
For subagent status, saved transcripts and stop requests, see Read and stop subagents.