AI SDLC: When Agents Write the Code, Engineers BUILD


Nov 14, 2026 · @Kumar Gaurav

Writing code is no longer the slow part of building software. Deciding what to build, proving it works, and owning what ships now is. Most enterprises have bought the tools for the first part and have not yet rebuilt themselves for the second.

Think about it. For forty years the SDLC was designed around one scarce resource: a skilled person typing correct code. Every ceremony we have sprint planning, story points, code review, QA handoffs, the ratio of seniors to juniors exists to ration that resource. Agents have made that resource cheap almost overnight. When the scarce thing stops being scarce, the whole system built around it has to move.

That is the real story of AI-driven SDLC. Not “AI writes code”. It is how we organise engineering that has changed, and the organisations that redesign around the new bottleneck will be the winners.

This is not written from the sidelines. I have been building an end-to-end AI SDLC for an ATM services company - a regulated, legacy-heavy business. The case study near the end shows what we built, which architecture it maps to, and what went wrong along the way.

Some Stats to Understand AI SDLC – What the Numbers Actually Say

Adoption is close to universal, but the productivity gain at the organisation level is small and uneven.

Signal What the Data Shows
Agent use 90% of 15,000+ professional developers used AI coding agents at work at least weekly
Org adoption 76.6% of organisations actively use AI in development, 20.4% more are evaluating
Share of code Developers using AI to write half or more of their code went from 12% to 42% in a year
Org-level gain Productivity gains have plateaued around 10%, even with 93% of 121,000 developers using AI
Delivery stability Higher AI adoption correlates with increased throughput along with more delivery instability
Perception gap Experienced devs on mature repos were 19% slower with AI, while believing they were 20% faster

Note – These metrics are compiled from various public sources and are subject to change over time.

The takeaway: While individual developers might work faster, the time saved often leaks into more rounds of review, rework, integration challenges, and incident management. Code has become inexpensive; everything around it has not.

Types of Enterprises: Who Starts from Where

How fast an enterprise can transition to an AI SDLC depends less on its AI budget and more on legacy systems, regulatory constraints, platform maturity, and revenue models. Here are five archetypes:

Type Examples What Holds Them Back Where They Should Start
Frontier builders OpenAI, Anthropic Minimal resistance; they build innovative tools and redesign around them as they go They show the ceiling, not your path. Emulate their review and platform habits rather than direct replication
Digital natives Meta, Spotify, Shopify, product startups Challenges in review capacity and cultural adjustments once code volume increases Integrate agents within existing platforms (CI, monorepo, developer portal) with automated review processes
Regulated incumbents Banks, insurers, telcos, healthcare (Goldman Sachs) Stringent audit requirements, model risk management, data residency, and separation of duties Adopt a hybrid approach: leverage agents for routine tasks and enforce strict human oversight
Legacy-heavy enterprises Manufacturing, retail, airlines, public sector Outdated codebases, packaged ERP solutions, thin test coverage, and institutional knowledge gaps Prioritise documentation and incremental modernisation, underpinned by AI interventions
Services and SI firms IT services, consultancies, digital agencies Business models based on effort rather than outcomes Package the AI SDLC as a product and transition towards outcome-based pricing

The Legacy Row Matters Most

One important nuance. And a real one. Hardly any large company fits neatly into one type.
A bank might have a digital-native mobile team alongside a COBOL core.
A retailer could combine a modern e-commerce system with a decades-old warehouse backend.
The key is to classify by value stream not by the company as a whole.
A workable AI SDLC strategy might display two or three distinct speeds within the same organisation.

Types of AI SDLCs: From Assistant to Dark Factory

The central question in any AI SDLC is: Who writes the code, and who verifies it? I categorise them into four practical types:

Type Shapiro Level Who Writes the Code Who Checks It Process Changes Agent Pattern Underneath
1. AI-assisted 0 to 1 Human, with autocomplete and chat Human Traditional process with minimal changes Single model calls
2. Agent-augmented 2 to 3 Agent, task by task, in the IDE Human reviews every diff Slight process modifications where agents augment traditional coding Agent loop with human oversight
3. Spec-driven (AI-native) 4 Agent, generating from comprehensive specs Automated tests plus human validation Processes are re-engineered to adopt AI-generated specs as the new foundation Workflows and graphs with human gates
4. Autonomous (Dark Factory) 5 Agent exclusively Automated verification only Fully automated systems with strict human checkpoints at critical junctures Loop with deterministic verification

Type 2 is where most teams are stuck. Most developers who call themselves AI-native are at Level 2 The agent writes code, but the process around it was built for humans.

Type 3 is where the process itself gets redesigned It runs in three phases (Inception, Construction, Operation), AI proposes plans and asks clarifying questions, and humans make the critical calls.

Type 4 exists, but in narrow places The repository is just three markdown spec files, and the two founding rules are that humans neither write nor review the code. It works because they test against simulated copies of every external service they depend on.

The way to think about it: autonomy is gated by verification, not by model intelligence.

