AI pair programming
AI pair programming is the practice of working alongside an AI coding assistant continuously — sharing intent, reviewing suggestions, accepting / rejecting / refining — instead of using AI for occasional one-off tasks.
AI pair programming emerged from GitHub Copilot's autocomplete-first model and matured in 2024-2026 with chat-driven assistants (Cursor, Cline, Windsurf, Claude Code). The practice: maintain a conversation with the AI about what you're building, share files and errors, accept good suggestions and refine bad ones, treat the AI like a junior pair who needs context. Engineers who internalised this practice report 30-50% productivity gains on greenfield work. Where it underperforms: codebases with strong local conventions the AI doesn't know, edge cases the AI hasn't seen, refactors requiring deep system understanding.
When to use ai pair programming
- Greenfield development.
- Boilerplate-heavy work.
- Routine refactoring and test writing.
Common mistakes
- Accepting AI suggestions without reading them — quality varies.
- Skipping verification because AI 'sounded confident'.
FAQ
What is ai pair programming?
AI pair programming is the practice of working alongside an AI coding assistant continuously — sharing intent, reviewing suggestions, accepting / rejecting / refining — instead of using AI for occasional one-off tasks.
When should I use ai pair programming?
Greenfield development. Boilerplate-heavy work. Routine refactoring and test writing.
What are the most common mistakes with ai pair programming?
Accepting AI suggestions without reading them — quality varies. Skipping verification because AI 'sounded confident'.
Related terms
- Code completion (AI) — AI code completion is the inline suggestion of code as a developer types — the autocomplete category dominated by Cursor Tab, GitHub Copilot, Windsurf, Tabnine, and Codeium in 2026.
- IDE agent — An IDE agent is an AI coding assistant embedded inside an integrated development environment — Cursor, Cline, Windsurf, Roo Code, GitHub Copilot agent mode — that can edit multiple files, run commands, and run tests autonomously from inside the editor.
- Dev loop (AI-assisted) — The AI-assisted dev loop is the inner-loop pattern engineers use in 2026 — plan with AI, edit in IDE, run tests, iterate — where AI participates at every step rather than just code generation.
Last updated: 2026-06-01. Raw markdown: https://promtable.com/glossary/ai-pair-programming.md.