An agentic coding workflow is a way of building software in which an AI agent takes a goal, plans the steps, edits code and runs checks. Named engineers approve the plan and each change before it merges. At enterprise scale the workflow matters more than the tool. Review capacity, traceability and production risk set the real limit on how much agent output a team can absorb.
This article explains how such workflows are usually built, where they tend to fail, and how engineering leaders keep the gains once agents spread across many teams.
What an agentic coding workflow is

An agent differs from an assistant in that it pursues a goal rather than finishing a line. Cursor’s documentation describes three stages of agentic coding: tab completion for single edits, synchronous agents that hold more context, and autonomous agents that work on larger tasks for hours with less direction.
The agent receives a high-level task and breaks it into steps. It reads files, runs commands, edits code and reads the output of each action. When a check fails, it adjusts and tries again.
The workflow is everything around that loop. It covers who writes the task, who approves the plan, which checks run, who reviews the result and what record remains afterwards.
Software at enterprise SaaS companies is a living system with many dependants. A change that reaches production reaches many customers at once. That is why the surrounding workflow, and not the agent alone, determines whether the gains last.
How it differs from autocomplete and chat
Autocomplete works on the code visible in the editor. The developer stays at the keyboard and accepts or rejects each suggestion as it appears. Review is continuous and implicit.
Chat interfaces work from pasted snippets. The developer copies an answer back into the codebase and carries the integration risk personally.
An agent works inside the repository itself. Microsoft’s guide to agent-first development in VS Code describes the agent harness as giving the agent a view of the workspace, a terminal and editing capabilities. It also describes three modes: Ask for conversation only, Plan for outlining actions and waiting for approval, and Agent for full autonomy.
The shift in risk follows from that design. With autocomplete, a human reads every line as it appears. With an agent, a human reads a finished diff, often a large one, after the work is done.
Review therefore moves from continuous to batched. A workflow that does not account for this tends to produce approvals that are quick but not careful.
Stages the workflow covers across the lifecycle
Agents can add value at every stage of the software development lifecycle. Those stages are requirements analysis, architecture planning, code generation, testing and deployment.
In requirements and planning, an agent can read the existing code and propose an approach. Engineers then test that approach against what they know about the system and the customers.
In build, an agent drafts the change on a branch. The engineer who started the agent is the author of that change and answers for it.
In test, agents can propose and maintain tests. Whatever writes a change does not check it, so a separate reviewer or automated check carries that duty.
In deployment, each change is checked before merge and ships on its own. Releases and rollbacks remain decisions for named people.
The common practice across these stages is consistent. Agents advise and draft, automated checks enforce the rules, and people decide.
Planning before code
Most published agentic workflows begin with a plan rather than with code. Cursor describes a plan mode in which the developer reviews the approach before the agent writes code. The VS Code Plan mode likewise outlines actions and waits for approval.
The reason is cost. A wrong assumption caught in a plan costs a few minutes of reading. The same assumption caught in a large diff costs a rewrite, and in production it costs an incident.
A useful plan starts with the system as it exists. It names the files and services involved, the constraints that apply and what the change will not touch.
Teams that skip this stage often find that the agent solved a neighbouring problem. The code is tidy and the tests pass, but the change does not match what the product owner asked for.
Building in small, tested steps
Agents tend to perform best on bounded tasks. GitLab’s engineering handbook sets out five rules drawn from teams that shipped production code with agents. The first is a failing test before every feature.
The pattern is familiar from test-driven development. A test defines success, the agent writes enough code to pass it, and the next test extends the scope.
Small steps keep each diff readable. A reviewer can hold a few hundred lines in mind, but cannot do so with several thousand.
The same handbook advises fixing the environment rather than the prompt. When an agent makes a mistake, the lasting remedy is a new lint rule, test or document in the repository. That remedy then applies to every future run and every engineer.
Our article on AI branch strategy covers how agent-written code is usually kept on separate branches.
Checks that run in the delivery pipeline
A written instruction to an agent is a suggestion. A check in the delivery pipeline is a gate. The GitLab handbook puts the distinction directly: “If the agent can break a rule and still pass the pipeline, the rule doesn’t exist.”
The same handbook lists the kinds of checks teams encode:
- Structural tests that fail when one layer of the application imports from another it should not touch.
- Contract tests that validate request and response shapes against an API specification.
- A job that fails when the number of tests falls.
- Secret detection and dependency scanning that must pass before merge.
These items are parallel because each is a rule turned into an executable test. None depends on the author remembering it, and none cares whether a person or an agent wrote the change.
That last point matters for governance. Review that applies equally to hand-written and agent-written code avoids a two-tier system in which one kind of change escapes scrutiny.
Readers who want the detail can read about four CI controls for an AI governance framework. Another piece covers AI code guardrails in secure software delivery.
Review capacity becomes the constraint
When agents write more code, people have more to read. A 2026 arXiv paper, AI Writes Faster Than Humans Can Review, studied an enterprise “2x mandate” across 802 developers and 196,212 pull requests. The authors found the doubling target was reached only in the tenth month.
The same study found that review load per reviewer doubled. Automated review overtook human review in coverage within months, while revert rates and post-merge fixes stayed flat.
The authors caution that throughput is only a proxy for productivity. Rollout was not randomised, so the causal effect remains uncertain.
Spotify Engineering reported in June 2026 that pull request frequency rose 76% as most pull requests were authored by a developer working alongside an agent. The company describes the flip side as learning where human judgement applies. Safe changes can merge automatically, and review concentrates where it matters most.
For a head of engineering with a growing queue, the lesson is practical. Review capacity is planned alongside agent adoption, not discovered after the queue has grown.
Visibility into what agents did
An untraceable change at scale is costly. Risk and compliance reviewers need to see what ran, on whose instruction and who approved the result.
Pull request history may not show what an agent did before the diff appeared. It can be edited, and it rarely shows the agent’s actions before the diff appeared.
A workflow that writes this record automatically also helps in incident review. The team can trace a defect to the task, the plan and the approver without relying on memory.
Permissions form the other half of visibility. Scoped access limits what an agent can read and change, so its reach matches the task it was given.
Our piece on governance-first architecture for agentic AI discusses how such controls are placed in a design.
Preventing architecture drift
Architecture drift describes a codebase that gradually departs from its architecture because agent output is accepted on appearance. Each change looks reasonable alone. Together they erode conventions, duplicate logic and weaken boundaries.
The cause is rarely one bad change. It is the absence of a shared reference that agents and people must both meet.
GitLab’s handbook names the repository as the single source of truth. Architecture rules, conventions and decisions live in the repository as documents and tests, where an agent reads them on every run.
Structural tests then hold the line. If a layer should not import from another, a failing check says so, whatever the agent intended.
Approved plans add a second anchor. Large diffs are harder to review carefully.
Small changes, separate branches and a named author for each change keep drift visible. A team that reads every diff against a plan notices divergence early, while correction is still cheap.
Measuring speed and quality together
A workflow is judged on both delivery and reliability. Throughput alone can rise while quality quietly falls, or the reverse.
The 2026 arXiv preprint longitudinal study offers a model for how to read the data. It reports that pull request throughput rose about 12% when developers began using AI and reached 2x only after roughly nine months of accumulated use. It reads revert rates and post-merge fixes beside throughput.
The authors note that the merged-pull-request metric recorded the speedup but not the shift in who reviews the code. A team that tracks only merges would miss that change in workload.
A balanced set of measures usually pairs delivery indicators with reliability indicators. Lead time and merge frequency sit beside change failure, reverts and incident counts.
A baseline taken before agents arrive makes the later comparison meaningful. Without one, a team cannot say whether a faster queue reflects better work or looser review.
Our article on AI in DevOps looks at where such gains appear and where they break.
Where a harness fits
A harness is the working setup that puts an agentic lifecycle into daily use. It spans workflow, roles and handoffs, and the checks, approvals, records and measurement that follow. It runs in a team’s own repositories and pipelines.
The work starts with a fixed-price workshop that produces a blueprint and a baseline – the Agentic SDLC Blueprint. Leaders who want the wider reading first can use the agentic software development field guide.
FAQ
What is the difference between agentic coding and AI autocomplete?
Autocomplete suggests code from what is visible in the editor, one suggestion at a time. An agent takes a goal, plans steps, edits files and runs checks in the repository. Review moves from every line to a finished diff, which is why plans and pipeline checks matter more.
Does an agentic workflow need a different team structure?
Many teams adjust roles as engineers spend more time reviewing and directing than typing. Ownership, handoffs and reviewer capacity are the usual points of change. Our piece on team structures for agentic AI delivery covers the common patterns.
How do teams keep agents within agreed rules?
Rules are encoded as executable checks in the delivery pipeline rather than left as written instructions. Typical checks cover structure, contracts, secrets and dependencies. Access is scoped to the task, and each run leaves a record of who approved it.
Sources
- What is agentic coding? (Cursor)
- Introduction to agent-first development (Visual Studio Code)
- AI-Assisted Development Playbook (GitLab Handbook)
- AI Writes Faster Than Humans Can Review (arXiv, 2026)
- Coding Is No Longer the Constraint (Spotify Engineering, 2026)