HomeBook › Coding Agents for Business and Technical Leaders
Chapter 15

Coding Agents for Business and Technical Leaders

From GenAI for Business (2026 Third Edition) by Shubin Yu · Open in the interactive reader · Download the full PDF

Learning Objectives

After this chapter, you should be able to:

Chapter 7 introduced coding agents as the killer category of agentic AI, and Chapter 14 assumed you would use one to build a prototype in days. This chapter slows down and looks at them properly, because coding agents are the first place where a whole profession is being reorganized around AI that does the work rather than AI that suggests it. What is happening in software engineering in 2026 is a preview of what will happen in finance, law, research, and operations over the next few years. Learn the pattern here, where the evidence is richest, and you will recognize it everywhere else. The overall framing is simple to state and hard to practice: humans define goals, constraints, architecture, and accountability, while agents execute, test, iterate, and report back within governed loops.

15.1 From Copilots to Coding Agents

The first wave of AI for programmers arrived in 2021 as autocomplete. GitHub Copilot watched what a developer was typing and proposed the next few lines, the way a phone proposes the next word. It was useful, it was popular, and it changed nothing about who was responsible for the code: the developer still wrote every function, accepted or rejected every suggestion, and ran every test. The second wave, from 2023, was the chat assistant. Developers pasted code into ChatGPT or Claude, asked questions, and pasted the answers back. This was pair programming with a well-read colleague who could not see your screen. The assistant could explain, draft, and debug, but it could not open a file, run a command, or find out whether its answer actually worked.

The third wave, which became mainstream in 2025 and is the subject of this chapter, is the coding agent. A coding agent is given a goal rather than a line to complete, and it has hands: it reads the repository, edits files, runs the build, executes the test suite, reads the failures, and tries again, for minutes or hours, until the goal is met or it gives up and reports. The developer's role moves from typing to specifying, reviewing, and deciding. That shift in who does what is the entire difference between a copilot and an agent, and it is why the three waves deserve different names even though vendors use them interchangeably. Completion predicts; assistance advises; agency acts.

The tools that define the agentic wave in 2026 are Anthropic's Claude Code, OpenAI's Codex, the open-source OpenCode, Google's Antigravity, xAI's Grok Build (built on its Grok Code models), Moonshot's Kimi Code, and IBM's Bob for enterprise modernization, while Cursor and Windsurf evolved from AI-native editors into agentic environments and GitHub Copilot grew its own agent mode. They differ in interface, model, and pricing, but they share one anatomy, and Chapter 16 shows that anatomy is learnable in an afternoon and transferable across all of them. Learning one well is the fastest path to understanding the category, which is why this book pairs the present chapter with a hands-on tool chapter.

15.2 What Coding Agents Can Actually Do

Strip away the marketing and a coding agent does four kinds of work. It reads and modifies codebases, which sounds mundane until you realize that a repository of a million lines is now navigable by an agent that can locate the three files relevant to a change in seconds. It generates features from natural-language requirements: a product manager's description of a new export button becomes a working implementation with its tests, in a branch, ready for review. It runs tests and fixes failures, which is where agency matters most, because the loop of running, reading the error, and trying again is what previously consumed a developer's afternoon. And it takes on the unglamorous majority of software work, refactoring, documentation, dependency upgrades, framework migrations, debugging, and maintenance, the work that every engineering leader knows is necessary and never gets scheduled.

The honest version of the capability story distinguishes greenfield from brownfield, a distinction Chapter 7 introduced and worth restating here from the leader's chair. On a greenfield project, a new service or a prototype with no history, a coding agent is startlingly capable: it can produce a working application from a page of requirements in an hour, and the results are good enough that executives now build their own prototypes rather than wait for a sprint. On a brownfield system, the twenty-year-old order-management platform with undocumented dependencies and load-bearing quirks, the agent is capable but dangerous, because it cannot read the constraints that never made it into the code. The practical rule I give leaders is to let agents run freely where the blast radius is small and the tests are strong, and to supervise closely where the system is old, the tests are thin, and the consequences of a plausible-but-wrong change reach customers.

One more capability deserves attention because it is the one non-engineers use most. Because coding agents operate a real computer, they are general-purpose workbenches: they analyze spreadsheets, reorganize document archives, draft reports from data, and build the small internal tools this book keeps recommending. The word "coding" in their name describes their first users, not their limits. For a business leader, the most valuable use of a coding agent this year may have nothing to do with software at all.

15.3 The Architecture Behind Coding Agents

