Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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.

App-Owned Commands

CommandUsagePurpose
/1m-context`/1m-context <enabledisable
/cancel/cancelCancel the active assistant turn.
/compact/compactAsk the active session to compact conversation context.
/config/configOpen fullscreen settings.
/docs`/docs <modemodels
/help/helpOpen the fullscreen Help tab.
/mcp/mcpOpen MCP status and authorization.
/plugins/pluginsOpen plugin management.
/opus-version`/opus-version <4.54.6
/status/statusOpen session and account status.
/usage/usageOpen quota and usage information.
/login/loginRun Claude CLI authentication and reconnect the session.
/logout/logoutRun 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-sessionStart a fresh bridge session in the current folder.
/resume/resume <session_id>Resume a recent or manually supplied session id.

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.

Project-Local Commands

/1m-context and /opus-version persist folder-local settings under ./.claude/settings.local.json. The current session is not restarted automatically, so run /new-session after changing either setting.

/1m-context disable writes the environment setting used to disable the 1M context window for future sessions in that folder. enable clears that override.

/opus-version <version> pins the folder-local Opus alias. default clears the pin.