AI Coding Agents: From Copilots to Autonomous Software Engineering

On this page
AI coding agents are AI systems that take a software task — a bug, a feature, a failing test — and work through a codebase with growing independence: reading files, planning, editing code, running tests and proposing a pull request for a person to review. They've moved from autocomplete to repository-level work.
This is the anchor guide for the AI and knowledge work series on this site. It explains how coding agents work, what they can do — repository-level changes, debugging, testing and code review — what the evidence says about productivity and security, the main tools, the risks, and a practical way to adopt them.
Key takeaways
- Coding AI has climbed a ladder. From autocomplete, to chat, to agents that change whole repositories, to several agents working in the background at once.
- Use is high; trust is low. In Stack Overflow's 2025 survey, 84% of developers used or planned to use AI tools, but 46% distrusted their accuracy and only about 14% used agents daily.
- Productivity evidence is mixed. METR's randomised study found experienced developers 19% slower with early-2025 tools — while believing they were faster. Newer tools likely help more, but measuring it is hard.
- Security hasn't caught up. Around 45% of AI-generated code samples contained known security flaws in Veracode's testing, a rate flat since 2024.
- Review and tests are the control. Agents that propose changes through pull requests, gated by tests, scanning and human review, capture the speed without shipping the risk.
What is an AI coding agent?
An AI coding agent is an AI system that completes software tasks by acting on a codebase: it reads and searches the code, plans a change, edits files, runs commands and tests, and iterates until the task is done or it needs help. The key difference from earlier AI coding tools is that it works at the level of the task and the repository, not the line you're typing.
Definition
An AI coding agent is a language-model-based system with access to a code repository and developer tools — editor, terminal, test runner, version control — that can carry out multi-step software tasks and return a reviewable change. Autonomous software engineering describes agents doing more of that work end to end, with humans setting goals and reviewing results.
Coding AI has moved through five stages, and most teams now use several at once:
| Stage | What the AI does | What the developer does |
|---|---|---|
| Autocomplete | Suggests the next lines as you type | Writes the code, accepts or rejects suggestions |
| Chat assistant | Explains code, drafts snippets on request | Copies, adapts and integrates |
| IDE agent | Edits multiple files, runs commands and tests in your workspace | Directs the task, approves changes |
| Background agent | Takes a ticket, works on a branch in its own environment, opens a pull request | Reviews and merges |
| Multi-agent | Several agents split a larger task and coordinate | Sets goals, reviews, integrates |
How do AI coding agents work?
AI coding agents work in a loop: understand the task, explore the repository, plan and make changes, verify them by running tests and tools, then hand back a change for review. Each pass through the loop uses what the last one revealed, which is why tests are so central — they tell the agent whether it's done.
How a coding agent handles a ticket
- 01Understand
- Issue or prompt
- Project instructions
- Acceptance criteria
Clear tasks get better results
- 02Explore
- Search the codebase
- Read related files
- Check history
Context before changes
- 03Change
- Plan
- Edit several files
- Add tests
On a branch, never on main
- 04Verify
- Run tests
- Linters
- Build
Loops back until checks pass
- 05Hand over
- Pull request
- Summary of changes
- Open questions
A person reviews and merges
Two ingredients make the difference in practice. The first is project instructions: a file in the repository, such as an AGENTS.md or CLAUDE.md, that tells agents the conventions, commands and rules of the project — this site's own codebase keeps one for exactly that reason. The second is tools: the more an agent can check for itself — tests, type checks, linters, a running preview — the less it relies on guessing.
What can AI coding agents do?
AI coding agents can do four kinds of software work reliably enough to matter today: repository-level changes, debugging, testing and code review. They're strongest where the task is well defined and success can be checked automatically.
Repository-level work
Agents can make coordinated changes across many files: adding a feature that follows existing patterns, renaming and refactoring, upgrading a dependency and fixing what breaks, or migrating code from one framework version to another. GitHub describes its Copilot cloud agent as able to research a repository, create an implementation plan and make changes on a branch, running tests and linters in its own environment.
Debugging
Given an error message, a failing test or a clear bug report, an agent can trace the problem through the codebase, form a hypothesis, test it and propose a fix. The better the reproduction, the better the result. Vague reports — "it's slow sometimes" — still need a human to narrow down.
Testing
Writing tests is one of the best early uses: it's valuable, often neglected, and easy to verify. Agents can write tests for untested code, reproduce a bug as a failing test before fixing it, and repair tests broken by legitimate changes. A good rule is that an agent's change isn't complete until it's covered by a test that would fail without it.
Code review
Agents make useful first reviewers: flagging likely bugs, missing tests, inconsistent patterns and some security issues before a human looks. They don't replace human review — they change what humans spend review time on, from typos and patterns to design and intent.
Common misconception
"If the benchmark says it solves most issues, it'll solve most of ours." Benchmarks such as SWE-bench Verified — 500 real-world software issues screened by human annotators — are useful for comparing models, but they're curated tasks with clear tests. Your repository has its own history, conventions and ambiguous tickets. Pilot on your own backlog before drawing conclusions.
Which AI coding agents are available?
The main AI coding agents in 2026 come from the major AI labs and developer platforms, and most offer both an interactive mode in the editor or terminal and a background mode that works on its own and returns a pull request. The field changes monthly, so treat this as a snapshot.
| Agent | Where it works | What it does | Human control |
|---|---|---|---|
| GitHub Copilot cloud agent | Inside GitHub, in a GitHub Actions environment | Researches the repository, plans, changes code on a branch, runs tests and linters | You review the diff and decide whether to open a pull request; limited to one repository and one branch per task |
| Claude Code (Anthropic) | Terminal, IDE, desktop app and web | Reads the codebase, edits files, runs commands, creates commits and pull requests; can run several agents in parallel | Project instructions, configurable permissions and hooks |
| Codex (OpenAI) | In ChatGPT and on your computer | Explores code, builds features, reviews code and suggests changes, fixes failures | Configurable permissions |
What does the evidence say about coding agents?
The evidence says coding agents are widely used, less trusted, capable on well-defined tasks, and still unreliable on security — and that productivity gains are real in some settings and overstated in others.
- Adoption. In Stack Overflow's 2025 survey, answered on its AI questions by more than 33,000 developers, 84% were using or planning to use AI tools and 51% of professional developers used them daily. Agents were less common: about 14% of respondents used them daily, and 38% had no plans to adopt them.
- Trust. 46% of developers actively distrusted the accuracy of AI tools, against 33% who trusted it, and only 3% highly trusted the output. The most common frustration, cited by 66%, was AI solutions that are almost right but not quite; 45% said debugging AI-generated code took more time.
- Productivity. METR's randomised study of 16 experienced open-source developers working on 246 real issues found they took 19% longer when allowed to use AI tools — although they expected a 24% speedup and afterwards believed they had been 20% faster. In February 2026, METR said developers are likely sped up more by newer tools, but that selection effects — developers unwilling to work without AI — and parallel agents make it hard to measure reliably.
- Security. Veracode's testing of more than 150 models found security pass rates stuck at about 55% since 2024: roughly 45% of AI-generated code samples contained known vulnerabilities when no security guidance was given, even though syntax correctness now exceeds 95%. Reasoning-focused models did better, at about 70–72%.
What this means
Put together, the evidence says the bottleneck has moved. Writing code is getting cheap; knowing what to build, checking that it's right and keeping it secure are not. Teams that get value from coding agents invest in the things that verify code — tests, reviews, scanning — as much as in the agents that write it. The same measurement problem runs through every AI programme, as the guide to enterprise AI ROI explains.
What are the risks of AI coding agents?
The main risks are insecure or subtly wrong code, over-trust by reviewers, agents with too much access, and agents being manipulated through the content they read.
- Insecure code. Without explicit security guidance and scanning, a large share of generated code contains known vulnerability patterns.
- Almost-right code. Code that passes a quick look but fails at the edges is the most common frustration developers report — and the hardest to catch in review.
- Over-trust. When the agent is usually right, reviewers skim. Keep review meaningful for changes that matter.
- Excessive access. An agent with write access to production, secrets or deployment can do real damage by mistake. OWASP's Top 10 for Agentic Applications lists identity and privilege abuse among the top risks.
- Manipulation. Agents read issues, documents and web pages. OWASP ranks agent goal hijacking — malicious content redirecting what the agent does — as the leading agentic risk.
- Dependencies. Agents add packages quickly. Every new dependency should pass the same checks as one a person added.
How should a company adopt AI coding agents?
A company should adopt AI coding agents in steps: start with low-risk, testable work, give agents clear instructions and narrow permissions, route every change through pull requests with automated checks and human review, and measure outcomes rather than activity.
- Start where verification is easy. Tests, documentation, small bug fixes and dependency updates.
- Write project instructions. Conventions, commands, architecture notes and rules in a file agents read at the start of every session.
- Keep agents on branches. Changes arrive as pull requests; nothing merges without review.
- Automate the checks. Tests, type checks, linting, security scanning and dependency checks run on every agent change.
- Limit access. No production credentials, no secrets in reach, scoped tokens, and separate identities for agents.
- Match autonomy to risk. Read-only for exploration, pull-request-only for changes, and wider autonomy only in sandboxes — the tiering covered in AI governance.
- Measure outcomes. Cycle time, change failure rate, review load and escaped defects, compared with a baseline — not lines of code or tickets closed.
Expert takeaway
Treat a coding agent like a capable new hire on day one: clear instructions, a small first task, no production keys, and a reviewer who checks the work. Widen its scope as it earns trust — and write down what it's allowed to touch.
What do coding agents mean for businesses beyond tech companies?
For businesses outside the software industry, coding agents lower the cost of the small internal tools, integrations and website changes that used to wait for a developer. A marketing team can prototype a landing page, an operations team can connect a CRM to WhatsApp, and a founder can automate a report — as long as someone accountable reviews what ships.
The same agent principles apply beyond code: clear goals, narrow permissions, human checkpoints and measured outcomes. For the bigger picture of agents in business, see agentic AI explained and AI agents for business.
Final takeaway
AI coding agents have moved from suggesting lines to delivering changes across whole repositories, and they're genuinely useful for well-defined, testable work. The evidence is sobering on trust, productivity claims and security, which is why the teams that benefit invest in verification as much as generation. Start small, keep agents on pull requests behind tests, scanning and review, limit their access, and let autonomy grow only as fast as your checks.
AI strategy
Working out where AI fits in your business?
I help teams separate the use cases worth automating from the ones that only demo well — then build the workflow, the integrations and the guardrails.
Sources
Primary sources checked for this article. Figures reflect the dates shown.
- 2025 Stack Overflow Developer Survey — AI — Stack Overflow, January 1, 2025
- Measuring the Impact of Early-2025 AI on Experienced Open-Source Developer Productivity — METR, July 10, 2025
- We are Changing our Developer Productivity Experiment Design — METR, February 24, 2026
- Spring 2026 GenAI Code Security Update — Veracode, March 24, 2026
- 2025 GenAI Code Security Report — Veracode, January 1, 2025
- Introducing SWE-bench Verified — OpenAI, August 13, 2024
- About Copilot cloud agent — GitHub Docs
- Claude Code overview — Anthropic
- ChatGPT and Codex documentation — OpenAI
- OWASP Top 10 for Agentic Applications for 2026 — OWASP GenAI Security Project, December 9, 2025


