# Rig: Stop babysitting coding agents

URL: https://brasth.com/products/rig/

Rig is an open-source CLI harness for coding agents. You talk to one parent agent; it scopes the work, briefs worker agents over MCP and checks their results against your requirements. Done means accepted checks, not exit 0.

[Install](https://brasth.com/products/rig/#start) · [GitHub](https://github.com/Brasth/Rig)

- **Status:** Live, MIT

- **License:** MIT

- **Agents:** Codex, Claude Code, Grok, OpenCode, Cursor and more

- **Last change:** 22 Oct 2026

Logs from four coding agents that all end in exit 0 become one parent-verified result with passing checks. Parent review

## See it work

rig shell is the terminal app: one conversation with your parent agent, helpers beside it, and every change shown as a diff before it lands.

A request is typed in, the parent works with helpers beside it, the answer arrives with its diff, and the change is reviewed and committed. 24 s · no sound

The agents panel: which helpers are working, who started them and what is queued. ⇥

The code tab: explorer, tabs, git marks in the gutter and a check's problem on its line. 3 code

/doctor says what is wrong in plain words and fixes what Rig can check is safe. /doctor

## What it does

### One parent, many workers

Talk to a single parent agent. It briefs workers over MCP and keeps them on task.

### `rig shell`

A terminal app: one conversation with the parent, helpers beside it, each turn's diff under the answer, and Review, Commit and Undo.

### Parent verification

Work is checked against declared requirements and optional acceptance contracts before it counts.

### Isolated workers

Opt in to workers in a dev container and a git worktree for each writer, with a merge gate before anything lands.

### Workflows and routing

Eligible work splits into a graph of up to 12 nodes, and each task goes to the eligible worker best suited for it.

### Safe by default

Safe updates with rollback, `/doctor` in plain words, `/rewind` to put files back, and opt-in computer-use and BrowserSkill backends.

## Install

```sh
# install
$ curl -fsSL https://raw.githubusercontent.com/Brasth/Rig/main/install.sh | bash
# set up a repo
$ cd your-repo
$ rig init
# open the terminal app
$ rig shell
```

- Configure workers in `.rig/harness.toml`
- Then talk to the parent in `rig shell`, or type normal prompts into your parent agent, for example “fix the failing tests in tests/test_cli.py”
- Pause and resume with `rig off` and `rig on`

## Questions about Rig

**What is Rig?**

Rig is an open-source CLI harness for coding agents from Brasth. One parent agent scopes the work, briefs worker agents over MCP and verifies their results.

**What is rig shell?**

rig shell is Rig's terminal app. You talk to one parent agent in a conversation, helpers work beside it, each turn's changes show as a diff under the answer, and a bar offers Review, Commit and Undo. It runs on macOS and Linux and ships prebuilt, so there is nothing to build.

**Which coding agents does Rig work with?**

Rig supports Codex, Claude Code, Grok, OpenCode, Cursor and others as parent or worker agents.

**What does "verified" mean in Rig?**

A job counts as done only after the parent agent accepts it against the declared requirements and any optional acceptance contract, not just because a process exited with code 0.

**How do I use Rig day to day?**

After `rig init` and configuring workers in `.rig/harness.toml`, type normal prompts into your parent agent. The project recommends not using `rig run` for normal work.

**Is Rig free?**

Yes. Rig is MIT licensed. The source is at github.com/Brasth/Rig.

## Recent changes

[Full changelog](https://brasth.com/changelog/)

- 22 Oct 2026

**Rig** PR #87 to #91

### [Easier first run, /doctor and plain-words errors](https://brasth.com/changelog/#rig-easier-first-run-doctor-and-plain-errors)

rig shell now starts in one step, says what to do after a turn, and explains problems in plain words.

- First run is one step: choose who to talk to and you are in the conversation
- After a turn that changed files, a bar offers Review, Commit and Undo
- /doctor lists what is wrong with the project and applies the safe fixes; /selftest runs tiny real turns against each installed parent
- /help is organised by task, Settings shows a short list first, and /login runs the assistant's own sign-in

- 22 Oct 2026

**Rig** PR #88, #89

### [Fix: launches failing on an empty thread file](https://brasth.com/changelog/#rig-fix-launches-failing-on-an-empty-thread-file)

An empty .rig/thread file made every job launch and session call fail with "list index out of range"; it now means no thread.

- A launch that fails during setup ends as a failed job with its reason and frees its reservation
- Unexpected MCP and launch errors name the file and line and keep a traceback in .rig/mcp-errors.log

- 21 Oct 2026

**Rig** PR #65 to #86

### [Rewind, fork, compact, resume and search in rig shell](https://brasth.com/changelog/#rig-rewind-fork-compact-resume-and-search)

Long conversations are easier to keep, branch and take back.

- /rewind puts files back as they were before a turn, all of it or one file, and can itself be undone
- /fork branches a conversation from a turn, /compact continues from a summary, and /resume reopens an earlier conversation, with search across everything said
- /export saves a conversation, @ names a file with optional lines, and a permission mode (ask, auto-edit, plan) sits on one key
- Pressing ⏎ on a queued message sends it now and steers the parent; /remember keeps notes for every conversation

- 21 Oct 2026

**Rig** PR #65 to #86

### [A code tab with git built in](https://brasth.com/changelog/#rig-code-tab-and-git-view-in-rig-shell)

rig shell edits and reviews code without leaving the terminal.

- Go to definition, rename, outline, completion, references and repository symbols
- A git view with blame, staging a single hunk, pull, switch branch, commit, and conflicts shown side by side
- A terminal split, run tasks and tests, format on save, and a failed check's problems marked on the line

## More from Brasth

[Loopa: Meetings into reviewed tasks](https://brasth.com/products/loopa/) · [WP DocSync: Google Docs into WordPress posts](https://brasth.com/products/wp-docsync/) · [Dc CLI: Dev containers from your terminal](https://brasth.com/products/dc-cli/)
