# Commands

> Every raptor command with its arguments, what it does and whether it calls a model.

The binary is installed as both `raptor` and `raptorcode`; they are the same program.

```text
raptor
raptor --version
raptor init
raptor tui
raptor provider list
raptor agent list
raptor agent show <id>
raptor agent create --role <role> [--task <task-id>] [--provider <provider-id>] [--model <model-id>]
raptor agent policy
raptor chat "message"
raptor run [--yes] [--model <id>] [--effort low|high|max] "task"
raptor task "task description"
raptor task list
raptor task show <id>
raptor task abandon <id>
raptor task cleanup <id>
raptor swarm "task description"
raptor swarm implement <task-id> <role>
raptor swarm run "mission description"
raptor review <task-id> [role]
raptor diff <task-id> [role]
raptor test <task-id> [-- <command>]
raptor merge <task-id>
raptor merge <task-id> --execute
raptor doctor
```

## Global options

- `--help, -h`:
Print the command list.
- `--version, -V`:
Print the version, for example `raptor 1.2.0`.
- `--no-emoji`:
Use ASCII icons on the startup screen. Same as setting `RAPTORCODE_NO_EMOJI`.

## Agents

### `raptor`

Opens the interactive [REPL](https://raptorcode.dev/docs/repl). After the key check it asks for consent once per session; in a git repository each request then launches the live swarm, elsewhere a single agent answers. With `CI=true` or without an interactive terminal, it prints its startup line instead.

### `raptor swarm run "mission"`

Runs the [live swarm](https://raptorcode.dev/docs/swarm): four agents in parallel worktrees behind a dashboard. Needs a git repository and an interactive terminal; refused when `CI=true`.

### `raptor run [--yes] [--model <id>] [--effort low|high|max] "task"`

Runs one agent [headless](https://raptorcode.dev/docs/headless) in the current directory. Progress goes to stderr, the answer to stdout, and a failure or the step limit exits non-zero. `--yes` (or `-y`) approves actions that would otherwise ask; they are declined without it.

### `raptor chat "message"`

Sends one message and prints the answer. No tools, no repository contents.

## Planning

### `raptor swarm "description"`

Creates the four role worktrees and writes a plan per role to `RAPTOR_PLAN.md`. Nothing is executed. See [Tasks and planning](https://raptorcode.dev/docs/tasks#plan-a-swarm-without-running-it).

### `raptor swarm implement <task-id> <role>`

Writes an implementation proposal for one role to `RAPTOR_IMPLEMENTATION_PROPOSAL.md`, from that role's plan. Nothing is applied.

## Tasks

### `raptor task "description"`

Creates the branch `raptor-task-<task-id>` and the worktree `.raptor/worktrees/<task-id>` for you to work in. No model is called.

### `raptor task list` · `show <id>` · `abandon <id>` · `cleanup <id>`

List tasks, show one, mark one as abandoned, or delete the worktree of a merged or abandoned task after you type `CLEANUP <task-id>`.

## Review

### `raptor review <task-id> [role]`

Status and changed files of a task worktree, or of every role worktree of a swarm run (or one `role`).

### `raptor diff <task-id> [role]`

Like `review`, plus the unstaged and staged diffs.

### `raptor test <task-id> [-- <command>]`

Runs the detected test command (`cargo test`, `npm test` or `make test`), or an allowed test command given after `--`, in the task worktree or in every role worktree.

### `raptor merge <task-id> [--execute]`

A dry run of merging a single task's branch into your checkout. With `--execute`, merges after you type `MERGE <task-id>`. Swarm runs are merged with git instead. See [Review and merge](https://raptorcode.dev/docs/review-and-merge).

## Project and diagnostics

### `raptor init`

Writes `raptor.toml` at the repository root with the provider configuration (DeepSeek enabled). Never holds keys.

```toml raptor.toml
# RaptorCode project configuration
version = 1

[providers.deepseek]
enabled = true
```

### `raptor doctor`

Prints the version, the current directory, whether it is in a git repository (and the branch), and whether `git`, `cargo` and `rustc` are available.

### `raptor tui`

A read-only dashboard: the provider and model, whether a DeepSeek key is detected, the number of tasks and swarm runs, and each role's status. It makes no model calls and writes no files. With `CI=true`, it prints a snapshot instead.

### `raptor provider list`

The provider catalog with each provider's status, default model and capabilities. DeepSeek is the provider that executes today; the others are listed as metadata. Makes no network or model calls.

### `raptor agent list` · `show <id>` · `create ...` · `policy`

Inspect and create local agent-session records under `.raptor/agents/`. These belong to an early agent-session model: `raptor agent policy` shows its default permission policy, which is not what the agent loop enforces. The enforced rules are the [tool policy](https://raptorcode.dev/docs/security#tool-policy).

## Which commands call a model

| Calls DeepSeek | No model involved |
|---|---|
| `raptor` (after the key check), `swarm run`, `run`, `chat`, `swarm`, `swarm implement` | `task`, `review`, `diff`, `test`, `merge`, `init`, `doctor`, `tui`, `provider`, `agent` |
