← All guides
ai pair programming

AI Pair Programming: Who Drives, Who Checks, What to Use

9 min read

AI pair programming works when you split the roles. Get a driver-and-checker rule, the pitfalls to avoid, and which tool type to try first.

AI Pair Programming: Who Drives, Who Checks, What to Use
On this page

AI pair programming works when you stay the driver and the AI acts as a checker: you write and decide, it verifies details, proposes alternatives and reviews. Flip that, and you get passive acceptance of code you do not understand. The rule that decides it: if the task is fuzzy or you are learning, a human or your own hands go first; if the task is specific and checkable, hand the AI the check.

The sections below give the reasoning, the tool types worth trying, and a one-week trial plan.

What is AI pair programming, and what should the AI actually do?

Working definition: you code with an AI assistant in your editor or terminal the way you would with a colleague, trading suggestions as you go. The difference from a human pair is real. A 2025 Atomic Object post on debugging notes that AI assistants work within the scope of the files you feed them and lack full awareness of your entire setup (spin.atomicobject.com). A human partner sees your terminal, your logs and the docs you have open.

The same post is fair to the AI side. It says these tools can provide insights from vast training data, suggest alternative approaches, and even fix problems that neither you nor your pair would have caught (spin.atomicobject.com). That is the case for a supplement, and it is the stance we recommend: the AI checks specific details, suggests alternatives and verifies assumptions, while you keep the thinking.

The strongest objection is that this wastes the tool. If it can write the code, why not let it? Because the cost shows up later, in code nobody on the team fully understands. The sections below show where that bites.

Who drives and who checks: a role-split rule for every task

The table is our decision rule, built from the pitfalls the sources report. Use it per task, not per project.

SituationYou driveAI checksWhy
Debugging something unclearExplain the problem to a person firstTargeted questions on specific approachesExplaining defines the issue before the AI sees it (spin.atomicobject.com)
Learning a new conceptWrite the code yourselfFind issues, improve readabilityWriting first keeps you learning (fatbobman.com)
Fix keeps failing after prompt tweaksStop and reassessNothing until you restate the problemExtra detail and prompt tweaking is a time sink (spin.atomicobject.com)
Code about to shipRead every lineReview pass for errorsAI code can look correct and hide issues (linkedin.com)
Team is stuck or frustratedA human pairNothingA human can suggest a break; an AI will not unless prompted (spin.atomicobject.com)

Two of these rows come from one-source advice, so treat them as a starting point to test. The debugging order in particular is the Atomic Object author's suggestion: explain to a real person, then use AI for targeted questions (spin.atomicobject.com). The learning row matches a developer's own account on fatbobman.com, who writes the code first, however well or poorly, then lets AI help find issues and gradually improve readability and usability (fatbobman.com).

What goes wrong when the AI drives?

Each failure below has a countermeasure you can apply today.

  • Passive acceptance. Typing questions into an AI can lead to accepting its output without true understanding (spin.atomicobject.com). Countermeasure: before accepting a suggestion, say in one sentence what it does and why.
  • Illusion of mastery. The fatbobman author found that relying on AI's code results gave the illusion of having mastered it, when in reality he had not (fatbobman.com). Countermeasure: write the first version yourself on anything you need to learn.
  • Hidden defects. AI code may appear correct but contain hidden issues, which is why about 75% of developers manually review every snippet before deploying, according to a LinkedIn article (linkedin.com). Countermeasure: no snippet merges unread.
  • Narrow context. Copilot explains only the visible code in the current window unless you select specific code (fatbobman.com), and it does not support discussions across multiple documents, so you assemble the context yourself. Countermeasure: select the code you mean, and paste the relevant pieces together deliberately.
  • Technical debt. AI can generate working code quickly, but speed sometimes leads to poor long-term architecture (linkedin.com). Countermeasure: decide the structure yourself, then let the AI fill in.
  • Prompt-tweaking loops. When a suggestion fails, you may waste time feeding more details and chasing vague responses rather than reassessing (spin.atomicobject.com). Countermeasure: after two failed attempts, stop prompting and rethink.

There is also a tool-specific wrinkle. The fatbobman author found Copilot's default generated test code was based on Jest, so Vitest tests had to be requested explicitly (fatbobman.com). Defaults reflect the tool's assumptions, not your stack.

What do the productivity numbers really tell you?

