Skip to content

v0.10.0

Choose a tag to compare

@leonlee leonlee released this 18 Nov 07:13
· 21 commits to main since this release
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 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 with pair 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.