Chapter 3 laid out the engineering stack from prompt to graph, and a coding agent is that stack packaged as a product. At the bottom is prompt engineering: the instruction you give. Around it sits context engineering: what the agent can see, including the repository, the project's instruction file, the relevant documentation, and the output of the commands it just ran. Around that sits harness engineering: the runtime that gives the agent its tools and enforces its limits. Vendors compete mostly on the harness, which is why two products using the same underlying model can feel completely different to use. A good harness makes the agent reliable; a poor one makes a brilliant model flail.

The tools an agent can reach define what it can do. A modern coding agent has access to the file system, a terminal for running commands, a test runner, often a browser for checking a web interface or reading documentation, and any external API exposed to it. The Model Context Protocol (MCP), discussed in Chapter 7, is how those external connections are standardized: an MCP server for your ticketing system or data warehouse lets the agent read a bug report and query production metrics without custom integration work. Connectors of this kind are what turn a coding tool into a business tool, and they are also where governance decisions live, because every connector is a door.

The heart of the architecture is the loop. The agent plans a sequence of steps toward the goal, acts on the first step, observes the result, verifies it against some criterion, usually the tests, and retries when verification fails. The loop is what distinguishes an agent from an assistant, and its quality is what distinguishes a good agent from a bad one. Around the loop sit the safety mechanisms leaders should recognize by name. A sandbox isolates the agent's execution so a mistake cannot reach production. A work tree gives the agent its own copy of the repository so several agents, or an agent and a human, can work in parallel without colliding. A permission system decides which actions the agent may take on its own and which require a human's approval, and the best tools expose that as a dial the user can set for each task. Ask any vendor to describe these four elements, and you will learn more than from any demo.

15.4 Loop Engineering for Software Work

The practitioners at the frontier, quoted in Chapter 3, no longer prompt their agents; they design loops that prompt their agents. In software this is concrete. Instead of asking an agent once to fix a bug, an engineering team defines a workflow: every night, collect the failing tests from the continuous-integration system, hand each one to an agent with the instruction to diagnose and propose a fix, run the full suite on the proposal, and open a pull request only for fixes that pass. Nobody prompts anything. The loop runs, and humans review the output in the morning. The same pattern covers dependency updates, where an agent bumps a library version, runs the tests, and reads the changelog when they fail, and bug triage, where an agent reproduces each new report, classifies it, and attaches the relevant code before a human ever reads it.

Loops need three things a one-off prompt does not. They need success criteria that a machine can check: passing tests, a clean linter, an acceptance checklist, a reviewer's rubric. If "done" cannot be verified automatically, the loop cannot know when to stop, and it will either stop too early or grind forever. They need independent verification, which increasingly means a second agent whose only job is to review the first agent's work against the criteria, with no stake in declaring success; reviewer agents catch a surprising share of the errors that the working agent talks itself into. And they need stopping rules, because an agent that cannot solve a problem will otherwise try until the budget is gone. Sensible rules cap wall-clock time, cost in tokens, and number of attempts, and they detect the absence of progress, the agent making the same change for the fourth time, and escalate to a human instead of continuing.

For a leader, the shift from prompting to loop design changes what you should ask a team to build. The deliverable is no longer "use AI to fix bugs faster" but "a nightly triage loop with these criteria, these stopping rules, and this review step." Loops are auditable, improvable, and measurable in a way that individual prompting sessions never are, and they are where the durable productivity gains of coding agents actually appear.

15.5 Managing Quality and Technical Debt

Coding agents accelerate whatever an organization already does. If it writes tests, reviews carefully, and keeps its architecture coherent, agents make it faster at all three. If it cuts corners, agents cut them at machine speed. This is why the productivity story and the technical-debt story from Chapter 7 are the same story told from two ends. The failure modes are well documented by now: duplicated logic, because an agent that does not know a helper exists writes another one; shallow fixes that make the failing test pass without addressing the cause; insecure code that follows a common pattern from the training data rather than the organization's security policy; and architectural drift, where a hundred locally reasonable changes add up to a system nobody designed. None of these is new. What is new is the rate at which they can accumulate.

The answer is not to slow the agents down but to make the gates they pass through stronger. Tests remain the first gate, and organizations that adopt coding agents quickly discover that their test coverage is the real constraint on how much autonomy they can grant. Static analysis and security scanning form the second gate, run automatically on every agent-generated change. Human approval is the third, and it should be reserved for what humans are uniquely good at: judging whether a change fits the architecture, whether it touches something load-bearing, and whether the agent has solved the right problem. Code review of agent-generated work therefore changes character. Reviewers should read the agent's plan and its summary of what it verified, not only the diff, and they should treat a suspiciously easy fix to a hard problem as a red flag rather than a gift.

