← Back to blog
Vision

When 60% of the Code Is Already Written by Agents

Microsoft is planning for two to twenty million agents in a loop. The interesting question is not whether that number is real. It is what has to be true in your stack for a number like that to be safe.

15 min readby Team BricksNotes
Share
On this page · 8 sections
  1. 01A quote worth taking literally
  2. 02What "agents in a loop" actually means
  3. 03The 60% number, read carefully
  4. 04Why the number could not be 60% five years ago
  5. 05What twenty million agents force you to build
  6. 06The BricksNotes take, on video
  7. 07What this means for a data or software professional this year
  8. 08What this means for a leader planning next quarter
Watch on the BricksNotes YouTube channel — subscribe for more essays in video form.
01

A quote worth taking literally

"At Microsoft, more than 60% of our code is already written by AI agents. We are planning to scale it to 2–20 million agents, all running in a loop."

It is the kind of line that makes half of the timeline roll its eyes and the other half quietly update their roadmap. The eye-rollers have a point — "written by" is doing a lot of work, and 60% of what, exactly, is a fair question. But the roadmap-updaters have a bigger point. Whether the specific number is 40 or 60 or 80, the trajectory is not in dispute anymore. A very large software organisation is planning, on the record, for millions of agents running in a loop against its own code.

The interesting question is not whether the quote is true. It is what has to be true in your stack for a number like that to be safe.

02

What "agents in a loop" actually means

The phrase sounds like marketing until you draw it. A loop is: an agent looks at some state, decides on an action, takes the action, observes the result, updates the state, and does it again. Millions of loops means millions of tiny decisions per minute, each of them potentially touching a file, a database, a bill of materials, or a customer.

Two things scale non-linearly when you go from one loop to twenty million. The first is cost — every wasted token, every re-fetch, every unnecessary reasoning step is now multiplied by a number with seven zeros. The second is blast radius. A bug that would have been a bad afternoon at one loop per developer becomes a company-wide incident when the same bug runs twenty million times before anyone notices.

This is why the interesting layer is not the agent. It is the harness around the agent — the thing that decides which loops are allowed to run, on what, for how long, and with what evidence they succeeded. That harness is exactly what /context-advantage/book/chapter-30Chapter 30 · 7 min LockedThe Trusted Agent ArchitectureA nine-step end-to-end reference architecture for production agents. calls the trusted agent architecture, and it is the reason a company can honestly plan for two to twenty million agents without also planning for two to twenty million lawsuits.

03

The 60% number, read carefully

"More than 60% of our code is written by AI agents" is not the same claim as "more than 60% of our engineers have been replaced." It is closer to "more than 60% of the keystrokes that end up in a pull request originated from an agent's suggestion, which a human reviewed, edited, and merged."

That distinction matters, because it tells you where the human work went. It did not disappear. It moved. It moved out of typing and into reviewing, framing, deciding what to build, and — this is the part most teams underinvest in — deciding what the agent is not allowed to touch. The new senior engineer is the one who can hold a clear picture of the system in their head and act as the last honest reviewer before code lands.

The book calls this shift by name in /context-advantage/book/chapter-8Chapter 8 · 8 min LockedFrom Data Catalog to Business MemoryCatalogs describe data. Memory describes meaning. — the new role of the data and software professional in the agentic era. The tools change every quarter. The role does not.

04

Why the number could not be 60% five years ago

Two things had to happen before an agent could plausibly write the majority of a company's code.

First, the model had to get good enough at code that its suggestions were, on average, better than the median line a tired engineer types at 4pm. This is the part everyone talks about, and it happened faster than almost anyone predicted.

Second — and this is the part the timeline misses — the surrounding stack had to get good enough to catch the model when it was wrong. Type systems, linters, tests, CI, code review, static analysis, and increasingly, evals against real production traffic. Without that harness, a model that is right 95% of the time is still catastrophic at scale. With the harness, a model that is right 80% of the time is a superpower.

The lesson generalises well beyond code. It is the same lesson /context-advantage/book/chapter-16Chapter 16 · 5 min LockedTrust Is Designed, Not AssumedHow leaders earn confidence in AI systems. makes about trust: trust is designed into the layer around the model, not begged out of the model itself.

05

What twenty million agents force you to build

Take the quote at face value for a minute and imagine you were the person responsible for running twenty million agents against your codebase and data. Five things stop being optional the moment you cross the first million.

One: a semantic layer. The agents cannot each hold their own private definition of "customer," "order," or "active." There has to be one canonical set of business meanings that every agent resolves against, or the outputs diverge and the loop turns into noise. This is exactly the argument of /context-advantage/book/chapter-6Chapter 6 · 6 min LockedBusiness Meaning Beats Raw RetrievalNaive RAG is not a context strategy..

Two: guardrails and approvals. Not every action an agent proposes should be allowed to execute. The high-blast-radius actions — writing to production, sending emails, touching money — need explicit approval gates. /context-advantage/book/chapter-15Chapter 15 · 6 min LockedGuardrails, Approvals, and Audit TrailsDesigning safe agent behavior in practice. is the field guide for what those gates look like.

