Skip to content

Releases

v0.11.0

Choose a tag to compare

@leonlee leonlee released this 20 Nov 05:54
4000f60
  • pair prune deletes the channel and auto state of each worktree that no longer exists, for
    worktrees removed without pair uninit --purge. It asks first (--yes skips the question,
    --dry-run only 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 when init or
    send runs 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.
  • send and wait refresh each stale instruction file on its own: a SKILL.md they can't write,
    for example from a sandboxed Claude Code command, which may not write .claude/skills, no longer
    keeps AGENTS.md stale. The note names each file and its error.

v0.10.0

Choose a tag to compare

@leonlee leonlee released this 18 Nov 07:13
680f75b

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 claude pairs Claude with
    claude_reviewer, and pair start claude claude --as alice --reviewer bob names both. Only the
    CLIs a pairing uses must be installed. pair start --as claude|codex works 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 start without 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 and Start? [Y/n]. Options given on the command line are kept and not
    asked again; scripts and -y see no change.
  • pair status shows 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 --purge also 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 status names, with where it stands.
  • Manual mode. Give each agent its name and partner with PAIR_AGENT and PAIR_PARTNER (for
    Codex, as -c 'shell_environment_policy.set.PAIR_AGENT="alice"'), or in words. send takes
    --to, and a reply goes to whoever sent the message, as the == next: line says. wait covers
    every lane, replies owed first. pair register --as NAME wakes a named Codex participant.
  • Lanes are <author>-to-<reviewer>/; status, history, reset and clean cover 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 start after an upgrade. With PAIR_AUTO_UPGRADE=1, pair start installs a newer
    release from npm first and runs the same command with it; without it, pair start shows 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 start in
    a terminal offers to stop that session first, so it can be resumed with this pair; pair status
    and pair ps show each session's pair version.
  • pair reviewer without a running session saves the change in the record of the worktree's
    last conversation, so resuming it with a bare pair start or the restart command starts with it.
  • pair status shows 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 --json gives the lanes, instruction states and the
    session's state to scripts. PAIR_BELL=1 rings 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 N caps 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 N changes it live, and pair status
    shows how many are used.
  • Review time limit. The default limit per review round is now 30 minutes (was 15).
    pair reviewer --timeout SECONDS changes 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 status shows the limit.

Fixes found while testing with the real CLIs:

  • pair reviewer with the values already set says unchanged. --thread on a thread that ended
    (approved, completed or escalated) says so and names the new-thread settings, and pair 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
    codex link, and the upgrade removes that directory. pair now keeps the path it found on PATH
    (or the --codex/--claude path you gave), so each round launches the version installed then.

  • Security: a Claude reviewer loaded the worktree's own .claude settings, 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's CLAUDE.md as 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 its AGENTS.md. pair
    refuses a round when a .codex other than your own Codex home is on that directory's path.

  • Security: pair wrote AGENTS.md and .claude/skills/pair/SKILL.md through symlinks and hard
    links, so a cloned branch or an agent could point pair init, a refresh or pair uninit at any
    file you can write. It now refuses paths that lead outside the worktree, into .git or to a
    non-Markdown file, never refreshes or overwrites a SKILL.md it didn't write, and replaces the
    files by rename. pair status, pair init and pair start say which path they refused.

  • Security: in the channel, a symlinked channel, archive or 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 block pair mcp, the auto owner or pair 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 start now 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: macOS printenv shows only its
    first argument, which led agents to the default name.

  • A Codex reviewer in manual mode stayed silent after Codex restarted pair mcp under 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 status says 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 --timeout counts only time awake. A Mac that slept through a review used to
    time it out on waking, and the author had to rerun it with pair 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 command pair status
    prints, not a bare claude --resume.

  • An auto author's extra pair wait returns 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 start prints the restart command before it stops, and
    pair status shows 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 ~/.pair if 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 when pair wait, pair history or pair status print to a termin...

Read more

0.9.2

Choose a tag to compare

@leonlee leonlee released this 09 Nov 05:48
3b61e83

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

Choose a tag to compare

@leonlee leonlee released this 08 Nov 11:33
73275d0

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

Choose a tag to compare

@leonlee leonlee released this 06 Nov 14:33
61ac66f

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 2

A 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

Choose a tag to compare

@leonlee leonlee released this 06 Nov 08:57
d4d856e

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

Choose a tag to compare

@leonlee leonlee released this 06 Nov 07:05
5579b36

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

Choose a tag to compare

@leonlee leonlee released this 31 Oct 12:35
a451394

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.

Changes: #25, #26, #27

0.7.3

Choose a tag to compare

@leonlee leonlee released this 30 Oct 09:20
7dcef81

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.

Changes: #23, #24

0.7.2

Choose a tag to compare

@leonlee leonlee released this 30 Oct 07:52
730c71e

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.

Changes: #21, #22