The mental model that works best in practice is to treat coding agents as talented, tireless junior developers under senior supervision. A junior developer is given clear tasks, expected to run the tests, reviewed before merging, and trusted with more as they earn it. That is exactly the operating model for agents, with the difference that an agent's "seniority" is set by the permission dial and the strength of the gates rather than by years of experience. Organizations that try to skip the supervision, on the theory that the model is smart enough, learn the same lesson that every engineering manager learns with a brilliant new hire.

15.6 Business Value and Productivity

Where do coding agents create measurable value? The clearest case is prototyping and product discovery: a working prototype in a day, built by the person who understands the customer, replaces weeks of specification and negotiation over scarce engineering time, and it changes what gets built because ideas can be tested before they are argued about. The second clear case is the maintenance and migration backlog, the framework upgrades, language migrations, and documentation debt that every organization defers because they are necessary and dull. Agents are well suited to this work because the goal is precise and verification is mechanical, and several enterprises have reported migration projects estimated in team-years completed in weeks. The third case is throughput on well-tested codebases, where agents handle the routine features and developers concentrate on the difficult ones.

The evidence deserves honesty rather than enthusiasm. The controlled studies of AI coding assistance, discussed in Chapter 2, show large speed gains on well-defined tasks and smaller or even negative effects when experienced developers work on complex, familiar systems; a widely cited 2025 field study found experienced open-source developers slower with AI tools while believing themselves faster. For autonomous agents specifically, rigorous evidence is still thin and vendor-reported figures dominate. Two cautions follow. Individual developer productivity is not the same as system-level delivery speed, because a team that writes code twice as fast but reviews and tests at the old pace simply moves the bottleneck. And speed claims that ignore quality are incomplete, because defects found later cost more than the time saved earlier.

The right way to measure value, then, is at the level of the delivery system: cycle time from request to production, defect rate after release, review burden per change, and the share of the backlog that is actually being retired. Those are the numbers a board should ask for, and they are the numbers that distinguish organizations capturing value from organizations generating activity. Where the productivity claims remain uncertain, say so in the business case, and design the pilot to resolve the uncertainty rather than to confirm the hope.

15.7 Governance, Risk, and Controls

An agent that can read files, run commands, and call APIs is a new kind of actor in your systems, and it should be governed as one. The first question is permissions: what may the agent read, write, run, and deploy, and in which environments? Sensible defaults are read access to the repository, write access only within a sandboxed work tree, execution limited to build and test commands, and no deployment authority at all without a human's explicit approval. Every widening of those defaults should be a decision someone made, recorded, and can revisit. The permission modes built into the major tools, from plan-only through approval-required to full access, are the practical instrument for this, and a team's policy can be as simple as which mode is allowed for which kind of task.

The second question is where humans sit in the loop. Human checkpoints belong at the points of irreversibility: before a change is merged, before it is deployed, before an agent sends anything outside the organization, and before it touches production data. Everywhere else, requiring approval for each step destroys the value of the agent without adding safety, because reviewers approving their fortieth routine action of the day are no longer reviewing. Governance design is largely the art of putting the few checkpoints where they matter and removing the many that do not.

The third question is traceability. Every agent action should leave a trail: what it was asked, what it planned, what it ran, what it changed, and what it verified. The better tools keep full transcripts, and those transcripts are the audit record when something goes wrong and the training material when something goes right. Beyond operational controls sit the concerns your legal and security teams will raise first: intellectual property in generated code and in the code the agent reads, secrets and credentials that must never reach a model provider, data-governance rules about which repositories may leave the building, and regulatory obligations in sectors where software changes require documented review. None of these prohibits coding agents. All of them shape how they are deployed, and Chapter 13's governance framework applies to agents exactly as it applies to any other AI system.

15.8 Organizational Adoption

When agents write more of the code, the developer's job changes shape. Less of the day is typing and more of it is specifying, decomposing work into agent-sized tasks, reviewing, and deciding. Junior developers are affected most, because the routine tasks on which they used to learn are the tasks agents now do, and organizations will have to design deliberate paths for building judgment that the old apprenticeship provided for free. Senior engineers and architects gain responsibility rather than losing it: someone must own the architecture that agents drift from, define the quality gates, and decide what autonomy to grant. Engineering managers find themselves managing a hybrid workforce, with agents that need clear instructions, strong tests, and review, which is to say the same things good managers always provided.

The outsourcing and offshoring model built over three decades on labor-cost arbitrage for well-specified work is directly exposed, because well-specified work is precisely what agents do best. The winners among service providers will be the ones that move up the stack, selling the specification, architecture, verification, and accountability that agents cannot supply, and the ones that reprice for outcomes rather than hours. Buyers should expect this shift and negotiate for it: a contract that pays for developer-hours in 2026 is paying for the wrong unit.

