Part I · The shift
Chapter 2
From autocomplete to agents
AI arrived in software development in three waves, each doing more of the work than the last.
| Autocomplete | Chat assistant | Agent | |
|---|---|---|---|
| Widely available from | 2021 | 2022 | 2024 and 2025 |
| You give it | The code you are typing | A question | A task |
| It gives back | The next line or block | An answer or a snippet | Finished work, ready to check |
| Who runs and fixes the result | You | You | The agent, until it succeeds or asks for help |
In June 2021, GitHub previewed Copilot, which suggested the next line of code as a developer typed. After ChatGPT launched in November 2022, developers began describing problems in plain language and getting back explanations and code, which they then copied, ran and fixed themselves.
An agent is different in kind. It is given a task, such as fix this bug or upgrade this library across the codebase, and works through it on its own: it reads the code it needs, makes a plan, edits files, runs commands and tests, reads the results, and tries again when something fails. It stops when the goal is met, when it runs out of attempts, or when it needs a person to decide. An assistant helps a person do the work. An agent does the work and hands it to a person to check.
The simplest way to see the difference is to compare an agent with an ordinary script:
| Script | Agent | |
|---|---|---|
| What it is | A sequence of steps | A sequence of decisions |
| Who decided what it does | The person who wrote it, in advance | The agent, at each step, based on what it just saw |
| Same task, run twice | Same result | Possibly a different result |
| When something unexpected happens | It stops or fails | It tries something else |
That third row matters most. An agent, like a person, may solve the same task two different ways on two different days. It is probabilistic, not fixed. That is what makes agents useful for work that cannot be scripted, and it is also why their work cannot be accepted just because the last run went well. Each result has to be checked on its own.
Adoption has followed the same order. In 2026, only 17% of developers said they used no AI tools at all, and 66% used coding assistants or coding agents. About a quarter ran automated agent workflows. At the companies furthest ahead the shift is already large: in April 2026, Google said 75% of its new code was generated by AI.
Agents are not yet the norm. But they change something the first two waves did not: who does each step of the lifecycle.