Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.
---
id: in-chat-commands
title: 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
| Command | Description |
|---------|-------------|
| `/help` | Show the full manual (Telegram gets a Telegram-specific version) |
| `/status` | Show agent name, provider, budget, and channels |
| `/progress` | Show live status for the current long-running task |
| `/` or `/menu` | CLI only: open the arrow-key command picker |
| `/permissions` | Change permission mode (Ask Me / Allow All) |
| `/models` | List configured models/providers for this session |
| `/models use <provider>` | Switch the current session model/provider |
| `/image <prompt>` | Make an image with an image model; add `--landscape` or `--portrait`, or `--model provider::model`. Send a photo with it to edit that photo |
| `/media` | Show the image model in use and every image model your providers offer |
| `/media image <number\|provider::model\|auto>` | Choose the default image model, or let Mercury pick |
| `/media refresh` | Ask your providers again which image models they have |
| `/say <text>` | Say it out loud: a voice note in Telegram and WhatsApp, audio in the apps; add `--style "calm"` |
| `/media speech <number\|auto>` | Choose what speaks: OpenAI, Gemini, Deepgram, ElevenLabs, or a text-to-speech model on your providers (`auto` follows Settings → Voice) |
| `/media voice <name\|default>` | Choose the voice (OpenAI: `nova`, `coral`…; Gemini: `Kore`, `Puck`…; an ElevenLabs voice id) |
| `/media replies <off\|mirror\|always>` | When chat-app replies also come as a voice note; `mirror` (default) answers a voice note with one |
| `/video <shot>` | Make a short video (3–15 s; `--portrait`, `--seconds 6`). It runs in the background and arrives in the chat when ready |
| `/music <style>` | Make a song or instrumental (`--instrumental`, `--seconds 60`); arrives when ready (`/song` works too) |
| `/media video <number\|auto>` | Choose the video model (Gemini Omni, or a gateway's video model) |
| `/media music <number\|auto>` | Choose the music model (Gemini Lyria, ElevenLabs Music) |
| `/media jobs` | Videos and songs being made, and the last few made |
| `/effort` | Show the thinking effort in this chat, where it comes from (this chat or the model's default) and the levels the model takes |
| `/effort <level>` | Set the effort for this chat only: `auto`, `low`, `medium`, `high`, and `off`/`xhigh`/`max` where the model takes them |
| `/effort default` | Clear this chat's effort and use the model's default again |
| `/effort global <level>` | Change the model's default effort, used by every chat without its own (Mercury Desktop: the Effort picker's last item) |
| `/tools` | List all currently loaded tools |
| `/mcp` | Show [MCP servers](../integrations/mcp) and whether they are connected |
| `/mcp tools <server>` | List an MCP server's tools and which ones the agent may use |
| `/skills` | List installed skills · see [dedicated page](./skills) for the full surface |
| `/skills search <query>` | Search the registry at [skills.mercuryagent.sh](https://skills.mercuryagent.sh) |
| `/skills view <id>` | Show title, version, description, and registry URL for `<category>/<slug>` |
| `/skills install <id>` | Install a skill from the registry into `~/.mercury/skills/` |
| `/skills install <url>` | Install raw `SKILL.md` from a URL |
| `/skills remove <id>` | Uninstall a skill |
| `/memory` | View and manage second brain memory |
| `/tasks` | List scheduled tasks |
| `/stream` | Toggle Telegram text streaming (on/off) |
| `/stream on` | Enable streaming (live text updates) |
| `/stream off` | Disable streaming — responses arrive as single message |
## Budget
| Command | Description |
|---------|-------------|
| `/budget` | Show token budget status |
| `/budget override` | Override budget for one request |
| `/budget reset` | Reset usage to zero |
| `/budget set <n>` | Change daily token budget (`0` removes the ceiling: no limit) |
## Token Saver Mode
A battery-saver-style mode that reduces token spend per request. When active, Mercury produces terser responses, runs fewer reasoning steps, and uses a shorter conversation history window. It also auto-engages at a configurable percentage of your daily budget.
| Command | Description |
|---------|-------------|
| `/saver` | Show saver status, today's savings, and lifetime savings |
| `/saver on` | Manually enable Token Saver Mode (persisted) |
| `/saver off` | Disable Token Saver Mode (also clears any auto-engagement) |
| `/saver toggle` | Toggle saver on/off |
| `/saver threshold <0-100>` | Set auto-engage threshold as a percentage of daily budget (default `75`, `0` disables auto) |
| `/saver auto on\|off` | Master switch for automatic engagement at threshold |
| `/saver routing on\|off` | Opt-in: prefer cheaper providers while saver is active |
When saver auto-engages, Mercury sends a one-time notification so you know responses may be shorter. Disable manually with `/saver off` or `/saver auto off`. See [Token Saver Mode reference](../reference/token-saver) for what changes when saver is active.
## Programming Mode
| Command | Description |
|---------|-------------|
| `/code` | Show current programming mode |
| `/code plan` | Switch to plan mode (analyze and present options, no coding) |
| `/code execute` | Switch to execute mode (implement step by step) |
| `/code build` | Alias for execute mode |
| `/code off` | Exit programming mode |
| `/code toggle` | Cycle through: off → plan → execute → off |
| `/code agent <task>` | Delegate a coding task to a sub-agent in the background |
| `/code workspace` | CLI only: open current directory in workspace IDE mode |
## Workspace IDE (CLI Only)
| Command | Description |
|---------|-------------|
| `/ws` | Show workspace commands |
| `/ws open <path>` | Open a directory in workspace IDE mode |
| `/ws exit` | Exit workspace IDE mode back to general chat |
| `/ws refresh` | Refresh 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 help` | Show workspace command list |
## Sub-Agents
| Command | Description |
|---------|-------------|
| `/agents` | List 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 config` | Show sub-agent resource allocation |
| `/agents set max <n>` | Set max concurrent sub-agents |
## Mercury Bots
Persistent persona-scoped agents that run outside your conversation — each with its own persona, sandbox, skills, and durable queue. See the [Mercury Bots guide](../integrations/mercury-bots) for the full surface.
| Command | Description |
|---------|-------------|
| `/bots` | Roster with live fleet states |
| `/bots create <id> "Name" "Description"` | Onboard a bot |
| `/bots open <id>` | Open the bot's own thread |
| `/bot <id> <message>` or `@<id> <message>` | Dispatch a task to a bot (result lands in the bot's thread) |
| `/bots persona <id> <text>` | Set the bot's character |
| `/bots edit <id>` | Edit name, description, model, budget |
| `/bots delete <id>` | Delete the bot |
| `/bots promote <id>` / `demote <id>` | Fleet lead ↔ solo bot |
| `/bots stop <id>` / `start <id>` | Stop (holds jobs) / start (resumes subtree for leads) |
| `/bots enable <id>` / `disable <id>` | Reactivate a disabled (e.g. imported) bot |
| `/bots run <id> [routine]` | Fire a routine or bare wake now |
| `/bots journal <id>` | Recent runs for a bot |
| `/bots dlq` | Failed jobs (replayable) |
| `/bots replay <id> <jobId>` | Non-destructive DLQ replay |
| `/bots export <id> [path]` | Export a shareable bundle (leads carry their crew) |
| `/bots import <path>` | Recreate bots from a bundle (imports start disabled) |
## Background Tasks
| Command | Description |
|---------|-------------|
| `/bg <command>` | Run a shell command in the background |
| `/bg: <task>` | Run a natural-language sub-agent task in background |
| `/bg current` | Move the current in-flight task to background |
| `/bg list` | Show 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 killall` | Cancel all running background tasks |
| `/bg clear` | Prune completed background tasks |
## Spotify
| Command | Description |
|---------|-------------|
| `/spotify` | Show Spotify connection status |
| `/spotify auth` | Connect Spotify (browser or manual code flow) |
| `/spotify code <code>` | Complete auth with a pasted authorization code |
| `/spotify player` | CLI only: interactive music player with arrow-key controls |
| `/spotify devices` | List available Spotify devices |
| `/spotify device <id>` | Set active Spotify device |
| `/spotify now` | Show what is currently playing |
| `/spotify logout` | Disconnect Spotify and clear saved tokens |
## Emergency Controls
| Command | Description |
|---------|-------------|
| `/halt` | Emergency: stop every chat's task and all agents |
| `/stop` | Stop this chat's task, the commands and agents it started, and the messages it had waiting. When nothing else is running, also release file locks and clear the task board |
| `/reset` | Full reset: stop all + clear conversation context (requires confirmation) |
:::tip[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)
| Command | Description |
|---------|-------------|
| `/view` | Toggle progress view (balanced/detailed) |
| `/view balanced` | Show last 5 tool steps, compact format |
| `/view detailed` | Show last 20 tool steps, full format |
## Telegram Management (CLI Only)
| Command | Description |
|---------|-------------|
| `/telegram` | Open Telegram management menu |
| `/telegram pending` | List pending Telegram access requests |
| `/telegram users` | List 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 reset` | Clear all Telegram access and restart pairing |
## Telegram-Only Commands
| Command | Description |
|---------|-------------|
| `/start` or `/pair` | Request access (new users) or check status (approved users) |
| `/unpair` | Admin only: reset all Telegram access for this instance |
## Keyboard Shortcuts (CLI)
These shortcuts work in the CLI terminal interface:
| Shortcut | Description |
|----------|-------------|
| `Ctrl+C` | Exit Mercury |
| `Ctrl+T` | Toggle progress view (balanced/detailed) |
| `Ctrl+B` | Show background tasks (or move current task to background if busy) |
| `Ctrl+N` | Insert newline (multi-line input) |
| `Ctrl+P` | Switch to code plan mode (in coding/workspace mode) |
| `Ctrl+X` | Switch 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
| Shortcut | Description |
|----------|-------------|
| `Esc` / `Ctrl+Q` | Exit workspace (from explorer) or return to explorer |
| `Ctrl+E` | Focus explorer panel |
| `Ctrl+G` | Focus git panel |
| `Ctrl+J` | Toggle chat panel |
| `Tab` | Cycle focus: explorer → code → right panel |
| `Arrow keys` | Navigate file tree / scroll panels |
| `Enter` | Open selected file |
| `Ctrl+U` / `Ctrl+D` | Scroll up/down by 8-10 lines |
| `PageUp` / `PageDown` | Scroll by 15 lines |
:::info[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.
:::