Repository navigation
Releases
v0.11.0
pair prunedeletes the channel and auto state of each worktree that no longer exists, for
worktrees removed withoutpair uninit --purge. It asks first (--yesskips the question,
--dry-runonly lists them), takes name patterns to delete only some (pair prune 'old-*'),
and keeps any an auto session still holds. Pair now records a channel's worktree wheninitor
sendruns there; prune also reads auto mode's state, Codex registrations and resets, and lists
the channels it can't place.- With
--serve-worktrees, an owner killed just as it claimed a subagent worktree's socket could
leave that socket behind, blocking later starts there: its guardian learned of the claim only
after the claim's checks. The owner now binds a claim only once its guardian confirms it recorded
it, and after the owner dies, the guardian probes the claimed sockets and removes only those that
refuse connections. sendandwaitrefresh each stale instruction file on its own: aSKILL.mdthey can't write,
for example from a sandboxed Claude Code command, which may not write.claude/skills, no longer
keepsAGENTS.mdstale. The note names each file and its error.
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 termin...
0.9.2
pair history now covers the repository's other existing worktrees, so a spec reviewed in one
worktree can be cited from another. Before, a reviewer's pair history saw only its own worktree,
which broke the natural flow with --serve-worktrees: the spec is reviewed in the session's
worktree, and a subagent's reviewer runs in the subagent's. Threads from other worktrees are read
only, marked with their worktree's path, and found with the caller's PAIR_HOME; an unreadable one
is skipped with a warning. Archiving, pair clean and PAIR_KEEP pruning stay per worktree.
0.9.1
An auto session no longer hangs when its terminal goes away. On macOS, a write to a terminal whose
window has closed blocks forever, and the session wrote to its terminal while restoring it on exit:
the owner in its own cleanup, and the guardian after the owner died. Either could then keep running
indefinitely; one guardian left by a test ran for nine days. The restore now runs in a child process
with a one-second timeout, and the exact terminal settings are still restored while the terminal is
alive.
The README opens with a feature list, each item linking to its section.
0.9.0
pair start --serve-worktrees lets an auto author delegate separate PRs to subagents that each work
in their own git worktree of the repository, such as Claude Code's isolated subagent worktrees. Each
subagent runs its own review loop there, through the session's reviewer, while the others keep
working. --reviewers N runs up to N reviews at once (default 1, max 8); the rest wait in one
first-come-first-served queue with the session's own reviews.
pair start --as claude --serve-worktrees --reviewers 2A worktree's first request enrolls it after pair checks that it is a worktree of the same
repository, that the request comes from this session, and that no other session or reset owns it.
The session then holds that worktree's auto-mode socket until it stops. A worktree that is removed
or replaced, including a replaced .git, fails alone, and its reviewer is stopped. Failures and
reviewer settings are kept per worktree: in a served worktree, pair status names the session that
serves it, and pair reviewer --thread current fixes its failed round. A subagent never changes
the conversation pair start --resume reopens. Pair writes nothing in a served worktree: the
reviewer's rules come in its prompt, instruction files there aren't refreshed, and status there
doesn't suggest pair init.
The author prompt gives the author the rules to pass to each subagent. Without the flag, nothing
changes. The message format is unchanged, and a review request from an older CLI is treated as the
session's own. The README's Parallel work section and DESIGN.md's Served worktrees section describe
it; the spec is in docs/specs/serve-worktrees.md.
0.8.1
The agents' instructions now cover parallel work with subagents. A subagent inherits the author's
pair environment, so following "when you finish a task, request a review" it could open a review
thread in a checkout other subagents were still editing, or in its own worktree, where no auto
session serves the request. A new Delegating work section tells the author that it owns the review
loop: subagents return their changes and validation results without running pair commands, the
author integrates them and keeps the checkout stable while the reviewer runs, and separate PRs are
reviewed one at a time in the session's worktree. A subagent is told not to run pair commands even
with the author's role in its environment.
The auto author prompt says the same, and the README gains a Parallel work section. For PRs
reviewed in parallel, run one pair start --worktree session per PR. Instructions refresh in each
worktree on the next send or wait.
0.8.0
Pair now covers more than code review: brainstorm a design, review the spec, then review the code
that implements it, and change the reviewer's model while a session runs. Ask the author in your
own words; the README's new Workflows section shows what to say.
pair send request --brainstorm opens a thread for ideas before there's a design. The reviewer
answers with options, trade-offs and questions and --verdict continue or complete, and the
author replies with pair send response. The reviewer gets PAIR_MAX_ROUNDS turns (default 3),
stored when the brainstorm opens; on the last one continue is refused, and the reviewer completes
it with the options, a recommendation and the open decisions. A brainstorm never escalates and is
archived as completed. Both agents need 0.8.0: an older pair rejects a brainstorm as a corrupt
message instead of reviewing it as code.
A spec, plan or design doc in any format, such as a Markdown plan, an OpenSpec change or an ADR,
can be reviewed in an ordinary thread: the request names its paths and commit, and the reviewer
checks it for ambiguity, missing cases, untestable acceptance criteria and scope. A later code
review can cite that thread under ## Spec; the reviewer reads it with pair history and reports
where the code departs from it. The managed Claude reviewer may now run pair history.
pair reviewer changes a running auto session's reviewer model or effort without a restart. Run
it in your own terminal: the author and its reviewer can't. A thread keeps the settings of its
first round, so a change applies to new threads and to the restart command pair stop prints.
After a round fails, for example on a mistyped model, pair reviewer --thread current changes that
thread before the author retries. pair status shows reviewer for new threads and the current
thread's settings in place of the override lines.
The README is reorganized around these workflows, with one section on changing the reviewer;
later sections are renumbered, and old links still work. Instructions refresh in each worktree on
the next send or wait; restart the agents afterwards.
0.7.4
Failed reviews handled consistently. When a managed review fails, the author shows you the error as printed, retries once, and if the same failure comes back, stops and asks you, naming any reviewer model or effort a retry keeps. The failure text states facts instead of telling the author to stop whenever an override is set. The agents' instructions and the author's system prompt share this one rule.
Codex desktop app. If pair wait delivers a finished thread but can't archive it (the app's sandbox may not apply writable_roots), it warns and exits 0 instead of failing; the next wait that can write the channel archives it. Inside Codex, the channel access error says to run the pair command outside the sandbox or grant the session write access.
Install or upgrade: pair upgrade, or npm install -g claude-codex-pair.
0.7.3
Documentation restructured. The README now covers auto mode first, describes resuming an author conversation in one place (Author conversations), and covers worktrees in one section for both modes. Out-of-date examples and old upgrade notes are gone; links to the old sections still work. DESIGN.md's auto-session design is split into startup, review rounds, author conversations and supervision.
pair help start is shorter and shows --resume; pair help stop covers Codex authors too. No behavior changes.
Install or upgrade: pair upgrade, or npm install -g claude-codex-pair.
0.7.2
pair start --resume resumes the author conversation pair last recorded for the checkout the session runs in, so restarting no longer means copying the ID from pair stop:
pair start --as claude --worktree at-1810 --resume
It uses the record only when it's for the same CLI and has a known ID. It refuses a worktree that doesn't exist yet, and author arguments that already select a conversation. The summary names the conversation and when it was recorded. Only the conversation is reused; the other options come from the command line. A plain pair start still starts a new conversation.
Install or upgrade: pair upgrade, or npm install -g claude-codex-pair.