OpenRig: A Multi-Agent Harness That Wraps Claude Code, Codex, and Pi in tmux Instead of Replacing Them — aniketkarneai.com | aniketkarneai.com
Wednesday, November 11, 2026 Field notes on autonomous systems ● Amsterdam, NL
daily

OpenRig: A Multi-Agent Harness That Wraps Claude Code, Codex, and Pi in tmux Instead of Replacing Them

OpenRig is a TypeScript daemon that treats your existing Claude Code and Codex installations as seats in a YAML-defined team. 20 releases in four weeks, an Apache-2.0 npm package, a real Slack bridge, and a discovery mode that adopts already-running sessions.

A harness wraps a model. A rig wraps your harnesses. That single line from the OpenRig README is the whole pitch, and it lands harder the longer you look at it.

The premise is unfashionable in October 2026, when every other agent infrastructure project is busy inventing a new runtime. OpenRig does not invent one. It installs as npm install -g @openrig/cli, finds the Claude Code and Codex binaries you already paid for, and puts them behind a YAML-defined team topology. The “engine” is tmux. The “kernel” is a TypeScript daemon. The “team” is a rigspec.yaml you write by hand or generate from one of three starter recipes: first-project (Codex-only, both agents on gpt-6-astra), first-project-claude (Claude-only), or first-project-mixed (Claude owner, Codex checker). There is also a product-team example with two orchestrators, two reviewers, QA, and design, and a four-seat mixed-runtime conveyor starter.

The bet, in one sentence: the cost of running multiple coding agents in parallel is not the model — it is the team structure around them, and that team structure is reusable enough to be a product. OpenRig is the team-structure product. It is not trying to beat Claude Code or Codex. It is trying to be the layer you put on top of them so you can run four of them at once and know which one is doing what.

What’s actually hard about running four agents in parallel

The honest version of the problem is not “which model is smartest.” It is bookkeeping. You have Claude Code open in terminal one running on the auth migration. You opened a second Claude terminal to investigate the failing e2e suite. Then you decided to have Codex try the alternative implementation of the same auth migration so you can A/B them. Then you needed a fourth process to actually run the e2e suite against both candidates.

Within an hour you have: four terminal tabs, two different context windows that do not know about each other, no shared queue of which task is which, no record of what was decided in the conversation you closed yesterday, and no clean way to tell a particular agent to “stop and write down what you did so the next person knows.” The wiring between the agents is missing. tmux gives you the windows; it does not give you the wiring.

OpenRig’s answer is a small, opinionated wiring layer with four pieces: a YAML team spec, a daemon that boots the team, an SQLite-backed activity log, and a TUI that shows the live state. The daemon and the CLI ship as a monorepo of five packages — cli, daemon, tui, ui, and test-system — published to npm as @openrig/cli with 4,560 downloads in the last week. The license is Apache-2.0, the GitHub is mvschwarz/openrig, and the commit cadence is the kind of number that makes you take a second look: 20 releases between Sep 5 and Oct 2, including 13 in the last two weeks alone, with the v0.6 series landing on Sep 28.

The mechanism, in one YAML

The team definition is a file called a RigSpec. Version 0.2 is pod-aware. The minimal valid example from docs/reference/rig-spec.md is twenty lines:

version: "0.2"
name: my-rig

pods:
  - id: dev
    label: Development
    members:
      - id: impl
        agent_ref: "local:agents/impl"
        profile: default
        runtime: claude-code
        cwd: "."
    edges: []

The complete example file is closer to two hundred lines and exercises every feature — culture_file, startup.files with delivery_hint: guidance_merge, services of kind compose with wait_for healthchecks, pods with continuity_policy and restore_protocol, and a per-seat startup.files that injects the right guidance document into the right agent. The culture_file field is loaded once and merged into every seat’s context; the continuity_policy field is the load-bearing piece for “what happens when the agent’s context window fills up.”

docs/reference/rig-spec.md is 31 KB, and the file declares it was traced from the actual parser and validator — packages/daemon/src/domain/rigspec-schema.ts and packages/daemon/src/domain/types.ts — not from prior docs. That detail is doing real work in the trust budget: it is the difference between a spec you can read as the source of truth versus a spec you have to keep cross-referencing with the code.

What the YAML buys you, concretely, is three things the underlying harnesses do not give you. First, role and routing: edges: between seats are typed and declared. Second, continuity: continuity_policy.sync_triggers: [pre_compaction, pre_shutdown] is a hook the daemon fires when the underlying agent is about to lose its context, and the team can react by writing a restore brief to state/ so the next session does not start from zero. Third, services: a services.kind: compose block lets the spec declare that the rig depends on Postgres and Redis, with healthcheck URLs and wait_for ordering. You get a built-in docker compose up integration without writing one yourself.

What the numbers actually show

The most useful number is not a benchmark. It is the release-cadence curve. Sep 5 shipped v0.5.9. Sep 25 shipped v0.5.15 with a long notes file documenting the first-use recovery path and Pi fixes. Sep 28 shipped v0.6.0 with the note “works for strangers” — which is a public signal that the maintainer hit a usability cliff and crossed it. v0.6.3 on Sep 30 was “Managed Claude messaging repair” — which is a real bug class, the kind where a managed Claude Code subprocess can wedge on a malformed message and the only fix is to restart the wrapper. v0.6.4 on Oct 2 was a follow-up with OpenRig v0.6.4 as the release title, indicating the team considers the v0.6 series stable.

That is a project that is finding its legs. It is also a project that has been public long enough to have built a real health system — docs/reference/health-diagnosis.md is 24 KB, and it covers the failure modes the project has actually seen: stalled agent reads, missing healthchecks, daemon-down states, queue-divergence, and a stream-classifier-worker.md of 14 KB on a worker process that classifies activity-stream events into categories the daemon then routes.

The download number — 4,560 last week, peaking at 4560 from the npm registry’s /downloads/point/last-week/@openrig/cli endpoint — is small in absolute terms but large for an agent-harness project that does not run its own model. The comparison set is roughly: every other “agent runtime” with a similar GitHub star count is shipping their own model integration, plugin system, or framework. OpenRig is shipping a small daemon that calls out to someone else’s binary.

The substrate is tmux, and that is the whole point

