Skip to main content

Slash Commands

Slash commands are command messages that start with /. In the TUI, commands are completed and grouped by the local command catalog plus the gateway command catalog. In messaging channels, only channel-supported commands are dispatched; ordinary text beginning with an unknown slash command is not treated as a hidden runtime operation.

Use /help in the TUI to list commands, or /help COMMAND to inspect one command's source, running behavior, surfaces, handler, audit category, and usage.

Surfaces And Busy Behavior

SurfaceHow commands are resolved
TUILocal TUI commands are checked first, then gateway command metadata is used.
One-shot CLIShell commands are not slash commands; use anyy chat for prompts.
Messaging channelsThe adapter dispatches only commands exposed for channel surfaces.
API/runtime clientsCommands are driven through gateway command descriptors.

Running behavior is part of each command descriptor:

BehaviorMeaning
local_onlyHandled by the current surface without gateway execution.
bypassCan run while a turn is active.
queueQueues input behind the active turn.
steerAdds guidance to the active turn.
reject_while_runningRefused until the active turn finishes or is stopped.

TUI Slash Commands

Local TUI commands are handled inside the terminal app:

CommandPurpose
/help [topic]Show help or one command's detail.
/quitExit the TUI.
/newStart a new session; confirms first if the current session has visible content.
`/compact onoff`
/resume [SESSION_ID]Open the session picker or resume a specific session.
`/busy queuesteer
/copyCopy the latest assistant response when clipboard support is available.
/pasteShow paste guidance for the current terminal.
`/details hiddencompact
`/reasoning showhide
/fastShow or switch fast model mode.
/logsShow local TUI messages.
/insightsShow lightweight usage information.
/historyShow current session history.
/saveExport the current session to a file.
/branch [title]Branch the current session.
/background <prompt>Run a prompt in a background child agent.
/agentsShow child agents for the current session.
/jobsShow background jobs for the current session.
/job <id> / /job kill <id>Inspect or stop one background job.
/profileShow active profile detail.
/configShow active configuration.
/statusbarToggle the status bar.
/queueInspect or enqueue messages.
/redrawClear and redraw the terminal.
/undoUndo the last exchange when no turn is running.
/retryRetry the last user message when no turn is running.

The TUI also displays gateway commands that are available for the active surface. If a gateway command has the same name as a local command, the local command wins in the TUI.

Messaging Slash Commands

The runtime command registry exposes channel-capable commands to messaging adapters. Current built-ins with channel surfaces include:

CommandPurpose
/helpShow available commands.
/newStart a new channel session.
/resumeResume an existing session when supported by the surface.
/sessionsList recent sessions.
/statusShow runtime status.
/stopStop the running turn.
/queueQueue input behind the running turn.
/btwAdd guidance to the running turn; /steer is an alias.
/retryRetry the last failed turn.
/approveApprove a pending request.
/denyDeny a pending request.
/voiceManage voice replies for a channel conversation.

Channel adapters can also expose dynamic skill commands. Those commands are resolved through the active skill catalog and are sent as session input with the skill content loaded for that turn.

Session Commands

CommandBehavior
/newCreates a fresh session.
/resume [SESSION_ID]Resumes a known session or opens a picker/list.
/sessionsLists recent sessions.
/historyShows messages from the current session.
/branch [title]Creates a child session linked to the current session.
/compressCompresses session context through the gateway.
/stopStops the running turn.
/queue <text>Queues text while a turn is active.
/btw <text>Steers the active turn with extra guidance.
/undoReverts the latest exchange.
/retryRe-runs the last user message.

Some commands are rejected while a turn is running; others bypass the busy turn or intentionally queue/steer.

Model Commands

CommandBehavior
/modelShow the active model for the current session.
/model listList models.
/model set ...Change model scope when supported by the current runtime.
/providerInspect configured providers and provider auth.

The exact model/provider subcommands are parsed by the gateway command handler, not by the TUI. Use /help /model and /help /provider from the TUI for the currently loaded command metadata.

Cron Commands

CommandBehavior
/cronManage scheduled tasks through the runtime command handler.

Use the CLI reference for non-interactive cron management: CLI Commands.

Skill Commands

CommandBehavior
/skillsList available skills.
/skillShow skill details.
/reload-skillsReload skill metadata.
/toolsList available tools.
/toolsetsList available toolsets.
/mcpShow MCP server and tool status.
/reload-mcpReload MCP server catalogs.

Dynamic skill commands are also possible when installed skills declare commands. They are scoped by the active profile, role, surface, and runtime visibility.

Runtime Management Commands

These built-ins are registered by the gateway command catalog. Availability can still vary by surface, profile configuration, and active runtime state.

CommandBehavior
/titleShow or set the current session title.
/goalSet, inspect, pause, resume, or clear the session goal.
/changeplansList pending or recent ChangePlans.
/planShow or update one ChangePlan.
/channelsManage channel runtime state.
/weixin statusShow Weixin channel status.
/pairCreate a pairing request for supported channel flows.
/secretsManage secret references through the runtime handler.
/usageShow provider and tool usage.
/logsShow recent runtime logs.
/auditShow audit events.
/doctorRun runtime diagnostics.
/debugCreate a redacted debug bundle when no turn is running.
/footerToggle TUI footer detail where the local TUI supports it.