Skip to content

Slash commands reference ​

Typing / triggers fuzzy autocomplete and discovery hints (see Input editor); the /help overlay lists registered commands live — if anything differs, trust /help.

Built-in commands ​

CommandAliasesArgumentsDescriptionSource
/quit/q /exit—Exit Blueblue-commands
/new/clear—Start a new sessionblue-commands
/fork——Fork the current session into a new oneblue-commands
/rewind——Create a safe branch from an earlier user turnblue-commands
/sessions/resume[<session-id>]List persisted sessions as a lineage tree and switch; an id resumes directlyblue-commands
/btw—<question>Side question: fork the live session and askblue-pane-btw (transcript)
/help——Show available commands and key bindingsblue-commands
/model—[id]Switch the session model (no argument opens the picker)blue-commands (model-commands)
/effort/thinking[level]Switch the thinking effort (no argument opens the selector)blue-commands (model-commands)
/provider—[list | switch <name> | add]List providers, switch the route, or add oneblue-commands (model-commands)
/preset—[name]List agent presets or switch (blank sessions only)blue-commands (preset-commands)
/permission—[name]A bare line is intercepted at the input layer and opens the permission-preset panel; with an argument the line passes through to the host commandblue-input intercepts the bare form; the command is registered by dsh-permission-presets
/tools——List the tools visible to the current sessionblue-commands (tools-commands)
/mcp——Browse the MCP servers the host connects to and their toolsblue-commands (mcp-commands, S34)
/skills——List available skills (the # prompt invokes one)blue-commands (skills-command)
/themesee ThemingList or switch themesblue-commands (theme-switch)
/init——Analyze the codebase and write AGENTS.mdblue-commands (session-init)
/status——Show the session header, model, and context statusblue-commands (session-commands)
/context——Show token usage and the context windowblue-commands (session-commands)
/version——Show the Blue and harness versions and the live modelblue-commands (session-commands)
/changelog——Show the release changelog (what's new, one section per release, the running version badged · current)blue-commands (session-commands)
/trace—[copy <seq> | copy all]Inspect the current session's execution timeline; copy one item or the full traceblue-commands (trace-command)
/update—[version]Safely update Blue (pre-flight, snapshot, boot smoke, automatic rollback; a bare call is a read-only check)blue-commands (update-command, D52)
/settings——Edit user settings by namespace (two-level panel, every change writes through; see Configuration)blue-commands (settings-command)
/export—[path]Export the current session as a Markdown fileblue-commands (session-export)
/copy——Copy the last assistant message to the clipboardblue-commands (session-export)

Sessions and models ​

  • /resume <session-id> — the alias of /sessions: with an id it resumes directly; without one it opens the same lineage tree (parentSession defines nesting, siblings are newest first, and the current session is badged ← current; its ancestor path opens automatically without sibling branches, while Space toggles other branches). The list is scoped to the current working directory, rows show session titles, and typing filters live across collapsed descendants. Esc ends filtering but preserves the query; the focused Clear filter action clears it, after which layered Escape cancels.
  • /fork — returns cannot fork while the agent is running while the agent is not idle.
  • /rewind — lists the current session's direct user turns in one level. Selecting a turn creates an ordinary child session from the complete boundary before it; the parent is never truncated or deleted and remains resumable through /sessions. A running agent is refused.
  • /model / /effort — no argument opens the model picker or horizontal effort selector. Non-wrapping ← → moves provider/effort tabs, Enter descends, and content-level Tab reaches actions. Choose Set as default to switch and persist, or Use for this session to change only the live session. With an argument they switch directly and persist. The panel-free shortcut Alt+M cycles through the current provider's models (session-only, draft preserved; see the key reference).
  • /provider — three subcommands: list shows providers and the current route; switch <name> switches; add starts the add-provider flow.
  • /preset — switches the agent composition over the thin-host roster (upstream standard / minimal / ptc / cordis, plus Blue blue-cordis): a session's tool surface, persona, and plan mode come from its preset. There is no code alias. Switching is allowed only on blank sessions — a started one returns cannot switch presets: this session has already started (blank sessions only).

Modes and approval ​

  • Shift+Tab mode cycle — normal → plan → yolo only orchestrates native dsh commands: /plan, /plan off, /permission danger-full-access, and /permission workspace-write (see Session modes). Blue does not register /yolo or /yes.
  • /permission — lists/switches permission presets (named bundles of sandbox mode + approval policy). Same single-select panel shape as /preset; a danger preset requires a typed y. A bare /permission is intercepted by the input layer to open the panel; the command itself is registered by the upstream dsh-permission-presets (both completion and /help list it), and an argumented call passes through to the host command.
  • /mcp — a three-level panel browsing the MCP servers the host connects to: server picker → server panel (a config pseudo-row + raw tool rows) → detail (config status / redacted connection / policy, or a tool's schema). Read-only — servers are added via profile patch (see dsh/mcp); the empty state points the way.
  • /init — the agent analyzes the codebase and writes AGENTS.md in the project root: if one exists it is read first, still-accurate content carries forward, and the file is rewritten into one coherent, up-to-date document (not appended), in the language the project's own docs mainly use.

Info and export ​

  • /export [path] — exports the current session as Markdown; without a path it writes the default filename blue-export-{id8}-{YYYYMMDD-HHMMSS}.md.
  • /copy — the last assistant message's text goes to the clipboard: OSC 52 first (the escape sequence travels over stdout to the local terminal emulator, so SSH sessions still reach the local clipboard), with a fallback pipeline behind it.
  • /trace — reads the current execution timeline through the harness's official session query; Up/Down selects an item, Enter opens full JSON, PageUp/PageDown scrolls details, c copies one item, and a copies the complete trace.
  • /theme — full usage usage: /theme [dark|light|ocean|paper|auto|custom <path> [dark|light|ocean|paper]], see Theming.
  • /quit — before the agent attaches it shows no active session (see the FAQ).

Commands never enter a model turn — success/error text flashes on the editor hint line. Commands registered by downstream plugins through ctx.commands appear automatically in the completion menu and /help; aliases are not registered as commands — the input layer rewrites them to the canonical name before dispatch (the kimi aliases port). /permission is a different case: the command is registered by the upstream dsh-permission-presets (so both completion and /help list it), but Blue's input layer intercepts the bare invocation before dispatch and opens the preset selector directly.

Parked commands ​

These commands exist in the reference products (kimi/Claude Code); Blue deliberately parks them — waiting on upstream primitives or real demand (the full rulings live in the repository roadmap's parked ledger):

  • /reload /tasks — deferred (task management goes through profile/config files)
  • /archive /delete — upstream persistence has no delete/archive primitive yet
  • /import — session-format version strictness undecided
  • /diff (uncommitted-changes panel) and the full-screen approval diff preview — re-evaluated with dogfood feedback after release
  • /debug — needs an upstream diagnostics-export surface

Preview · v0.2.0-alpha.1