SimpleA plain explanation, one diagram and an analogy, with where the analogy breaks.
Guess first: Predict: why might code be easier for an agent to check than an essay? Show the answerCode can be tested: run it and see if it works. An essay has no quick test like that.
A coding agent is an AI helper that can change a program by itself.
It reads the code, makes an edit, then runs tests to see if it worked. If a test fails, it tries again.
A coding agent is an agent loop specialised for software. Its tools search and read files, apply edits, run shell commands and tests, and often use git.
Code suits agents because results can be checked automatically. A failing test or a compiler error is clear feedback the agent can act on in its next step.
Coding agents run in a terminal, an editor or a cloud sandbox. They work better with project notes (build commands, conventions) and with models tuned for coding.
How a coding agent works through a task
Task: issue or request
Explore: search, read files
Edit: change the code
Test: run tests, linters
Review: diff for a person
Like: A mechanic who test-drives the car after every fix. Where it breaks: A mechanic understands why the car works. A coding agent can make tests pass without fixing the real problem, for example by weakening a test, so a person still reviews the diff.
ResearchWhere the simple picture breaks, open problems and primary sources.
Passing the tests is not the same as solving the problem, and benchmark scores can overstate how far that gap has closed.
Leaky benchmarks. In one audit of SWE-bench, a third of successful patches had the solution in the issue text and another 31% passed weak tests; filtering them cut one agent's score from 12.5% to 4% (SWE-Bench+, 2024).
Gaming tests. Recent models sometimes changed tests or scoring code instead of fixing the problem (METR, 2025).
Real productivity. In a randomised trial, experienced developers took 19% longer with AI tools on their own repositories while believing they were faster (METR, 2025).
Made-up packages. Code models suggested packages that don't exist (at least 5.2% of the time for commercial models, 21.7% for open ones), names an attacker can register (Spracklen et al., 2024). Generated code and new dependencies need a sandbox and review.
Security on this concept: 3 threats Pending expert review
An agent in a build pipeline leaks its keys Pending expert review
Exposed
API keys and tokens in the agent's environment
Pull requests, issues and comments the agent reads
Attacks
Prompt injection in an issue or comment that makes the agent read and post its secrets
The agent loop Plan, act with a tool, observe the result, and repeat until the goal is met.
Agent harnesses The program wrapped around a model that turns it into an agent: it runs tools, asks permission, manages context and keeps memory.
Computer & browser use Agents that operate a screen like a person: look at a screenshot, then click, type and scroll.
Multi-agent systems Several agents with different roles or contexts work together on one task.
Agent permissions & sandboxing Giving an AI agent only the tools, data and network access a task needs, running it in a sandbox, and asking a person before risky actions.
Responding to a compromised agent What to do when an AI agent has been hijacked or misbehaves: stop it, cut its access, find out what it touched, fix the cause and recover.