Skip to content

The CLI's own slash commands

The interactive TUI has its own set of built-in slash commands - and this is a different list from the / picker in the editor. In the editor, / opens a picker over your subagents, skills, and custom commands. In the CLI, / runs commands that control the session itself. The inventory is version-sensitive: use the current CLI slash-command reference or type / in your installed CLI before putting a command in a script.

  • Model and session examples - /model, /max-mode, /new-chat, and /resume have appeared in current CLI documentation and changelogs; verify availability in your installed version.
  • MCP - /mcp manages MCP servers from inside the session in current CLI releases.
  • Utility - /help and the commands shown by the installed CLI are the safe starting point.

The important distinction for a headless mindset is that these commands configure an interactive session; they are not a substitute for a sandbox, disposable runner, or least-privilege credentials. A headless -p run should use documented flags and explicit output formats instead.

These only exist in the interactive TUI. A headless -p run isn’t a session you type / into - it’s a single shot. The slash commands are for when you’re sitting in the terminal agent driving it live.

Which is the point at which the interactive surface runs out and the automated one takes over. Put the single-shot command on a runner and budgetcli gets a reviewer that never forgets to show up. Next: wiring it into CI.