Skip to main content

In-Chat Commands

Type these during a conversation with Mercury. Most work in both CLI and Telegram unless marked otherwise. They do not consume API tokens.

General

CommandDescription
/helpShow the full manual (Telegram gets a Telegram-specific version)
/statusShow agent name, provider, budget, and channels
/progressShow live status for the current long-running task
/ or /menuCLI only: open the arrow-key command picker
/permissionsChange permission mode (Ask Me / Allow All)
/modelsList configured models/providers for this session
/models use <provider>Switch the current session model/provider
/toolsList all currently loaded tools
/skillsList installed skills
/memoryView and manage second brain memory
/tasksList scheduled tasks
/streamToggle Telegram text streaming (on/off)
/stream onEnable streaming (live text updates)
/stream offDisable streaming — responses arrive as single message

Budget

CommandDescription
/budgetShow token budget status
/budget overrideOverride budget for one request
/budget resetReset usage to zero
/budget set <n>Change daily token budget

Programming Mode

CommandDescription
/codeShow current programming mode
/code planSwitch to plan mode (analyze and present options, no coding)
/code executeSwitch to execute mode (implement step by step)
/code buildAlias for execute mode
/code offExit programming mode
/code toggleCycle through: off → plan → execute → off
/code agent <task>Delegate a coding task to a sub-agent in the background
/code workspaceCLI only: open current directory in workspace IDE mode

Workspace IDE (CLI Only)

CommandDescription
/wsShow workspace commands
/ws open <path>Open a directory in workspace IDE mode
/ws exitExit workspace IDE mode back to general chat
/ws refreshRefresh file tree and git status panel
/ws stage <file|all>Stage a file or all changes
/ws commit <message>Commit staged changes
/ws undo <file>Revert file changes with git checkout
/ws helpShow workspace command list

Sub-Agents

CommandDescription
/agentsList all sub-agents and their status
/agents stop <id|all>Stop a sub-agent or all sub-agents
/agents pause <id>Pause a running sub-agent
/agents resume <id>Resume a paused sub-agent
/agents configShow sub-agent resource allocation
/agents set max <n>Set max concurrent sub-agents

Background Tasks

CommandDescription
/bg <command>Run a shell command in the background
/bg: <task>Run a natural-language sub-agent task in background
/bg currentMove the current in-flight task to background
/bg listShow background tasks
/bg <id>Show details/output for one background task
/bg cancel <id>Cancel a running background task
/bg stop <id>Alias for /bg cancel
/bg killallCancel all running background tasks
/bg clearPrune completed background tasks

Spotify

CommandDescription
/spotifyShow Spotify connection status
/spotify authConnect Spotify (browser or manual code flow)
/spotify code <code>Complete auth with a pasted authorization code
/spotify playerCLI only: interactive music player with arrow-key controls
/spotify devicesList available Spotify devices
/spotify device <id>Set active Spotify device
/spotify nowShow what is currently playing
/spotify logoutDisconnect Spotify and clear saved tokens

Emergency Controls

CommandDescription
/haltEmergency: stop all agents and clear the task queue
/stopStop all agents, clear queue, release file locks, clear task board
/resetFull reset: stop all + clear conversation context (requires confirmation)
Fast-path commands

/agents, /halt, /stop, /progress, /spotify, /code, /memory, and /bg all work even while Mercury is busy processing a task. They're processed immediately without waiting for the current task to finish.

Progress View (CLI Only)

CommandDescription
/viewToggle progress view (balanced/detailed)
/view balancedShow last 5 tool steps, compact format
/view detailedShow last 20 tool steps, full format

Telegram Management (CLI Only)

CommandDescription
/telegramOpen Telegram management menu
/telegram pendingList pending Telegram access requests
/telegram usersList approved Telegram admins and members
/telegram approve <code|id>Approve a pairing code or access request
/telegram reject <id>Reject a pending Telegram access request
/telegram remove <id>Revoke an approved Telegram user
/telegram promote <id>Promote a Telegram member to admin
/telegram demote <id>Demote a Telegram admin to member
/telegram resetClear all Telegram access and restart pairing

Telegram-Only Commands

CommandDescription
/start or /pairRequest access (new users) or check status (approved users)
/unpairAdmin only: reset all Telegram access for this instance

Keyboard Shortcuts (CLI)

These shortcuts work in the CLI terminal interface:

ShortcutDescription
Ctrl+CExit Mercury
Ctrl+TToggle progress view (balanced/detailed)
Ctrl+BShow background tasks (or move current task to background if busy)
Ctrl+NInsert newline (multi-line input)
Ctrl+PSwitch to code plan mode (in coding/workspace mode)
Ctrl+XSwitch to code execute mode (in coding/workspace mode)

Slash Command Autocomplete

When you type / in the CLI, an autocomplete popup appears with matching commands:

  • Up/Down arrows — navigate through suggestions
  • Tab or Enter — fill the selected suggestion into the input
  • Enter (when input matches a command) — submit the command

Workspace IDE Shortcuts

ShortcutDescription
Esc / Ctrl+QExit workspace (from explorer) or return to explorer
Ctrl+EFocus explorer panel
Ctrl+GFocus git panel
Ctrl+JToggle chat panel
TabCycle focus: explorer → code → right panel
Arrow keysNavigate file tree / scroll panels
EnterOpen selected file
Ctrl+U / Ctrl+DScroll up/down by 8-10 lines
PageUp / PageDownScroll by 15 lines
Telegram pairing and access

Telegram stays private 1:1 only. The first user sends /start, receives a pairing code in Telegram, and you approve that code from the CLI during setup. Later Telegram users also send /start, appear as pending requests, and can then be approved or rejected from the CLI /telegram menu.