Here is what that looks like in practice. In the ATM services build later in this article which is my lived experience, the same model powers every agent stage. The PR review and fix loop runs on its own today, because it has something concrete to check against: coding standards, accessibility rules and the story’s acceptance criteria. The test-and-fix loop uses the same model and is still a demo, for one reason only: its verifier, Playwright tests running in the real environment, is not live yet. Same intelligence, different autonomy. The only thing that changed was verification.

** Putting the two sections together, this is how I would set realistic targets:**

Enterprise type Realistic now Target in 12 to 18 months
Digital natives Type 2 to 3 Type 3 by default, type 4 for well-tested services
Regulated incumbents Type 2 Type 3 with audit-grade gates; type 4 only for internal tooling
Legacy-heavy enterprises Type 1 to 2 Type 3 on modernised slices, after the test and context debt is paid
Services and SI firms Type 2 Type 3 as a repeatable delivery product they sell

From SDLC Type to Architecture: Workflows, Graphs, and Loops

Every AI SDLC is built from three building blocks: workflows, graphs and loops. The mistake most teams make is treating them as three options to choose between. They are not on the same axis, and real systems nest one inside the other.

The three building blocks

A. Workflows: code decides the path. Anthropic draws the clearest line here. Workflows are systems where models and tools follow predefined code paths. Agents are systems where the model directs its own process and tool use. Anthropic names five workflow patterns that keep showing up in production:

  1. Prompt chaining: fixed steps, each feeding the next, with checks in between.
  2. Routing: classify the input, then send it to a specialised handler.
  3. Parallelisation: split work into independent pieces, or run the same task several times and vote.
  4. Orchestrator-workers: a central model breaks the task down at runtime and hands pieces to workers. Coding changes across many files are the classic case.
  5. Evaluator-optimizer: one model produces, another critiques, and they loop until it passes.

B. Graphs: a way to write down control flow with state. A graph is not a third kind of system. It is how you express a workflow that has cycles, saved state and pauses for humans. What a graph buys you in production is durable execution (resume after a crash), human approval gates, and an audit trail of every transition.

C. Loops: the model keeps going until a stop condition. There are two levels here, and people mix them up.

  • The inner agent loop. The model calls a tool, looks at the result, decides the next step, and repeats until it thinks it is done. Claude Code, Codex and Cursor’s agent all run this loop.
  • Loop engineering, the outer loop. This is the system around many agent runs: what triggers a run, how the output is checked, when to re-run, and when to stop.

Confusing - Four questions that helps me pick the pattern

The pattern falls out of four questions. Answer them per task, not per project.

Question If the answer is… Lean towards
1. Who decides the next step? The steps are known up front A workflow (chain, route, parallel)
The steps depend on what the agent finds An agent loop, bounded by code
2. How is “done” checked? A deterministic check: compiles, tests pass, API returns 200 A loop can run unattended against it
A judgement call: is the spec right, is the design sound Evaluator-optimizer plus a human gate
3. How long does it run, and what must survive? One session, nothing to resume Plain code around the agent; no framework needed
Hours or days, must resume after a failure or an approval A graph with checkpoints
4. What is the blast radius? Reversible, internal, low risk Fewer gates, more autonomy
Production, customer data, money, compliance Explicit human approval nodes and narrow permissions

What each AI SDLC type looks like as architecture

As you move from type 1 to type 4, control moves outward: from the human’s hands, to the agent loop, to a graph, to an outer loop that runs without anyone prompting it.

SDLC type Outer level (what triggers work) Middle level (control and state) Inner level (who does the work) Where humans sit
1. AI-assisted The developer The developer’s own process Single model calls in the IDE Everywhere
2. Agent-augmented The developer Existing sprint process; a few workflows around it, like automated PR review One agent loop per developer Prompting every task, reading every diff
3. Spec-driven A spec or ticket A graph of phases with approval gates and persisted artifacts Agent loops inside the build and test nodes At the gates: spec, design, release
4. Dark factory Events: new ticket, failed build, schedule A graph for routing, retries and escalation Many agent loops, each with a verifier and a stop rule Writing specs and handling exceptions

Type 1 needs almost no architecture. The engineering work is context: rules files, good repo docs, and access to the right internal knowledge.

Type 2 adds workflows around the developer’s agent. The most valuable one is review.

The agent takes over build and test, but the process around it is still shaped for humans.

Type 3 puts a graph at the top. Delivery runs through phases, each stage declares its inputs, outputs and lead agent, and every phase boundary is guarded by a gate. Plans, requirements and designs are saved to the repository so context survives across sessions. Inside the construction node, an orchestrator-workers loop writes the code and an evaluator-optimizer loop writes and runs the tests.

Agents do most of the work inside the graph; humans move from doing the work to approving it at the gates.

For a real type 3 build, with its loops, gates and blockers, see the ATM services case study later in this article.

Type 4 adds loop engineering on the outside. Work starts from events, not people. Each loop has a hard iteration cap, a cost cap and a deterministic verifier.