Three: cost as a first-class design constraint. At twenty million loops, a two-cent inefficiency is a four-hundred-thousand-dollar-a-day tax. /context-advantage/book/chapter-18Chapter 18 · 6 min LockedThe Hidden Cost of Agentic AIWhere the dollars actually go. walks through where those cents hide and how to find them before finance does.

Four: evaluation on real traffic, not on demos. A golden set of a hundred prompts is worse than useless at this scale — it gives you a false sense of safety. /context-advantage/book/chapter-21Chapter 21 · 6 min LockedQuality, Speed, and Cost TradeoffsHow to balance accuracy, latency, and spend. is the case for eval systems that run continuously against a shadow of production, not against a bookmark from launch week.

Five: a human in the loop, but a scarce one. You cannot review twenty million actions. You can review the ten thousand highest-risk ones, and design the system so those are the ones that surface. /context-advantage/book/chapter-17Chapter 17 · 6 min LockedHuman in the Loop Still MattersWhen humans should approve, review, or fully own the decision. is about how to place that human where they add the most leverage.

06

The BricksNotes take, on video

We recorded a short companion video for this essay on the BricksNotes YouTube channel — the same argument, in about the time it takes to make a coffee. If you prefer to watch first and read after, the player is embedded at the top of this article.

The video walks through the three-layer picture we keep coming back to: the probabilistic model on top, the deterministic core underneath, and the correctness layer in the middle where trust is actually built. It is a good five-minute primer before diving into the chapters.

07

What this means for a data or software professional this year

The honest read on the Microsoft quote, if you are early or mid-career, is not "the field is closing." It is "the field is re-pricing." The parts that used to be the whole job — typing SQL, wiring pipelines, writing boilerplate — are quietly becoming the cheapest input in the system. The parts that used to be the invisible tax — defining metrics, sitting with stakeholders, saying no on Friday, writing the one-page memo — are becoming the whole product.

If we were mentoring an engineer or analyst this quarter, we would tell them three things. Get comfortable reviewing agent output the way a senior editor reviews a junior writer — fast, opinionated, and unbothered. Learn to write short, decisive prose; every agent-heavy team we know is bottlenecked on the humans who can turn a messy meeting into three clear sentences. And build one small piece of the trusted agent architecture at work — a resolver, a guardrail, an eval — so you have a story to tell that is not about tools.

The reading list we would give them is short. Start with /context-advantage/book/chapter-1Chapter 1 · 9 min FreeThe Day Data Started Talking BackWhen the model is smart but the meaning is missing. for the shift itself, then /context-advantage/book/chapter-4Chapter 4 · 7 min LockedThe 4 C's FrameworkA simple lens for designing trusted enterprise AI. for the 4 C's lens, then jump to /context-advantage/book/chapter-30Chapter 30 · 7 min LockedThe Trusted Agent ArchitectureA nine-step end-to-end reference architecture for production agents. for the reference architecture. Free chapters get you the framing; the paid ones get you the playbook.

08

What this means for a leader planning next quarter

If you are the person deciding budgets, the trap to avoid is treating the Microsoft number as a target rather than as a symptom. Racing to say "our agents write 60% of our code too" is how you buy a very expensive incident. The right response is to ask which loops in your business are safe to hand to an agent, which are not, and what would have to be true — in guardrails, evals, cost budgeting, and human review — to move a loop from the second category to the first.

The teams that will still be running agents in production in 2028 are not the ones with the most agents today. They are the ones who spent this year building the layer underneath.

That layer is what The Context Advantage is a book about. If you have not started yet, the free chapters at /context-advantage/blog are a good afternoon. The full book, with the trusted agent blueprint, the cost patterns, and the eval playbook, is at /context-advantage/buy.

"Twenty million agents is not a scaling problem. It is an architecture problem, dressed up in a scaling number."
Mini checklist

Try this at work

  • Write down, on one page, the three loops in your business you would trust an agent to run tomorrow — and the three you would not. Being honest about the second list is the whole exercise.
  • For one of the "yes" loops, list its guardrails, its evals, and its cost ceiling. If any of the three is blank, that loop is not actually ready.
  • Pick one semantic definition your team argues about — "active," "customer," "revenue" — and encode it once, in one resolver, so every future agent inherits it.
  • Add a shadow eval on real production traffic, not on a golden set from launch week. Start with a hundred rows and grow.
  • Read [/context-advantage/book/chapter-30](/context-advantage/book/chapter-30) this week. It is the shortest path to a mental model that scales past the first million loops.

The Context Advantage is the long-form field guide for the layer underneath the agents — semantic foundations, guardrails, cost, evals, and the trusted agent architecture. Start with the free chapters at [/context-advantage/blog](/context-advantage/blog), or unlock the full book at [/context-advantage/buy](/context-advantage/buy).

Explore the book →
Over to you

If your company announced tomorrow that it was scaling from a handful of agents to two million, which part of your current stack would break first — and would you know before your customers did?

Found this useful? Share it with a teammate.
Share
BricksNotes updates
Liked this? Get the next essay in your inbox.

One thoughtful piece a week on context, control, cost, and choice for data and AI teams. No spam.

By subscribing you agree to receive emails from Team BricksNotes. Unsubscribe anytime.

This is a companion post to The Context Advantage — a living book by Team BricksNotes.