# Slash Commands (/cli/commands)



The CLI's command surface is **slash commands** in the composer. There are no top-level subcommands beyond bare `mogplex` (open the cockpit) and `mogplex --attach <runId>` (attach mode).

## Run control [#run-control]

| Command       | What it does                                                                     |
| ------------- | -------------------------------------------------------------------------------- |
| `/run <task>` | Start a new run with the given task as the initial prompt.                       |
| `/pause`      | Pause the active run. Agents stop at the next safe point.                        |
| `/resume`     | Resume a paused run.                                                             |
| `/kill`       | Cancel the active run. Agents are stopped; in-flight tool calls are interrupted. |

## Surface inspection [#surface-inspection]

| Command   | What it does                                                  |
| --------- | ------------------------------------------------------------- |
| `/agents` | List agents on the active run with status and current action. |
| `/mcp`    | Open the MCP drawer — per-server status and tools.            |
| `/memory` | Open the Memory drawer — browse and manage entries.           |
| `/diff`   | Open the Diff drawer — inspect patches produced by the run.   |
| `/cost`   | Open the Cost drawer — tokens, cost, projections per agent.   |

## Cockpit control [#cockpit-control]

| Command                 | What it does                                                                     |
| ----------------------- | -------------------------------------------------------------------------------- |
| `/model`                | Open the Model Picker drawer — switch the run's model.                           |
| `/permissions <mode>`   | Set the active permission mode (`approval` or `auto`). Takes effect on next run. |
| `/permissions`          | (no arg) Show the resolved permission state and where each rule came from.       |
| `/export`               | Open the Run Export drawer — serialize the run as JSON, JSONL, or Markdown.      |
| `/help`                 | Open the Command Palette to fuzzy-search every action.                           |
| `/clear`                | Clear the composer.                                                              |
| `/quit` (alias `/exit`) | Clean exit.                                                                      |

## Auth [#auth]

| Command   | What it does                                                      |
| --------- | ----------------------------------------------------------------- |
| `/login`  | Open the in-app login flow.                                       |
| `/logout` | Clear stored Mogplex token. The login screen appears next launch. |

## Composing tasks [#composing-tasks]

Anything that is **not** a slash command is sent to the active agent as a task or follow-up:

```text
> rebuild the validation layer using zod and update the tests
```

If you type a partial slash command, autocomplete candidates appear above the line. Unknown slash commands surface as inline composer errors so you don't accidentally send them as prompts.

## See also [#see-also]

* [Reference → Drawers](/cli/reference/drawers) — what each drawer does once opened.
* [Concepts → Permissions](/cli/concepts/permissions) — what `/permissions <mode>` actually changes.
* [Concepts → Attach](/cli/concepts/attach) — `--attach <runId>` for in-flight runs.