The verifier, not a person, decides when work is done. Humans write the spec and handle what the loop cannot.

For most enterprises, type 3 is the realistic target, and the graph is where the governance lives. That is good news for regulated firms: approval gates, audit trails and narrow permissions are first-class features of a graph, not add-ons.

Lived experience: an AI SDLC at an ATM services company

We built an AI SDLC that takes a Jira story all the way to a tested build on an integration environment, with agents doing the build, review and fix work and the existing pipelines doing the deploying and testing. It is a type 3 system with type 4 style loops inside it, and production stays with people by design.

The context. This is a regulated incumbent from the earlier table: financial transactions, certification boundaries, a large estate of existing software, and delivery processes that have run the same way for years. The work was frontend feature delivery inside a wider modernisation programme. The goal was not a demo. It was to prove, on a real backlog and real environments, how far an agent-driven pipeline could take a story before a human had to step in.

The rule we set early. Agents write, review and fix. Existing, trusted pipelines deploy and test. Humans own the hand-off to production. You see, in a business that moves people’s cash, the question is not “can the agent deploy?” It is “who signs for it if it goes wrong?” Answering that first shaped the whole architecture.

Orange is where agents work, green is the pipeline the company already trusted, and the dark arrows on the left are the fix loops. Only the final hand-off is blue.

Stage by stage: pattern and status

The build-and-review half works end to end today. The test-driven fix loops work, but only as demos until they run inside the real environments.

# Stage What it does Pattern Status
1 Story orchestrator Every 2 hours, pulls Jira stories marked “Ready for Dev” Scheduled outer loop Done
2 Master workflow Generates code and tests, validates them, raises a pull request Orchestrator-workers Done; Playwright test generation still a demo
3 PR review workflow Checks coding standards, accessibility, and the story’s acceptance criteria; comments on the PR Evaluator Done
4 PR fix workflow Fixes review comments, pushes new commits to the same PR, resolves comments Evaluator-optimizer loop with stage 3 Done
5 Deploy to Dev Merge to a pre-develop branch triggers the existing deploy scripts Deterministic pipeline (reused) In progress
6 Test on Dev GitHub Actions run Playwright UI tests and send results back to the agent platform Deterministic verifier Actions set up; blocked on a browser in the agent sandbox and network access
7 Fix from test results Fixes code from Playwright results; moves the Jira story to Dev Done with results attached Evaluator-optimizer loop with stage 6 Built; a demo until stage 6 runs live
8 Deploy to Integration Merge to develop triggers the same deploy scripts Deterministic pipeline (reused) In progress
9 Test on Integration Same Playwright suite, GitHub Actions reused from Dev with small changes Deterministic verifier Network access pending
10 Fix from test results Same fix workflow; moves the story to QE Pass Evaluator-optimizer loop with stage 9 Reusing stage 7
11 Hand-off Merge to a release branch; UAT and production deployment Human-owned No AI planned; UAT environment under discussion

Which architecture it maps to

This is a type 3 SDLC, built from the same three blocks described above.

  • The outer loop is a schedule. The story orchestrator runs every two hours. Nobody prompts it.
  • The graph’s state lives in tools people already use. Jira statuses (Ready for Dev, Dev Done, QE Pass) are the graph’s state, and Git branches (pre-develop, develop, release) are its gates. We did not build a new dashboard. Managers watch Jira as they always have.
  • Two kinds of inner loop do the work. Review and fix form one evaluator-optimizer loop. Test and fix form another, run once on Dev and once on Integration.
  • The verifiers are deterministic and already trusted. Playwright suites run by GitHub Actions decide whether a change passes, not a model’s opinion.
  • Humans sit at the edge. The hand-off to UAT and production is a person’s call, which is the right default for a regulated incumbent.

What we learned

  1. The hardest blockers were not AI. The two things that held up the test loops were a browser inside the agent sandbox, so the agent could write good Playwright tests, and a network ticket to let the CI pipeline talk to the agent platform. Both sat in other teams’ queues. Think about it: in an enterprise, the agent is ready long before the plumbing is.
  2. Reuse what already deploys. We wrapped agents around the existing deploy scripts and GitHub Actions instead of letting agents deploy. That kept the change small enough for the organisation to accept, and it kept the verifier trustworthy.
  3. Where order matters, take the decision away from the model. Our next hardening steps both move logic from agent to workflow: a deterministic step that orders Jira stories by their dependencies before building, and a merge gate that checks no review comment is still open. That is question 1 from earlier: when the steps are known, code should decide.
  4. Put the state where people already look. Writing status and test results back into Jira made the pipeline visible to delivery leads, QA and product owners on day one, with no change management.
  5. Be honest about maturity. Saying “done” for the build-and-review loop and “demo” for the test-fix loop earned more trust with stakeholders than a polished end-to-end video would have.

The way to think about it: we did not need a dark factory to change how this company delivers software. We needed agents in the right places, trusted pipelines around them, and a clear line where humans take over.

Credits