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.
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 soundThe 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
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.
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