Adoption also reaches beyond engineering. Non-developers can now prototype safely, provided the organization gives them a sandbox, a clear boundary around what may be connected to real systems, and a route to hand a promising prototype to engineering rather than running it in production by accident. The software development lifecycle needs updating so that agent-generated contributions are labeled, reviewed against the gates in Section 15.5, and traceable to the human who directed them. And the organizational assets that make agents effective, the project instruction files, the reusable skills, the internal playbooks for common tasks, should be built deliberately and shared, because they are where an organization's accumulated judgment becomes something an agent can use. The team that writes down how it likes things done is the team whose agents do things that way.

15.9 A Hands-On Demonstration

Nothing in this chapter will feel real until you have watched an agent work, so the demonstration I run with executives takes about an hour and uses any of the tools in Chapter 16. Start with a small codebase, a few thousand lines is plenty, and ask the agent to inspect it and explain what it does, how it is organized, and where it looks fragile. The quality of that explanation is your first data point: the agent has read in two minutes what would take a new hire two days, and you can judge its accuracy against someone who knows the code. Then ask it, in plan mode, to propose how it would implement a small feature. Read the plan. This is the step executives most often skip and most need, because the plan reveals whether the agent understood the request and whether it noticed the constraints you care about.

Approve the plan and let it build. Watch it edit files, run the tests, encounter a failure, and fix it, and notice how the loop from Section 15.4 plays out in front of you. When it reports completion, review the result the way Section 15.5 recommends: read its summary of what it verified, then read the diff, then ask it to explain any change you do not understand. Finally, ask yourself where human judgment was required. In every session I have run, the answers are the same: judgment was needed to specify the goal well, to catch the case the agent's tests did not cover, to notice a change that was correct but inconsistent with how the rest of the system works, and to decide whether the result was good enough to ship. Those four judgments are the human job in the new division of labor, and an hour with an agent teaches them better than any chapter.

15.10 A Strategic Roadmap

Choosing tools comes first and matters least. The category is competitive, the anatomy is shared, and the connective standards, MCP servers, instruction files, and skills, make switching cheap; Chapter 16 walks through the main options, from Claude Code, Codex, and OpenCode to Antigravity, Grok Build, Kimi Code, IBM Bob, and MimiWork. Choose on the basis of your model policy, whether the tool can run against the models your data-governance rules allow, including open-weight models you host yourself, and on the strength of its permission and audit features, then let teams try two or three. Do not let tool selection become the pilot; it is a precondition for one.

Pilot design follows the discipline of Chapters 10 and 14. Pick workflows that are safe and high-value: internal tools, test writing, documentation, dependency updates, and greenfield prototypes are safe; customer-facing production changes in legacy systems are not. Write the pilot charter, with a baseline, a metric, and kill criteria, before anyone installs anything. Measure at the system level, with cycle time, defect rate after release, review burden, and developer satisfaction, and be as willing to report that agents slowed a team down as that they sped it up, because the honest report is the one that gets the next budget. Then scale in stages, from individuals using agents interactively, to teams running shared loops with shared instruction files and skills, to enterprise workflows where agents operate on a schedule under governance that a risk committee has seen and approved.

The horizon to prepare for is multi-agent software development, in which a planning agent decomposes work, several implementing agents execute in parallel work trees, reviewer agents verify, and humans direct and decide. That is not science fiction; it is how the leading engineering organizations already run their agent fleets in 2026, and the vendors are building it into their products. The organizations ready for it are the ones that have done the unglamorous preparation: strong tests, clear architecture, written-down conventions, and a governance model that grants autonomy in proportion to evidence. Everything in this chapter reduces to that preparation, and to the framing with which it began. Humans set the goals, the constraints, the architecture, and the accountability; agents execute, test, iterate, and report; and the loop between them is governed. Software is simply the first knowledge profession to be rebuilt around that pattern. Yours is next.

Discussion Questions

  1. Where in your organization's software estate is the blast radius small and the tests strong enough to let a coding agent run with minimal supervision, and where would you refuse to let one near?
  2. Design one nightly loop (bug triage, test-failure diagnosis, or dependency updates) for your team. What are its success criteria, its stopping rules, and its human checkpoint?
  3. If agents write half of your code within two years, what changes in how you hire junior developers, contract with outsourcing partners, and measure engineering productivity?
This chapter is part of GenAI for Business, free to read in full. Continue with the next chapter, browse the glossary, or use the free templates it references.
Working Like a Forward Deployed EngineerAgentic Tools for Your Work