Coding agent
An agent that reads a repository, edits files, runs commands and tests, and opens pull requests.
A coding agent is an AI agent that reads a repository, edits files, runs commands and tests, and opens pull requests. Claude Code, Codex, Cursor and similar tools work inside your codebase with your tools, in a loop of reading, changing and checking until the task is done.
They are fast at well-specified work and confident when wrong. The output is only as good as the tests, rules and review around it, which together form the agent harness: instructions in AGENTS.md or CLAUDE.md, hooks that enforce rules, a sandbox and permissions. Bigger tasks get split: a main agent hands research or review to subagents with a fresh context, and some tools run several agents as an agent team. Each extra agent adds token cost, so splitting pays off on broad tasks and wastes money on small ones.
The common mistake is to judge an agent by the demo and skip the verification. Tests that must pass before it says done and a second model reviewing the diff (adversarial review) catch many of the confident mistakes. When the agent runs unattended in the cloud, it becomes a background coding agent.
Related terms
- AGENTS.md and CLAUDE.md: Files in a repository with the rules a coding agent reads at the start of every session.
- Hooks: Scripts the harness runs automatically at fixed points, such as before a tool call or after an edit.
- Human in the loop: A person approves, edits or rejects the agent’s action before it takes effect.
- Background coding agent: A coding agent that runs in the cloud on its own, takes an issue or a task and comes back later with a pull request for review.
- Software factory (AI agents): A pipeline where agents write and fix most of the code while people write specs, set guardrails, design the checks and decide what ships.
- Adversarial review (cross-model review): Asking a second AI model, or a fresh agent, to find what is wrong with a change before a person reviews it, instead of asking the author to check itself.
- Agent harness (harness engineering): Everything around the model that makes it an agent: the loop, tools, permissions, instructions, saved state, checks and session handoff.
- Subagent: A separate agent run with its own fresh context, started by a main agent for one subtask.
- Plan mode: A coding agent mode in which it can read code and run safe commands but not edit files, and ends with a plan for you to approve.
- Agent permission modes (YOLO mode): Settings that decide what a coding agent may do without asking, from approving every command to skipping all checks, known as YOLO mode.
- Parallel agents (git worktrees): Running several coding agents at the same time on one repository, each in its own git worktree and branch, so their edits do not collide.
- Agent-ready codebase: A repository a coding agent can work in reliably: one fast command to check everything, types, clear module borders, examples to copy and written rules.
- Agentic engineering: Professional software work in which coding agents write most of the code while engineers own the specs, the checks, the review and the result.
