In pair programming, one person drives and the other navigates. Agents write
most of the code now, so pair helps you navigate. You read what the agent
publishes, point out mistakes, choose between options, and approve each piece of
work before the agent edits your project.
pair needs Node 22.23.5 or newer in 22, 24.22.3 or newer in 24, or 26.13.1 or
newer.
npm install -g @ryansaxe/pair # the application and the pair command
npx skills add RyanSaxe/pair -g # the skill your agent CLI loadsIn your project, invoke the pair skill with your task:
- "plan retrying a charge when the payment gateway times out"
- "help me understand how this service handles retries"
The agent starts a session and opens it in your browser, or gives you the link when a pair tab is already open. Install lists per-CLI setup, and Sessions and rounds covers the workflow.
A session covers one task: explaining code, deciding between options, planning a change, and building it, in any order. You work in rounds. In each round, the agent publishes pages, you review them and send your notes and choices, and the agent builds the next round from your feedback.
Select any word or line to comment, or pick between options. Start a thread when you want an answer before the next round; the agent replies while it keeps working. The agent edits your project only for work you approve.
The agent lists suggested work as proposals on the Work page. Approve one with Start or by asking in your own words. Above, starting a proposal in a sub-session opens a linked session beside the current one.
Press ⌘K or select the search icon to find anything you read or wrote. Search covers live sessions and, when enabled, closed ones.
Your agent runs pair commands in its own shell. A local server, the hub,
serves pages to your browser, saves session state on disk, and wakes the agent
when you send feedback or start a thread. See
Architecture and Concepts.
- Getting started: install
pair, its skill, and CLI setup. - Concepts: sessions, rounds, pages, Agreed, proposals, and the hub.
- Guides: plan a change, understand code, build the work, and search.
- Advanced setup: launch scripts, inter-agent messaging, custom instructions, and custom components.
- Reference: commands, environment variables, and agent guide files.
- Troubleshooting: fixes for known problems.
To change pair, start at Contributing.
BACKLOG.md lists planned work.