Writing
Pair Programming vs Working With an AI Agent: What Changes and What Doesn’t
Pair programming is two people sharing judgment in real time. Working with an AI agent is closer to delegation: fast, but you own the result. When to use each, and how to work with an agent more like a pair.
By Ka Lun Chan · AI / Engineering judgment
Is working with an AI agent the same as pair programming?
No. Pair programming is two people solving one problem in real time, with a peer who brings judgment and context. Working with an agent is closer to delegation: you hand off a scoped task and review what comes back. Use agents for throughput and people for judgment, and don’t skip the review because the partner types faster.
The words got blurred because AI coding tools were first sold as pair programmers. The tools have moved on. GitHub’s Copilot page now calls it an AI coding agent for tasks, projects and automated work, which describes the relationship better. I’ve used Claude Code, Codex, Grok and Copilot, and they’re at their best when I treat them as fast collaborators I have to check, not as a second engineer sharing responsibility.
| Aspect | Pair programming | Working with an agent |
|---|---|---|
| Who drives | Two people take turns at the keyboard and talk through each decision | You set the goal and the agent drives, often many steps on its own |
| Feedback loop | Continuous, as the code is written | At the end, or at checkpoints you set |
| What the partner brings | Judgment, team context, product sense, and the nerve to say “this is the wrong problem” | Speed, broad recall of APIs and patterns, patience with tedious work |
| Knowledge transfer | High. Both people learn, and context spreads through the team | Low. The agent forgets your codebase between sessions unless you write it down |
| Accountability | Shared between two people | Yours alone. Review is the whole safety net |
| Cost | Two people’s time on one task | Tokens plus your review time |
| Failure mode | Slower, and tiring if forced all day | Confident, plausible code that is subtly wrong, and review fatigue |
| Best for | Hard design calls, onboarding, tricky bugs, spreading knowledge | Well-scoped tasks, boilerplate, tests, migrations, trying options in parallel |
What actually differs between a human pair and an agent?
Who holds the judgment and when the feedback arrives. A human pair challenges decisions as they happen and shares the outcome. An agent works quickly and mostly on its own, and you own whatever it produces.
Classic pairing splits the work into roles. Birgitta Böckeler and Nina Siessegger’s guide to pair programming on Martin Fowler’s site describes the driver, at the keyboard and focused on the immediate goal, and the navigator, who watches the bigger picture, spots problems and thinks about next steps. The value is in that second view, delivered while the code is still cheap to change.
With an agent, you usually play navigator and the agent drives. That can work well, but only if you stay engaged. If you hand over a large task and look only at the final diff, you’ve skipped the part of pairing that catches mistakes early, and kept only the part that produces code.
The other big difference is memory. A teammate who paired with you last week still knows the codebase and why you made the calls you made. An agent starts each session fresh unless that context lives in the repository, in files like AGENTS.md, tests and written decisions.
Why is an agent a poor second opinion by default?
Because models tend to agree with you. A good pair pushes back on a weak plan. An agent will often build the weak plan quickly and well, unless you ask it to challenge you.
This isn’t just a feeling. Anthropic’s research on sycophancy in language models found that training on human feedback can encourage responses that match what the user believes over responses that are true. In coding, that shows up as an agent that accepts your framing of a bug, your choice of approach or your assumption about the data without question.
You can work around it. Ask for objections before code: “What’s wrong with this plan?” or “What would make this approach fail?” Ask it to list the assumptions it’s making. Better still, have a second model review the first one’s work, because a different model catches different mistakes. That’s the idea behind the Claude and Codex code review workflow.
How do you work with an agent more like a pair?
Stay in the loop. Agree on a plan first, keep changes small, review as you go, and make the agent explain and challenge its own choices.
- Plan before code. Claude Code’s plan mode reads the code and proposes a plan but makes no edits until you approve, which gives you the navigator’s moment before anything changes.
- Keep steps small. A change you can read in a few minutes gets a real review, and a big diff gets a skim.
- Think out loud, both ways. Explain the problem the way you would to a colleague, and ask the agent to explain why it chose its approach.
- Ask for pushback. Make “challenge this before you start” a normal part of the prompt.
- Write context down. Decisions, conventions and gotchas belong in the repository, so the next session starts where this one left off.
These are the same habits that make human pairing work: clear goals, small steps, and talking through decisions. The skills transfer directly, which is also why going deep before writing code pays off with agents.
What can’t an agent replace?
Knowledge spreading through the team, mentoring, and someone who will say “we’re solving the wrong problem.” Those come from people working together, and they disappear quietly when pairing stops.
The guide on Martin Fowler’s site is honest that pairing has costs and that teams should weigh the knowledge-sharing benefit against the overhead. Agents change that trade-off for routine work. They don’t change it for onboarding, for spreading context about why the system is the way it is, or for growing a junior engineer’s judgment. A junior who only works with an agent gets answers, and learns much less about how to find them, which I wrote about in how to use AI to learn a skill instead of offloading the work.
Accountability is the other one. With a human pair, two people stand behind the change. With an agent, it’s you. That’s fine as long as review gets more serious as more code comes from agents, not less, which is the point of code review in the AI era.
Can you combine pair programming and agents?
Yes, and for hard problems it’s often the strongest setup: two people pairing while directing an agent, one steering and one reviewing what it produces.
The agent removes the slow typing and the boilerplate, and the pair keeps the judgment and the shared understanding. Use the pair for the design call and the tricky part, and give the agent the well-scoped pieces around it. For routine work on your own, run agents and review carefully. For work that needs a team’s judgment, pair, and let the agent help both of you. If you’re running several agents at once, how to build a trusted AI agent team covers how to structure them, and AI coding tools beyond Claude Code, Codex and Grok covers the tools.
Sources
Checked in November against Böckeler and Siessegger’s guide to pair programming on martinfowler.com, Anthropic’s research on sycophancy, Claude Code’s workflow documentation and GitHub’s Copilot page. The comparison table and the recommendations are mine.
Short answers
Is working with an AI agent the same as pair programming?
No. Pair programming is two people solving one problem in real time, with a peer who brings judgment and context and shares responsibility. Working with an agent is closer to delegation: you hand off a scoped task, review what comes back, and own the result.
Why does an AI agent make a poor second opinion?
Models tend to agree with the user. Anthropic’s research on sycophancy found that training on human feedback can encourage responses that match what the user believes over truthful ones. Ask the agent to challenge your plan, list its assumptions, or have a second model review its work.
How do you work with an AI agent more like a pair?
Agree on a plan before any code, keep changes small enough to review properly, ask the agent to explain and challenge its own choices, and write decisions and conventions into the repository so the next session has the context.
Should teams stop pair programming now that they have agents?
Not entirely. Agents change the trade-off for routine work, but pairing still spreads knowledge, grows junior engineers and catches the wrong problem early. For hard work, two people pairing while directing an agent is often the strongest setup.
Try one session as a pair
Next time you start a task with an agent, ask for a plan and its objections before any code, approve it, and review each small step. Compare how that feels to handing over the whole task and reading one big diff.