Pair programming used to mean two developers and one keyboard. Now the second chair is often an AI assistant, and the developers who get real value from it treat it as a workflow, not a chat box they open when they get stuck. Here is what that looks like across a normal day.
Start with the job, not the tool
A good pair session starts before you type a prompt. Pick one small, clear task: a bug fix, a new endpoint, a refactor of one function, a set of unit tests. If the task needs more than a paragraph to explain, split it first.
Before you ask for anything, give the assistant the facts: the relevant function, the error message, and the test that fails. A vague request like "fix my code" gets a vague answer. A concrete one, with the failing line and the stack trace, gets something you can actually use.
That habit matters more than which assistant you pick. Most popular coding assistants handle the same daily tasks well, and the differences show up in pricing, editor support, and context size. If you want a starting point for comparing them, the Best AI Coding Tools comparison covers a dozen coding assistants with their pricing, so you can pick one that fits how you already work.
Morning: plan first, code second
Bring in your AI pair at the start of a task, not the middle. Spend ten minutes planning together: describe the feature, ask the assistant to list the files it would touch, and check that list against your own map of the codebase. When the two lists disagree, that is useful: you missed a file, or the assistant is guessing at code that does not exist.
Then write the code in small steps, one function at a time: ask for one piece, read it, run the tests, and move on. Ask for a whole feature in one prompt and you end up with a few hundred lines you never really read, and that is where bugs hide.
A practical rhythm looks like this. First, write the test or the failing case by hand so you know what done looks like. Second, ask the assistant to draft the implementation. Third, read the draft line by line. Fourth, run the tests and fix what breaks. The reading step is the whole point of pair programming. Skipping it turns the assistant into a code generator, and code generators do not catch their own mistakes.
Midday: debugging with a second pair of eyes
Debugging is where an AI pair earns its keep, because it is fast at the boring parts. Paste the error, the recent change, and the test output, then ask it to explain what it thinks is happening before it suggests a fix. If it explains the cause wrong, the fix will be wrong too, and you will find out an hour later when the same test fails again.
Use it to narrow things down: which lines could produce this error, what a value looks like at each step, or a small script that reproduces the bug outside your app. These are the questions you would ask a human pair, and they force the problem into the open instead of letting you guess at it.
Watch for the confident wrong answer. When an assistant is unsure, it still writes in a confident tone. Treat every suggestion as a draft, not a verdict. If a fix sounds plausible but you cannot explain why it works, do not ship it. Run it, break it, and ask why it broke. That back and forth is the real debugging work.
Afternoon: the boring work is the best work
The parts of the day developers enjoy least are often where an AI pair helps most: writing unit tests, updating docs, renaming things across a codebase, adding logging, writing the same validation code for the tenth time. These tasks are repetitive and low risk.
Tests are a good example. Once a function works, ask the assistant to write tests for the edge cases: empty input, missing fields, values at the boundary, a database call that fails. Then read the tests the same way you read production code, because a wrong test is worse than no test: it passes, you trust it, and the bug ships anyway.
Documentation works the same way. An assistant can draft a README section or explain a tricky function in plain language, but it cannot know which details matter to your team. You edit the draft and keep the parts that would have taken you twenty minutes to write.
What stays human
Some decisions should never leave your hands: architecture choices, security sensitive code, anything that touches payments or personal data, and the final review of a pull request. An assistant can draft a database migration, but it cannot weigh the risk of running it on a live table with a million rows, and it should not decide how passwords are stored.
Code review is another human job. Reviewing AI written code takes the same care as reviewing a junior developer's code, maybe more, because the assistant writes fast and never gets tired. Read the diff, check the error handling, and look for the case it forgot. If you cannot spot it, write a test for it and watch it fail.
Three habits that make it stick
First, keep sessions short and focused. A pair session that runs for two hours without a break produces sloppy code, whether the pair is human or not. Work in thirty to forty five minute blocks and start a fresh session when you switch tasks.
Second, keep a small file of notes for each project: the stack, the naming habits, the test commands, and the things the assistant keeps getting wrong. Paste it at the start of each session so you stop repeating the same corrections every day.
Third, measure the result, not the feeling. Code that appears quickly feels productive. The real test is the week after: did the tests pass in CI, did the code survive review without a rewrite, and did you understand what you shipped? If not, slow down and read more before you accept more.
A sample day
Here is what this looks like put together. At 9:00, plan the day's task with the assistant and list the files involved. From 9:15 to 11:00, build in small steps, reading every diff and running tests as you go. After lunch, use the pair for debugging and repetitive work like tests and docs. At 4:00, stop generating and review: read the day's diffs as if a colleague wrote them, run the full test suite, and commit with a message you wrote yourself.
The commit message is yours. If you cannot explain the change in two sentences, you did not really pair on it, you watched it happen. If the words do not come, that is a sign to read the code once more.
The point of the second chair
AI pair programming works when you treat the assistant like a fast junior colleague: quick to draft, quick to search, and wrong often enough that you always check the work. It fails when you treat it like a senior developer who can be trusted without review. Keep the useful parts, and keep the judgment where it belongs, with you.
If you are still choosing which assistant to pair with, the AI Development Tools category lists thousands of AI tools for developers to browse by use case, from code completion to testing and docs. Pick one and try the workflow on a small task tomorrow.
Top comments (0)