Pair Programming With AI: A Guide Scored on the Loop
9 min de lecture
Key takeaways
- Score AI pair programming tools on three axes, 0-2 each: turn-taking, context sharing, and mid-session control; six points is a full partner and below four you are supervising a batch job.
- GitHub Copilot and Cursor behave like inline pairs with fast turn-taking, while Aider is a delegated agent that plans, edits, and commits, so the two modes fail differently.
- Vibe coding with loose prompts suits prototypes and throwaway scripts, but multi-repo changes and shared state need tight pairing with approval before each step.
- Running parallel agent sessions makes human review the real cost: one practitioner running thirty Claude Code and Codex sessions paid roughly $8 per merge request in tokens but spent the most time on the review loop.
- Isolate each session in its own git worktree, write acceptance criteria up front, and block every merge on human review to keep a fleet of agents from overwriting each other's work.
Most guides score tools for pair programming with AI by feature lists, not by whether the pairing loop actually works: clean turn-taking, shared context, and you keeping control mid-session. This guide scores each tool on those three axes, then runs the same rubric on a thirty-agent fleet, where the loop breaks first.
What does pair programming with AI actually mean in practice?
Pair programming with AI is a feedback loop, not a generation event. You and the model alternate between driver and navigator, share a working understanding of the codebase, and review each turn before it lands. That loop is the unit of evaluation, and every tool in this guide gets scored on it.
Driver, navigator, and where the AI sits
In classic pairing, the driver types and the navigator watches, questions, and redirects. With an AI partner, the model usually drives while you navigate: you set acceptance criteria, it writes, you review. The value comes from tight turn-taking and shared context, not from raw output speed.
Why one-shot generation is not pairing
One-shot generation has no loop. You fire a prompt, wait, then untangle whatever came back. That is vibe coding, and it is fine for throwaway work. Background agents push the same pattern further: you hand off a task, the agent wanders, and minutes later you find it fixing the wrong thing.
Teams running thirty parallel Claude Code and Codex sessions pay roughly $8 per merge request at API prices, with "The three of us provide the tasks and the direction" (dev1alone, Dev.to). The cost is not tokens; it is the review and redirection loop a human must run for each agent. That loop, at one pair or a fleet, is what we score. Patterns for running it at scale live on the Aerunit blog.
How do you evaluate an AI pair programming tool before committing?
Score every candidate on three axes, 0-2 each. Turn-taking: does it wait and respond inside your loop, or does it barrel ahead? Context sharing: does it see what you see, incrementally, or just the file you pasted? Control: can you interrupt, steer, and review mid-session before the damage ships? Six points is a full partner. Below four, you are supervising a batch job.
Turn-taking: does it interrupt you or wait its turn? A good partner finishes its diff and stops. A bad one keeps editing while you are still reading the last change. Watch for approval prompts that actually gate work versus ones that just decorate it.
Context sharing: does it see the session or just the file? Incremental context means the agent knows what you just rejected, not only what the file looks like now. Without it, you re-explain the same constraint every turn. That tax compounds across a fleet.
Control: can you stop it before the damage ships? Mid-session interrupt, per-step review, and retries on your terms. The same rubric scales from one pair to ten; we break down the fleet version in our guides.
How do GitHub Copilot, Cursor, and Aider differ as pair programming partners?
The rubric from the last section has three axes: turn-taking, context sharing, and control during a live session. Scored on those, the three tools split into two camps. Copilot and Cursor behave like a pair: they work inline, in your editor, one turn at a time. Aider behaves like a delegated agent: you hand it a task and it produces a commit. Both modes are valid, but they fail differently.
| Tool | Turn-taking | Context sharing | Live control |
|---|---|---|---|
| GitHub Copilot | Inline, incremental | Open file + tabs | Accept/reject per suggestion |
| Cursor | Inline, multi-file | Codebase index, rules files | Diff review before apply |
| Aider | Delegated, commit-based | Repo map, git history | Edit the prompt, revert via git |
GitHub Copilot as a pair
Copilot is the purest turn-taker: it proposes, you accept or reject, and the loop is fast. Context sharing is narrow, mostly what is on screen, so it works best when you already know the file.
Cursor as a pair
Cursor extends the same loop across files with its codebase index and rules files. You keep control through diff review before anything applies. It drifts toward delegation with agent mode, where a task runs longer than one turn.
Aider as a pair
Aider skips the pair loop entirely: it plans, edits, and commits. That matches the pattern secondshiftdev describes, where the trick is "splitting the thinking from the doing" (Dev.to). It also inherits delegation's failure mode: agents left alone overwrite each other's work and duplicate effort. Aerunit exists for that regime; for running many delegated sessions across repos, see parallel coding agents.
When is vibe coding with an AI pair appropriate — and when does it break down?
Vibe coding means loose prompts and high agent autonomy: you describe an outcome, the agent decides the path. Tight pairing means turn-taking, shared context, and approval before each step. Both are valid. The failure mode is applying the first to work that needs the second.
Where loose prompting works
Prototypes, throwaway scripts, spikes you plan to delete, and isolated features in a repo nobody else touches. If the blast radius of a wrong answer is one git checkout ., let the agent run. Speed beats ceremony when the code is disposable.
Where it burns your token budget
Multi-repo changes, anything touching shared state, and migrations where a confident wrong turn costs an hour of retries. Agents left alone overwrite each other's work and duplicate effort across your fleet. The fix is splitting the thinking from the doing: tight acceptance criteria up front, then a human pass over the diffs before merge — the loop we describe in reviewing agent pull requests.
Which tool fits solo developers versus teams doing cross-repo changes?
Solo: one session, one loop
If you build alone, an inline tool with a tight turn-taking loop is enough. You type, the agent edits, you review the diff in one repo. Cursor and Aider both fit this shape, and the three-axis rubric weights context sharing most heavily because the session is the whole product.
Team of 2-10: many sessions, one review loop
Cross-repo work changes the weighting. Once you run parallel sessions, the binding constraint is not the editor, it is whether each agent holds enough context to make good decisions across steps. Practitioners running local-model swarms say exactly this: "The real bottleneck isn't usually the orchestrator though - it's whether your small model can actually maintain context and make good decisions across multiple steps" (Reddit thread on agent orchestration tools with local models).
At that scale you need task distribution, state tracking per session, and a single review loop over merge requests, which is the gap our overview of agentic AI coding tools covers. Aerunit targets that fleet case; Vibe Kanban sits adjacent. Score candidates on the same rubric, just weight control during live sessions higher.
What workflow keeps you in control while pairing with AI?
The loop that holds up at scale has four parts: split planning from execution, write acceptance criteria before the session starts, isolate each session in its own git worktree, and block every merge on human review. Skip any one and you get the chaotic intern problem — fast, eager, and wrong in ways you notice an hour too late.
Split the thinking from the doing
Decide the approach yourself, then hand the agent a bounded task. An agent that plans its own route through a multi-repo codebase wanders. You supply direction and acceptance criteria; it supplies the typing.
One worktree per session
Give every parallel session its own git worktree so agents never touch the same checkout. That stops two agents overwriting each other's work and makes each diff reviewable in isolation.
Review before merge, every time
Treat each merge request as the control point. Read the diff against your acceptance criteria, reject anything off-target, and retry with a sharper brief. The review gate is what turns a fleet of agents into work you can actually ship.
What changes when you run ten pairs at once instead of one?
The pairing loop you ran with one agent does not scale by multiplication. Approval prompts pile up across terminals, two agents edit the same files, and you cannot tell which session is blocked and which has been wandering for an hour. One founder running thirty Claude Code and Codex sessions described losing track of which agent was waiting and which was fixing the wrong thing for three hours.
The same rubric, applied to a fleet
Turn-taking becomes task distribution: who gets the next ticket, and who retries a failed merge request. Context sharing becomes state tracking across repos and worktrees. Control becomes a queue of approval prompts you can triage instead of a wall of tabs. Cursor's background agents handle the run-remotely part but leave coordination to you. Vibe Kanban gives you a board of sessions. Neither answers which agent is off-target right now.
Where Aerunit scores itself honestly
Aerunit treats the fleet as the unit: shared task state, per-agent status, and a single approval queue. It does not write better code than the agents underneath it. It keeps ten pairs from becoming ten chaotic interns.
How do you run the evaluation on your own stack this week?
Pick one real task: a multi-file change you would actually merge this week. Run it through each tool twice, once solo and once with a second agent on a git worktree, so you see both the pairing loop and the fleet failure mode. Log three numbers per run: tokens burned, your time in approval prompts, and minutes from merge request open to review. Those three expose turn-taking, context sharing, and control better than any feature list.
Score each tool against the rubric honestly, including Aerunit. Then decide on the loop: which tool kept the agent on target, and which one left you debugging a confident intern at hour two. Repeat the run a second time before you commit, because a single session tells you more about the model's mood than about the tool. Two runs per tool is enough to separate a lucky diff from a repeatable loop.
FAQ
Is AI pair programming worth it for a solo developer?
Yes, if you score the loop, not the features. A tight inline partner like Cursor or Copilot keeps turn-taking fast and review cheap, which matters most when you have no human reviewer. The rubric weights context sharing heavily for solo work because the session is the whole product. If a tool saves you review time, it pays for itself.
What is the difference between vibe coding and AI pair programming?
Vibe coding is loose prompting with high agent autonomy: you describe an outcome and the agent picks the path. Pairing is a loop with turn-taking, shared session context, and approval before each step. Vibe coding suits prototypes and throwaway scripts. Pairing suits anything touching shared state, where a confident wrong turn costs an hour of retries.
Can I use Aider as an AI pair programmer without an IDE?
Yes. Aider runs in the terminal, plans, edits, and commits directly, using a repo map and git history for context. That makes it a delegated agent rather than a turn-taking pair: you hand it a task and review the commit afterward. Control comes from editing the prompt and reverting via git, not from inline diff approval.
How much does it cost to run several AI pair programming sessions in parallel?
Tokens are the small part. One practitioner running thirty Claude Code and Codex sessions paid roughly $8 per merge request at API prices, and found the real cost was the human review and redirection loop for each agent. Budget your attention, not just your API bill: every parallel session adds approval prompts you must triage.
Do AI pair programmers work across multiple repositories?
Individually, yes, but coordination is on you. Once sessions run in parallel, the binding constraint is whether each agent holds enough context to make good decisions across steps, not the editor. You need task distribution, per-session state tracking, and one review loop over merge requests. Isolate each session in its own git worktree so agents never overwrite each other's work.