Repository navigation
v0.10.0
Any two participants can pair, whatever CLI runs them: Claude can review Claude, Codex can review
Codex, or you can name participants such as alice and bob, in manual and auto mode. A
participant is a name; the CLI that runs it belongs to the session. Without new names nothing
changes: claude and codex are the defaults and each other's partner, and existing channels,
history and registrations work as they are.
- Auto mode.
pair start [AUTHOR_CLI [REVIEWER_CLI]] [--as NAME] [--reviewer NAME]: the
words choose the CLIs, the flags the names.pair start claude claudepairs Claude with
claude_reviewer, andpair start claude claude --as alice --reviewer bobnames both. Only the
CLIs a pairing uses must be installed.pair start --as claude|codexworks as before. The restart
command keeps the pairing, and every launch restates it to a resumed Claude author. - Shorter
pair help start: everyday options first, the rest under advanced options, with the
details in the README. - Guided
pair start. In a terminal,pair startwithout a CLI asks whether to resume the
recorded conversation (first, and only when there is one; Enter resumes it, and resuming reuses
that session's settings, asking only whether to keep its reviewer model and effort), then
for the CLIs, where to run, and the reviewer's model and effort. The model menu lists Claude's
aliases or the models in Codex's own picker, and any other model ID can be typed; one that Codex
doesn't list for your account asks for confirmation. For a Codex model, the effort menu lists
only that model's efforts. Enter takes each default. It then prints the equivalent command and
runs it, with the usual summary andStart? [Y/n]. Options given on the command line are kept and not
asked again; scripts and-ysee no change. pair statusshows what the reviewer actually ran with, such as
model CLI default (ran gpt-6.1-sol) · effort CLI default (ran xhigh), read after each round from
the reviewer CLI's own session file.pair uninit --purgealso deletes the worktree's channel and auto mode's state (the resume
record and log), so the next start begins fresh. It is refused while auto mode runs there.pair history <ID>also shows a thread that is still open in this worktree, such as the one
pair statusnames, with where it stands.- Manual mode. Give each agent its name and partner with
PAIR_AGENTandPAIR_PARTNER(for
Codex, as-c 'shell_environment_policy.set.PAIR_AGENT="alice"'), or in words.sendtakes
--to, and a reply goes to whoever sent the message, as the== next:line says.waitcovers
every lane, replies owed first.pair register --as NAMEwakes a named Codex participant. - Lanes are
<author>-to-<reviewer>/;status,history,resetandcleancover them all. - Retry advice. When a reviewer's own error shows a retry won't help (its provider refused the
content, it isn't signed in, or its account is used up), the failed round says so and the author
asks you instead of spending another launch. A rate limit or a timeout keeps the usual retry. pair startafter an upgrade. WithPAIR_AUTO_UPGRADE=1,pair startinstalls a newer
release from npm first and runs the same command with it; without it,pair startshows the update
notice. It refreshes instruction files an older pair wrote before the agents start. Where auto mode
already runs on other pair code (an older version, or another build of this one),pair startin
a terminal offers to stop that session first, so it can be resumed with this pair;pair status
andpair psshow each session's pair version.pair reviewerwithout a running session saves the change in the record of the worktree's
last conversation, so resuming it with a barepair startor the restart command starts with it.pair statusshows the running round and the last finished one, with its verdict or failure,
when it finished and the tokens its reviewer used (a resumed round counts only its own model
calls).pair status --jsongives the lanes, instruction states and the
session's state to scripts.PAIR_BELL=1rings the terminal bell when a round finishes.- Review requests carry their validation: each command and its result in a line, and what wasn't
checked; reviewers say which checks they ran themselves. - Review launch limit.
pair start --max-reviews Ncaps the reviewer launches of a run,
retries and served worktrees included; past it, pair launches nothing, keeps the request and
tells the author to ask you.pair reviewer --max-reviews Nchanges it live, andpair status
shows how many are used. - Review time limit. The default limit per review round is now 30 minutes (was 15).
pair reviewer --timeout SECONDSchanges it in a running session from the next round, a failed
thread's retry included, and a timed-out round's error names it.pair statusshows the limit.
Fixes found while testing with the real CLIs:
-
pair reviewerwith the values already set saysunchanged.--threadon a thread that ended
(approved, completed or escalated) says so and names the new-thread settings, andpair status
marks that thread finished. In a served worktree the advice points at the serving session. -
Upgrading a CLI with Homebrew during a session made every later review fail with
spawn …/Caskroom/codex/<old version>/bin/codex ENOENT: pair kept the versioned path behind the
codexlink, and the upgrade removes that directory. pair now keeps the path it found onPATH
(or the--codex/--claudepath you gave), so each round launches the version installed then. -
Security: a Claude reviewer loaded the worktree's own
.claudesettings, so a branch's hooks ran
with your permissions when a review started. It now loads only your user settings and no MCP
servers, and reads the worktree'sCLAUDE.mdas instructions. A Codex reviewer likewise loaded the
worktree's.codex/config.toml, MCP servers included; each round now starts in a fresh empty
directory in pair's state, with the worktree added as writable, and reads itsAGENTS.md. pair
refuses a round when a.codexother than your own Codex home is on that directory's path. -
Security: pair wrote
AGENTS.mdand.claude/skills/pair/SKILL.mdthrough symlinks and hard
links, so a cloned branch or an agent could pointpair init, a refresh orpair uninitat any
file you can write. It now refuses paths that lead outside the worktree, into.gitor to a
non-Markdown file, never refreshes or overwrites aSKILL.mdit didn't write, and replaces the
files by rename.pair status,pair initandpair startsay which path they refused. -
Security: in the channel, a symlinked channel,
archiveor lane let a thread's files move outside it (or
an outside directory in), a predictable temporary file let a message overwrite another file, and a
FIFO could blockpair mcp, the auto owner orpair status. Pair now refuses them and reads only
bounded regular files there. -
A Codex author in auto mode got none of pair's variables, so its review requests failed. A Codex
TUI started without config overrides can run its session on Codex's shared app-server, whose
commands don't see the launcher's environment.pair startnow also passes them as
-c shell_environment_policy.set.NAME=…. Earlier versions were affected too. -
The instructions tell agents to read their names with
echo: macOSprintenvshows only its
first argument, which led agents to the default name. -
A Codex reviewer in manual mode stayed silent after Codex restarted
pair mcpunder it, for
example when Codex's background service updated itself: the session's listener lived only in the
old server, and nothing showed it was gone. Another server now takes over a listener lost in the
last 10 minutes while Codex's background service lists the session as open, and logs why when it
doesn't. A session closed and opened again later isn't notified until it listens again.
pair statussays whether a registration's listener can be recovered. -
Auto mode no longer ends when a Mac wakes from sleep. Node's monotonic clock counts the sleep, so
the guardian took the owner for hung and stopped the session, author included. It now gives the
owner a fresh deadline when its own watchdog woke late. Earlier versions were affected too. -
A review round's
--timeoutcounts only time awake. A Mac that slept through a review used to
time it out on waking, and the author had to rerun it withpair wait. -
pkill -f "pair wait --as claude", meant for one stray wait, ended every auto-mode Claude
author: pair passed the author's prompt, which names pair commands, on its command line. It now
passes it in a file, to Claude with--append-system-prompt-file; a Codex author's first message
points at the file. The instructions say to stop a background pair command by its task or exact
PID, never by pattern; never to append&to a pair command or start a separate wait after a
managed send; and to resume an interrupted auto session with the restart commandpair status
prints, not a bareclaude --resume. -
An auto author's extra
pair waitreturns at once when nothing is pending, and no longer
archives the final verdict that its managed send was about to print. -
When the author ends unexpectedly,
pair startprints the restart command before it stops, and
pair statusshows it next to a stale owner socket too. -
Security: in auto mode each agent may write only its own channel (pair's home for a serving
author), so you can drop a user-wide grant to~/.pairif you don't use manual mode.pair init
says how to grant manual sessions one channel each. Control characters in agent-written text are
escaped whenpair wait,pair historyorpair statusprint to a terminal, and pair start
refuses a state path that would break a Claude reviewer's tool rules. -
A corrupt registration no longer stops others from registering, and when registrations block
pair start, it names each one withpair unregister --as NAME.
Names other than claude and codex need 0.10.0 on both sides. An older pair refuses them, its
status, history and reset don't see their lanes, and an older pair mcp wakes only codex,
so restart Codex after upgrading.