Most modern agent frameworks treat the terminal as an output device. OpenRig treats it as the runtime. Every seat is a tmux session. You can tmux attach to it directly, you can scroll its history with the standard Ctrl-b [ binding, and rig seat set-typing-guard <seat> --enabled true --reason <text> reserves a particular seat as a “you type here” terminal where the daemon will hold automatic messages rather than typing them over your input. That last detail is the kind of thing you only build when you have personally lost work to an agent that typed over your half-written prompt.

The TUI — rig tui for an independent view, rig tui --shared for the live dashboard — shows the rig as a graph, then as a table of seats with runtime, model, context, and state, then one seat in detail. The README links to assets/readme/openrig-agents-working.gif, a ten-second recording of the live state moving while the agents work. The interesting bit in that recording is not the agents typing — it is the state column updating as the daemon processes their activity events.

Under the hood, the daemon has hooks for both Claude Code and Codex. The Codex path writes ~/.codex/config.toml with the activity relay commands and pre-writes trust hashes so the hook commands run without prompts. The Claude Code path writes .claude/settings.local.json with a statusLine command and activity hooks. The actual event payload — sent to the daemon’s /api/activity/hooks endpoint — is event type and subtype, seat and runtime identity, timestamps, and the native session identity. It does not include prompt text or tool arguments. That scoping decision matters: a hook system that exfiltrates prompt content would be a non-starter for a project that runs on a developer’s local machine. The hook surface is deliberately narrow.

The reason the substrate is tmux and not, say, a Docker container per agent is the other half of the bet. tmux is already on every Mac and Linux box. There is no container runtime requirement. The CLI does not ship its own kernel, scheduler, or process supervisor — it ships a small TypeScript daemon that wraps child_process.spawn to the right tmux session with the right environment variables. The README’s what-openrig-changes-on-your-machine table is upfront about this: it writes to ~/.tmux.conf (mouse support, scrollback), ~/.openrig/ (instance state and SQLite), ~/.claude/skills and ~/.agents/skills (seeded with the openrig-skills discovery skill), and either ~/.codex/config.toml or .claude/settings.local.json (per the chosen runtime). It does not write a system service. It does not edit /etc/. The CLI is local-only by default.

The agent types it does not support, and the ones it does

The README names three runtimes: Claude Code, Codex, and Pi. Pi is Pi Mono (the alternative coding agent that ships its own MCP integration and runs as a Node binary). The starter projects explicitly use Claude Code and Codex — first-project is two Codex agents, first-project-claude is two Claude agents, first-project-mixed is one Claude owner and one Codex checker. There is no first-project-pi in the shipped recipes, but the runtime plumbing is there in the rigspec YAML, and the v0.5.15 release notes explicitly call out “Pi fixes” as a category of first-use repairs.

What is not in the box is, notably, a model. OpenRig does not ship weights, does not fine-tune anything, and does not run an inference server. The agents in seats are running on the model the user already has access to — typically a paid Claude Code or Codex subscription, possibly both. The value proposition is not “we trained a better model.” It is “we wrote the team structure that your model never came with.”

That positioning puts OpenRig in a small but real category that includes DeepSeek Harness (covered here Sep 8, also a plugin-tree architecture) and the various hermes-agent-style meta-tools. The split, as it stood in late September, was: DeepSeek Harness is a frontier lab’s own runtime, designed to run DeepSeek’s own agents on DeepSeek’s own models. hermes-agent is a single-process agent loop. OpenRig is the cross-runtime team structure — the layer you put on top of the others when you want more than one of them running at once.

The trade-off is a real one. If you only need one agent, OpenRig is overbuilt. If your team is a single human working with a single agent on a single problem, the daemon, the YAML, the activity hooks, the SQLite, the typed edges, and the Slack bridge are all dead weight. The project is honest about this: the shipped first-project is two seats, the smallest viable team. The README’s guided first-use path is “one useful change in your repository” — start small, prove the wiring, scale up. There is no rig up --all-the-seats command.

Trade-offs and what it does not fix

The first honest limit is the cmux interaction. The README has a paragraph devoted to a single failure mode where cmux — a third-party macOS terminal multiplexer — defaults automation.socketControlMode to cmuxOnly, which only accepts processes started inside cmux. OpenRig’s rig setup command overrides this to automation so the daemon can control cmux’s session from outside. The fact that the README has to document this at all is the kind of platform-coupling that makes a project harder to install than its marketing implies. If you use cmux, you have to know about this; if you use iTerm2 or WezTerm or the macOS Terminal, you do not. The “supported terminals” matrix is implicit, not explicit.

The second is the permission model. The default Claude permission mode is acceptEdits (per the README’s permission mode controls native execution permissions section), and the default Codex sandbox is workspace-write with hooks enabled. The rig policy permissions list|show|current|apply command exists for rig-level policy; rig seat set-permissions <seat> --mode <mode> --reason <text> is the per-seat knob. There is a floor mode, a full_bypass mode, and an inherit mode to clear the override. But the documentation is explicit that permission mode controls native execution permissions; work posture is separate project guidance — meaning the rig’s policy and the agent’s policy are layered, and you have to understand both. The YOLO path (OPENRIG_YOLO=1 env var) is “off by default” and “selects only Codex’s sandbox; a resolved policy overrides that environment setting” — which is the kind of sentence you only write if you’ve shipped a footgun and fixed it.

The third is the Windows story. The README says: “Native Windows is not supported yet, and WSL2 has not been tested.” For a 2026 agent-harness project shipping to npm with 4,560 weekly downloads, that is a real gap. The WSL2-not-tested qualifier is more concerning than the no-native-Windows line — WSL2 is the realistic Windows deployment for a Node project, and not testing it leaves Windows users in a position where the install will probably work but the team is on its own if it does not.

The fourth is the discovery mode. The project supports adopting existing Claude Code and Codex sessions into a managed rig — the README says “discover existing sessions in tmux and adopt them into a managed rig.” That sounds great in the feature list. In practice, it is one of the failure modes the health-diagnosis doc has to cover. If you ran a Claude session two weeks ago and its tmux session is still alive but its SQLite state is gone, what does adoption mean? The docs punt this to the instance-layout.md and health-diagnosis.md reference docs. I read those; the answer is “the daemon tries, and reports the failure mode in the TUI.” That is honest, and it is the right answer for v0.6, but it is also a reminder that “adopt running sessions” is a v0.7 or v0.8 problem, not a v0.6 problem.

Why the architecture file matters more than the README

The README is 200 lines. The docs/reference/ directory has 30+ files, the largest of which is getting-started.md at 30 KB. The structural files are rig-spec.md (31 KB), agent-spec.md (18 KB), agent-startup-guide.md (24 KB), sdlc-conventions.md (23 KB), and health-diagnosis.md (24 KB). The whole docs/reference/ tree is roughly a quarter of a megabyte of written documentation for a project that has 4,560 weekly downloads.

The interesting comparison is not with other agent harnesses — most of them have less documentation, not more. It is with the type of documentation. rig-spec.md is a reference, not a tutorial. sdlc-conventions.md is a how-to for the team’s own development process, not a user-facing feature. product-journey-sdlc.md (15 KB) is a worked example of running a product from intake to release through the rig. stream-classifier-worker.md (14 KB) is the deep-dive on one internal worker process.

What this documentation tells you about the project is that the team knows what they have built. The README could have been written by anyone with a Claude Code subscription and a marketing budget. The rig-spec.md file — 31 KB, with a declared “Last validated against code: 2026-04-11” and a declared source-of-truth path — could only have been written by someone who has been maintaining the parser and validator for a year. The README tells you what OpenRig is. The architecture file tells you what OpenRig is for.

That gap is the whole bet, again. A harness wraps a model. A rig wraps your harnesses. A team wraps your rigs. And a good architecture file wraps the whole thing in a reference you can hand to the next engineer without losing the reasoning.

The Slack bridge is the surprise. rig slack manifest prints the manifest for a Slack app you create in your own workspace — the README links to a docs/reference/slack-app-setup.md setup guide. The bridge is described as “experimental” but shipped, and it works the way a lot of agent infrastructure does not: it runs the Slack app in your workspace, not OpenRig’s. The data flow stays on your machine; the OpenRig daemon talks to Slack from inside your network. That is the right model for a tool that reads your activity hooks. A central Slack bridge would be a privacy footgun; a per-workspace bridge is just plumbing.

Where it leaves the team-structure problem

OpenRig does not solve the team-structure problem. It packages the team-structure problem into a YAML, an npm package, a daemon, and a TUI, and then it lets you ship the team-structure problem as part of your repository. The rigspec.yaml goes in version control. The team’s continuity policy, restore protocol, and service dependencies are committed alongside the code they are running on. The next engineer to clone the repo gets the same team that the last engineer was running.

That is the real bet, and it is one I have not seen another project make this cleanly. Cursor’s team features are vendor-locked. The plugin systems of Claude Code and Codex are runtime-locked — they live in the agent’s binary, not in your repo. A devcontainer.json files the runtime, not the team. OpenRig files the team.

What is still missing is a real leaderboard, a public demo of a 10-seat rig running for a week, and a documented failure case from a v0.6.x release that the team is willing to publish as a postmortem. The release notes have the bones — the v0.6.3 “Managed Claude messaging repair” note is a paragraph describing a wedge bug in a specific hook flow — but they are not formatted as postmortems. That is a content gap, not a code gap. The code gap is the Windows story and the cmux interaction. The content gap is the willingness to publish what actually went wrong.

I am going to keep an eye on this one. The cadence alone — 20 releases in four weeks, with a deliberate v0.6.0 “works for strangers” pivot — is a signal that the project is past the founder-friends-only phase and into the “we have to make this work for people who do not know us” phase. The next quarter will be whether the team that wrote the architecture file can also write the public failure postmortem. If they can, this becomes the default substrate for multi-agent development by spring 2027. If they cannot, it stays a well-engineered local tool with a small but loyal base, and someone else ships the version with the postmortems.

Either way, the source code is on GitHub, the npm package is npm install -g @openrig/cli, and the README still says it best in one line.

References and where to dig further

  • The README: https://github.com/mvschwarz/openrig — has the install, the change-on-your-machine table, and the live TUI recording.
  • The canonical RigSpec reference: https://github.com/mvschwarz/openrig/blob/main/docs/reference/rig-spec.md — 31 KB, source-of-truth paths declared in-file.
  • The getting-started walkthrough: https://github.com/mvschwarz/openrig/blob/main/docs/reference/getting-started.md — 30 KB, the “one useful change” first-use path.
  • The health-diagnosis doc: https://github.com/mvschwarz/openrig/blob/main/docs/reference/health-diagnosis.md — 24 KB of failure modes the project has actually seen.
  • The Slack bridge setup: https://github.com/mvschwarz/openrig/blob/main/docs/reference/slack-app-setup.md — 5 KB, the per-workspace app model.
  • The npm package: https://www.npmjs.com/package/@openrig/cli — 4,560 downloads last week, Apache-2.0.
  • The 20-release cadence: https://github.com/mvschwarz/openrig/releases — Sep 5 v0.5.9 through Oct 2 v0.6.4.
  • The maintainer’s posts: @_fermaline on X, https://x.com/_fermaline — the “AI civilization experiments” referenced in the README are the background context.
Aniket Karne
DevOps & AI Engineer · Amsterdam
Back to all posts
Reader correspondence

Comments

Powered by GitHub Discussions via Giscus. Sign in with GitHub to leave a comment.