“AI coding assistant” now covers very different tools. Some suggest the next line as you type; some answer questions in a chat panel; others take a task, edit many files, run tests and open a pull request on their own. Knowing which kind you are using — and what the evidence says about each — helps teams get real productivity instead of new bugs.
Generation 1: inline completion
The first wave, popularized by GitHub Copilot, predicts the next lines of code from the file you are editing. It shines on boilerplate, repetitive patterns, tests that mirror existing ones and unfamiliar APIs. It is low-friction: you accept a suggestion with a keystroke or ignore it.
Limits: it sees limited context, can suggest outdated or insecure patterns, and makes it easy to accept code you have not read.
Generation 2: chat inside the editor
Chat assistants let developers ask questions about selected code, request explanations, generate functions from a description, write tests or refactor. Because they can be given more context — open files, error messages, documentation — they handle larger requests and are good for learning a codebase.
Limits: answers can be confidently wrong, and copying large generated blocks without review leads to subtle defects.
Generation 3: coding agents
Agents receive a task (“add pagination to the orders endpoint and update the tests”), explore the repository, edit several files, run commands and tests, and iterate until checks pass — sometimes in the background, producing a pull request for review. They change the developer’s role toward specifying work and reviewing results.
Limits: they can wander, make broad changes that are hard to review, and run commands that need careful permissions. They work best on well-defined tasks in codebases with good tests.
What the evidence says
- In a 2023 randomized experiment, developers with GitHub Copilot completed a well-defined task (an HTTP server in JavaScript) about 56% faster than a control group — see our case study.
- A 2025 randomized study by METR with experienced open-source developers working on their own large repositories found they took longer with early-2025 AI tools, even though they believed they were faster — a reminder that gains depend heavily on task and context.
- Developer surveys such as Stack Overflow’s annual survey show AI tools are now used by a large majority of developers, while trust in their accuracy remains mixed.
The pattern: big gains on common, well-specified tasks; smaller or negative effects on complex work in large, unfamiliar or highly specific codebases.
How to adopt them well
- Match the tool to the task. Completion for flow, chat for understanding, agents for well-scoped tickets.
- Keep tests strong. Tests are what make agent output verifiable.
- Review like a colleague’s code. Read every change; ask the assistant to explain anything unclear.
- Protect secrets and permissions. Limit what agents can run and access; never paste credentials into prompts.
- Measure. Track cycle time, review effort and defect rates before and after adoption, not just impressions.
- Keep learning. Juniors benefit most but should still understand the code they ship.
For day-to-day technique, see how to use AI coding assistants effectively.
Team checklist
Before rolling out coding assistants across a team, agree on approved tools and plans, rules for secrets and proprietary code, review expectations for AI-generated changes, and the metrics you will track.
What to watch next
- Coding agents that work in the background on multiple tasks.
- Benchmarks based on real repositories rather than isolated puzzles.
- Security tooling that checks AI-generated code automatically.
- Long-term studies of maintainability and skills.
Key takeaways
- Coding assistants range from inline completion to chat to autonomous agents.
- A 2023 experiment found a 56% speed-up on a well-defined task with Copilot.
- A 2025 study found experienced developers slower on their own complex repositories.
- Strong tests and careful review make AI-generated code safe to ship.
- Measure real outcomes instead of relying on how productive it feels.
Frequently asked questions
Which kind of coding assistant should I start with?
Inline completion and editor chat are the easiest starting points; add agents once your tests and review process are solid.
Is AI-generated code secure?
Not automatically. It can repeat insecure patterns, so review it and use security scanners as with any code.
Will coding agents replace developers?
They automate parts of the work, but specifying tasks, designing systems and reviewing changes still require developers.



