Skip to content
RyanSaxePublic

About

A skill for pair programming with your favorite agents

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

pair

Pair programming, now that your agent writes the code

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.

The agent's terminal beside pair in a browser, with arrows between them: pages go to the browser, what you send comes back to the agent, and a thread goes both ways. The terminal shows the pair commands the agent ran and what it read. The browser shows a page that asks where to retry a charge, and a thread on a selected line of code with the agent's answer.

Get started

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 loads

In 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.

How it works

Working in pair: Explain, Decide, Plan and Build, in any order, each over the loop of every round, in which the agent publishes pages, you review them, and you send your draft. Start leads from that loop to a sub-session beside it, with the same loop of pages and drafts.

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.

Three phone screens, with arrows between them. On the Work page, a proposal to add idempotency keys to charges, with Decline and Start. Then the Start popup, with In a sub-session chosen and a message to the agent. Then the sub-session, with the agent's pages in progress.

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.

The search modal. The field, three filters and the results are on the left, and the block that matched is drawn on the right with the typed words highlighted. pair architecture: your agent CLI runs pair commands to publish pages and replies to the local pair hub, the hub serves the round UI to your browser and saves state under ~/.local/state/pair/, and when you send feedback or start a thread the hub wakes the holding agent through its CLI adapter.

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.

Documentation

  • 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.

License

MIT

About

A skill for pair programming with your favorite agents

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages