# REPL commands

> The slash commands available inside the raptor REPL, and what each one changes.

Type a slash command at the REPL prompt instead of a request. Anything that doesn't start with `/` (or `?`) is sent as a request.

- `/help, ?`:
Show the list of commands.

- `/swarm <mission>`:
Launch the [live four-specialist swarm](https://raptorcode.dev/docs/swarm) with this mission. Needs file-system consent for the session and a git repository.

- `/model`:
Pick the model from a menu: `deepseek-v4-pro` (DeepSeek V4 Pro) or `deepseek-flash` (DeepSeek V4.1 Flash). The choice is saved in `~/.raptor/model` as your default for later sessions; `RAPTOR_MODEL` and `raptor run --model` take precedence when set.

- `/effort`, default `max`:
Cycle the thinking effort low → high → max, without resetting the conversation.

- `/thinking`, default `on`:
Turn DeepSeek's thinking mode off or back on.

- `/stream`, default `on`:
Turn streamed output off or on. Swarm agents and `raptor run` always stream.

- `/json`, default `off`:
Ask for JSON-only answers. RaptorCode sets DeepSeek's JSON output mode and adds the instruction DeepSeek requires.

- `/balance`:
Show your DeepSeek account balance.

- `/api`:
Open the API key settings: see whether a key is configured and where keys are saved, or replace the saved key. The key itself is never displayed.

- `/clear`:
Clear the conversation history and start fresh.

- `/exit, /quit`:
Leave the REPL.

## Other inputs

| Input | Effect |
|---|---|
| `continue` | Resume a single agent that stopped at its 100-step limit. |
| `y` / `n` at a policy check | Approve or refuse an action the agent asked about. |

## The swarm dashboard

While a swarm runs, the dashboard takes the keyboard:

| Key | Action |
|---|---|
| `y` / `n` | Answer a pending confirmation |
| `1` – `4` | Focus one agent's panel |
| `q` or `Esc` | Deny pending confirmations and stop the agents |
