---
description: "Turn off continuous mode on this machine: the schedule is removed, work already running finishes, the repo selection is kept. Use when the machine should stop picking work up."
description-tr: "Bu makinede sürekli modu kapatır: zamanlama kaldırılır, koşan iş biter, repo seçimi saklanır."
argument-hint: "[--now]  -  --now also stops the item currently running"
parameters: [{"name":"--now","kind":"flag"}]
gui: button
destructive: false
confirm: none
---

# multi-agent autopilot-off  -  stop picking work up

> **Pickers follow** `$HOME/.claude/multi-agent-refs/picker-contract.md`: never a one-option call, and branch on the option selected, not on its text.

Removes the schedule. **Work already in flight finishes** unless you pass
`--now`: an item stopped mid-development leaves a worktree and a half-written
branch, so stopping it is a destructive step that is asked for, never a default.

## Steps

### 1. Say what is in flight before stopping anything

```bash
bash "$HOME/.claude/scripts/autopilot-status.sh" --short
```

When something is running, name it and how long it has been going. "Stopped"
means something different when an item is 2 minutes from a PR than when the queue
is idle, and the user is the one who knows which.

### 2. Turn it off

```bash
node "$HOME/.claude/scripts/autopilot-control.mjs" off
```

One script does every step, the same one `POST /v1/autopilot/off` runs, so the
command and a client turn the mode off the same way: the schedule's job is
booted out and its plist removed (its presence is the definition of on, so it is
removed rather than disabled), the awake agent goes with it (it would keep a Mac
awake for a mode that is off), an in-flight sleep lock is released only when the
tick that holds it has ended, and the menu bar indicator stops. It prints
`{"enabled": false, "stoppedInFlight": false, "keptWorktrees": []}`.

An unattended run (`MULTI_AGENT_UNATTENDED=1`) is refused with exit 4 and the reason on stderr: report that autopilot stays on and a person must turn it off, and do not retry.

### 3. `--now` only: end the in-flight item deliberately

Without `--now` nothing in flight is touched. With it, first name the item and
its worktree, say that whether the worktree holds uncommitted work is not
checked (no git runs inside it), and ask before stopping anything: one
`AskUserQuestion` (Stop it / Let it finish), and anything but an explicit Stop
runs plain `off` instead. Plain `off` deletes nothing, so the command itself is
not declared destructive; this question is the confirmation `--now` needs. On a yes:

```bash
node "$HOME/.claude/scripts/autopilot-control.mjs" off --now
```

The child session is stopped and the run is marked `abandoned`; its worktree is
**kept as it is**. The run could write that worktree and the git config read
there, and `git status` or `git stash` would run the filters that config names,
so no git runs inside it and whether it holds uncommitted work is not asked.
Same contract as `gc-abandoned.sh` and `autopilot-runner.mjs`; losing a day of
edits is worse than 750 MB. `stoppedInFlight` says whether a session was
stopped, and `keptWorktrees` lists the worktree of each item it ended that is
still on disk.

### 4. Keep the selection

`~/.claude/autopilot/config.json`, `queue.json` and `attempted.jsonl` all stay.
Turning the mode back on must not re-ask which repos, and the attempt history is
what stops an item that already failed twice from being retried forever.

To forget the selection as well: `rm -rf ~/.claude/autopilot`. Say that rather
than doing it - "off" and "forget everything" are different requests.

### 5. Report

State that it is off, what was left running or finishing, and that the repo
selection is kept. Name each path in `keptWorktrees`: it is kept, and may
hold uncommitted work for a person to look at.
