# Lifecycle: start, change and stop a rig

Start a team from a reusable spec, add specialists while it works, and bring it back later with its conversations. OpenRig keeps the team's named seats and assigned work together as the agents running in those seats change.

## Start a team

`rig up` launches a library starter, your own YAML spec or a rig bundle. Preview a spec with `--plan` before starting it. Use `--name` when you want several teams from the same spec.

```
rig up starter
rig up ./rig.yaml --plan
rig up ./rig.yaml --name alpha
```

For a stopped team, use its existing name and `--existing` to resume its conversations:

```
rig up my-rig --existing
```

Starting the spec again creates a replacement team; it is not the way to resume the stopped one. With `--json`, the restore result says whether the team returned whole and names any conversation or guidance gaps. Check `git status` after a Codex restore: managed guidance can modify a tracked `AGENTS.md`.

`--non-interruptive` accepts supported first-launch warnings for seats using full bypass and saves that choice for the rig. See [Non-interruptive mode](/docs/non-interruptive-mode) before choosing it.

## Add the specialist you need

`rig grow` adds named seats to a running team. Choose an existing pod with `--pod`, or group the new seats in a pod of their own with `--new-pod`.

```
rig grow my-rig reviewer-2 --pod review
rig grow my-rig indexer --new-pod index --runtime codex
```

The default runtime is Claude Code, and the default working directory is the directory you run the command from. Use `--cwd` to choose another folder. To add a seat or a whole pod from a reusable fragment, use `rig add` or `rig expand`.

## Stop one agent or the whole team

Inspect the team before stopping work:

```
rig ps --nodes --rig my-rig
rig capture dev-impl@my-rig
```

`rig seat stop` stops one managed agent and leaves its teammates running. `rig launch` starts a stopped seat in an existing rig; an already-running seat is left alone.

```
rig seat stop dev-impl@my-rig --reason "finished this work session"
rig launch my-rig dev.impl
```

For a community harness, check its own process or compute too: those may outlive the closed pane.

`rig down` stops the team, taking a snapshot first on a best-effort basis. It ends the agents' sessions and their work in progress, so use it when you mean to stop the team. Restarting only the daemon normally keeps the agents running.

```
rig down my-rig --snapshot
```

OpenRig leaves a terminal running when it cannot establish that it belongs to the seat, and reports what it left. It also leaves sessions you joined with `rig attach` running. Once a working folder has no live seat using it, teardown removes OpenRig's managed additions there and reports edited files it kept.

To remove a seat from the team, use `rig remove`. If it has active tasks assigned, name a live fallback to receive them:

```
rig remove my-rig dev.qa --fallback dev.impl
```

`rig shrink` removes a whole pod. When a finished rig should disappear from the default list, `rig archive` hides it while keeping its data; `rig unarchive` brings it back.

## Keep a conversation or start fresh

Use [Continuity](/docs/continuity) for snapshots, restore and handover. A deliberate blank restart is a separate choice:

```
rig seat launch dev-impl@my-rig --fresh --plan
```

That previews a new conversation in the same seat. Executing it needs a reason and, for a live managed agent, `--stop`.

You can also move a live seat between Codex, Claude Code and Pi. The successor reads a handover and confirms it before taking the seat. The address and assigned tasks stay; conversation history is carried through the handover rather than converted between runtimes.

```
rig seat set-runtime dev-impl@my-rig --runtime codex --reason "use Codex for implementation" --dry-run
```

A Claude seat whose usage-limit message gives a reset time waits until then to resume its pending work. Let that recorded wait finish rather than releasing it on a separate timer. If a handover reports that its successor may already be running, inspect the pane before retrying.

## Bring sessions you already have

`rig discover` finds unmanaged tmux sessions; `--draft` writes a candidate spec you can edit. `rig adopt` gives those sessions places in a team without starting them again:

```
rig discover --draft
rig adopt ./rig.yaml --bind dev.impl=my-tmux-session
```

Use `rig attach --self` to join the shell or agent you are already using. `rig unclaim` releases one adopted session from management, and `rig release` releases a rig's adopted sessions; both leave the sessions running. After manually resuming an agent in its canonical session, `rig reconcile-session` reconnects that live session to its recorded seat without launching or typing into it.

## Names in commands

The session address `dev-impl@my-rig` is what messaging commands use. The logical ID `dev.impl` identifies the seat inside its rig and is what `rig launch`, `rig remove` and `--bind` use. A pod groups related seats, such as `dev` or `review`.

- [Continuity](/docs/continuity): keep context through restarts and handovers.
- [Specs](/specs/agentspec): describe a team you can reuse.
- [Other machines and people](/docs/hosts-and-humans): operate on a registered host.
- [CLI reference](/docs/generated/cli-reference): all lifecycle commands and options, including `rig edge` for changing connections between seats.
