Rig: Stop babysitting coding agents.

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.

Status
Live, MIT
License
MIT
Agents
Codex, Claude Code, Grok, OpenCode, Cursor and more
Last change
22 Oct 2026
Open in ChatGPT Open in Claude
Before · Four agents, four "done"s
codexedit src/cli.py
… 214 lines
exit 0
claude-codeedit tests/test_cli.py
… 88 lines
exit 0
grokedit src/cli.py
… overlapping edit
exit 0
opencoderun tests
… 2 failed
exit 0
After · Parent reviewAccepted
You: fix the failing tests in tests/test_cli.py
  • Workers edited separate files, no overlaps
  • tests/test_cli.py passes
  • Every declared requirement checked by the parent
Accepted2 workers · 1 parent
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 rig shell agents panel open beside the conversation: the parent, two helpers at work on separate tasks, and the queue
The agents panel: which helpers are working, who started them and what is queued.⇥
The rig shell code tab with an explorer, open files, git marks in the gutter and a failed check's problem shown on its line
The code tab: explorer, tabs, git marks in the gutter and a check's problem on its line.3 code
The rig shell doctor listing a signed-out assistant and an empty thread file, each with the fix Rig can apply
/doctor says what is wrong in plain words and fixes what Rig can check is safe./doctor

What it does

  • 01

    One parent, many workers

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

  • 02

    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.

  • 03

    Parent verification

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

  • 04

    Isolated workers

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

  • 05

    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.

  • 06

    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

# 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
  1. RigPR #87 to #91

    Easier first run, /doctor and plain-words 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
  2. RigPR #88, #89

    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
  3. RigPR #65 to #86

    Rewind, fork, compact, resume and search in rig shell

    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
  4. RigPR #65 to #86

    A code tab with git built in

    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