Hanzo Dev

Slash Commands

All built-in slash commands available in the Hanzo Dev TUI.

Hanzo Dev supports slash commands in the TUI composer. Commands are shown in the slash popup; the order below matches the UI. Commands marked "prompt-expanding" transform your input into a full prompt and typically kick off multi-agent flows.

  • /browser: open internal browser.
  • /chrome: connect to your Chrome browser.
  • /new: start a new chat during a conversation.
  • /resume: resume a past session for this folder.
  • /rename <name>: rename the current session (shown in the resume list).
  • /quit: exit Hanzo Dev.
  • /logout: log out.
  • /login: manage sign-ins (select, add, or disconnect accounts).
  • /settings [section]: open the settings panel. Optional section argument jumps directly to model, theme, agents, skills, auto, review, validation, limits, chrome, mcp, or notifications.

Workspace and Git

  • /init: create an AGENTS.md file with instructions for Hanzo Dev.
  • /diff: show git diff (including untracked files).
  • /undo: open a snapshot picker so you can restore workspace files to a previous snapshot and optionally rewind the conversation.
  • /branch [task]: create a worktree branch and switch to it. If a task/description is provided, it is used when naming the branch. Must be run from the repository root (not inside another branch worktree). Set CODE_BRANCH_COPY_CACHES=1 to mirror node_modules and Rust build caches into the worktree.
  • /merge: merge the current worktree branch back into the default branch and remove the worktree. Run this from inside the worktree created by /branch.
  • /push: tell Hanzo Dev to commit, push, and monitor workflows with guarded instructions. If no workflows appear right away, it waits briefly before concluding none were triggered. Skips cleanup or GitHub monitoring steps automatically when the workspace is already clean or required tooling/files are missing.
  • /review [focus]: without arguments, opens a review picker so you can audit the workspace, a specific commit, compare against another branch, or enter custom instructions. With a focus argument, skips the picker and uses your text directly. Configure Auto Resolve and max re-reviews (defaults to 5) from /settings review.
  • /cloud: browse Cloud tasks, view details, apply patches, and create new tasks from the TUI.
  • /cmd <name>: run a project command defined for the current workspace.

UX and Display

  • /theme: customize the app theme.
  • /verbosity (high|medium|low): change text verbosity.
  • /model: choose your default model.
  • /fast: open the model selector and toggle Fast mode.
  • /reasoning (minimal|low|medium|high): change reasoning effort.
  • /prompts: manage custom prompts.
  • /skills: manage skills.
  • /status: show current session configuration and token usage.
  • /limits: adjust session limits and visualize hourly and weekly rate-limit usage.
  • /update: check the installed version, detect available upgrades, and open a guided upgrade terminal.
  • /notifications [status|on|off]: manage notification settings. Without arguments, shows the notifications panel. status shows current config, on enables all, off disables all.
  • /mcp [status|on|off <name>|add]: manage MCP servers. Without arguments, shows all servers with toggle controls. status lists servers, on <name> enables, off <name> disables, add starts the new server workflow.
  • /validation [status|on|off|<tool> (on|off)]: inspect or toggle validation harness settings.

Search and Mentions

  • /mention: mention a file (opens the file search for quick insertion).

Performance and Agents

  • /perf (on|off|show|reset): performance tracing controls.
  • /agents: configure agents and subagent commands (including autonomous follow-ups and observer status; available in dev, dev-fast, and perf builds).
  • /auto [goal]: start the maintainer-style auto coordinator. If no goal is provided, it defaults to "review the git log for recent changes and come up with sensible follow up work".

Prompt-Expanding (Multi-Agent)

These commands expand into full prompts and start multiple agents. They require a task/problem description.

  • /plan <task>: create a comprehensive plan (multiple agents). Prompt-expanding.
  • /solve <problem>: solve a challenging problem (multiple agents). Prompt-expanding.
  • /code <task>: perform a coding task (multiple agents). Prompt-expanding.

Development-Only

  • /demo: populate the chat history with assorted sample cells (available in dev and perf builds for UI testing).
  • /demo auto drive card: render the Auto Drive card once for each ANSI-16 background color so you can compare theme contrast.
  • /test-approval: test approval request (available in debug builds only).

Implementation Notes

The authoritative list of commands is defined in codex-rs/tui/src/slash_command.rs (the SlashCommand enum). When adding a new command, update this document to keep the UI and docs in sync.

Prompt formatting for /plan, /solve, and /code lives in codex-rs/core/src/slash_commands.rs. When no [[agents]] are configured, the orchestrator advertises the following model slugs to the LLM for multi-agent runs: code-gpt-5.4, code-gpt-5.3-codex, claude-opus-4.6, gemini-3-pro, code-gpt-5.1-codex-mini, claude-sonnet-4.5, gemini-3-flash, claude-haiku-4.5, and qwen-3-coder (with cloud-gpt-5.1-codex-max gated by CODE_ENABLE_CLOUD_AGENT_MODEL). You can replace or pin this set via [[agents]] or per-command [[subagents.commands]].agents.

Last updated on

On this page