A LinkedIn article reports that developers using AI assistance complete coding tasks up to 55% faster, save an average of 5-10 hours per week, and see test coverage rise by up to 40% (linkedin.com). It also claims AI-assisted code reviews reduce common coding errors by 20-30%, and that junior developers become productive in new codebases about 25% faster. It further cites unnamed industry analysts predicting more than 75% of software teams will use these tools as standard practice by 2030.

We would not plan around any of these. The article names no study for most of them, and "up to" figures are ceilings, not expectations. The prediction comes from unnamed analysts. Use the numbers as a reason to run a trial, not as a forecast for your team.

What to measure instead: pick one recurring task type, such as writing tests for a module, and record time to a merged, reviewed result with and without the AI. Count review comments, too. If speed rises while review comments on the AI-assisted work also rise, you have moved cost, not removed it.

Which tool type fits which kind of pairing?

Plans change fast. The figures below were reported by Questera's 2026 comparison, with pricing stated as of November 2026 (questera.ai); confirm on each vendor's page before buying.

Tool typeExamplePlan factsCost trap
IDE assistantGitHub CopilotMetered in GitHub AI Credits, Pro includes 1,500 a month, completions unlimited on paid plansCredits are metered
IDE assistantJetBrains AIFree tier with 3 monthly AI credits; Pro about $100 per user per year; Ultimate about $300Prices are approximate
AI-native editorCursorPlus $8 a month, Premium $30, Super $100, Ultra $200Plus is Cursor's own models only; the $20 Pro plan is legacy and Claude, GPT and Gemini models cost extra for new buyers
Terminal agentClaude CodeIncluded with Claude Pro at $20 a month; not on FreeLimits shared with Claude chats, on a five-hour window plus a weekly cap
Terminal agentOpenAI CodexPlus at $20 adds web, CLI, IDE extension and iOSAn API key suits CI but drops cloud features such as GitHub code review and Slack
Pay-as-you-goClineNo flat planA long agent session on an expensive model costs more than it looks
Git-first CLIAiderOpen source under Apache-2.0, commits each change to gitLatest PyPI release, 0.86.2, came out in February 2026
Browser builderReplitStarter free; Core $20 a monthStarter allows one published app that goes down after 30 days

How we would pick. If you live in VS Code and want the least disruption, try an IDE assistant or Cursor, which is based on the VS Code codebase so extensions, themes, settings and keybindings come over in one step (questera.ai). If you work in a JetBrains IDE, start with JetBrains AI, whose free tier has unlimited completion. If you want to review every change, a git-committing tool like Aider makes each edit easy to review or undo, though its slowed releases are a reason to check it is still maintained for your needs.

Avoid Amazon Q Developer for anything new. Its IDE sign-ups closed on 15 May 2026 and plugins and paid subscriptions reach end of support on 30 April 2027, with AWS pointing users to Kiro (questera.ai). Kiro has no native plugins for Visual Studio or Eclipse, which Q Developer offered.

When this is the wrong choice: if you want predictable bills, pay-as-you-go tools are the wrong pick, because your bill follows your model use (questera.ai).

How do you try one this week without wasting it?

Questera's advice is simple: shortlist two tools, then run the same real task through both (questera.ai). We add the guardrails.

  1. Pick two tools of different types from the table, one that fits your editor and one terminal agent or alternative.
  2. Choose one real task you already understand, such as a bug fix or a test file, so you can judge the output.
  3. Write your own approach first, then ask each tool to check it, following the role split above.
  4. Bound the autonomy. If you try Claude Code, generate rules with the Claude Code Permissions Generator and automatic actions with the Claude Code Hooks Preset Generator. Keep the Claude Code Cheat Sheet open for commands and shortcuts.
  5. Compare on review comments, time to merge, and whether you could explain the result without the tool.

When is AI pairing the wrong choice?

Choose a human when the problem is still fuzzy. Explaining it to a person forces the definition the AI cannot supply (spin.atomicobject.com). Choose a human, or your own keyboard, when you are learning something new, because typed questions can lead to accepting answers without understanding and constant generation gave one developer only the illusion of mastery (fatbobman.com). And choose a human when you are three prompt tweaks into a failing suggestion: a person can notice frustration and suggest a break or a new approach, which an AI will not do unless prompted.

Your next action: pick one task from this week, assign who drives and who checks using the table, and run it through two tools.

ClockedCode: Upgrade your Claude Code setup in one paste A curated Claude Code setup: vetted tools, subagents, and a tuned CLAUDE.md, compiled into one master prompt you paste once.