<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:media="http://search.yahoo.com/mrss/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:custom="https://www.oreilly.com/rss/custom"

	>

<channel>
	<title>Radar</title>
	<atom:link href="https://www.oreilly.com/radar/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.oreilly.com/radar</link>
	<description>Now, next, and beyond: Tracking need-to-know trends at the intersection of business and technology</description>
	<lastBuildDate>Fri, 26 Jun 2026 17:12:07 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://www.oreilly.com/radar/wp-content/uploads/sites/3/2025/04/cropped-favicon_512x512-160x160.png</url>
	<title>Radar</title>
	<link>https://www.oreilly.com/radar</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Agentic Code Review</title>
		<link>https://www.oreilly.com/radar/agentic-code-review/</link>
				<comments>https://www.oreilly.com/radar/agentic-code-review/#respond</comments>
				<pubDate>Fri, 26 Jun 2026 15:50:43 +0000</pubDate>
					<dc:creator><![CDATA[Addy Osmani]]></dc:creator>
						<category><![CDATA[AI & ML]]></category>
		<category><![CDATA[This Week in AI]]></category>
		<category><![CDATA[Commentary]]></category>

		<guid isPermaLink="false">https://www.oreilly.com/radar/?p=18997</guid>

		
					<media:content 
				url="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/Agentic-code-review-1-e1782489194185.png" 
				medium="image" 
				type="image/png" 
				width="231" 
				height="196" 
			/>

			<media:thumbnail 
				url="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/Agentic-code-review-1-e1782489194185-160x160.png" 
				width="160" 
				height="160" 
			/>
		
		
				<description><![CDATA[The following article originally appeared on Addy Osmani’s blog site and is being republished here with the author’s permission. Coding agents are extraordinarily good now, and getting better fast. The interesting consequence is that the hard part of engineering moved from writing code to deciding whether to trust it, which makes review the most leveraged [&#8230;]]]></description>
								<content:encoded><![CDATA[
<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph"><em>The following article originally appeared on <a href="https://addyosmani.com/blog/agentic-code-review/" target="_blank" rel="noreferrer noopener">Addy Osmani’s blog site</a> and is being republished here with the author’s permission.</em></p>
</blockquote>



<p class="wp-block-paragraph"><em>Coding agents are extraordinarily good now, and getting better fast. The interesting consequence is that the hard part of engineering moved from writing code to deciding whether to trust it, which makes review the most leveraged skill in software right now. How you approach it depends enormously on who you are: A solo developer with no users and a team maintaining a 10-year-old application are not solving the same problem.</em></p>



<p class="wp-block-paragraph">I am more optimistic about agentic engineering than I have ever been. The agents are genuinely good, they get better every month, and on an ordinary day I now ship things I would not have attempted a year ago. This write-up is a map of where the interesting work went, because it did move, and most teams have not fully caught up to where.</p>



<p class="wp-block-paragraph">Code review used to work because of a happy accident of relative speed. A senior engineer could read code faster than a junior could write it, so review kept pace without anyone designing it to, and the team absorbed how the system fit together as a side effect of reading each other’s diffs. A lot of that was not deliberate. It fell out of a single fact: Writing code was the slow, expensive part, and reading it was cheap and fast.</p>



<p class="wp-block-paragraph">That fact no longer holds. An agent will produce a thousand lines of often solid, well-formatted code in less time than it takes me to read this paragraph, while a human’s reading speed has not changed since roughly the day we started staring at screens for a living. So the constraint moved downstream, to the one step that did not get faster: a person being confident the change is right. I don’t think that’s a loss. It’s the most leveraged place in software to be good right now, and it’s where I’ve put most of my attention this year.</p>



<p class="wp-block-paragraph">There’s a happy twist here that shapes the rest of this piece. The same tools generating all that extra code are also the best thing I have for keeping up with it. On my own projects, including the popular open source ones, I now point Claude Code or Codex at a batch of incoming PRs and have them triage the queue for me, and that has genuinely changed how I spend my time. So this is not an anti-AI argument, and I will come back to exactly how I use AI.</p>



<p class="wp-block-paragraph">It’s also not a data dump, and not another round of whether letting a model write your code is wonderful or the end of the craft, because that framing is useless. The only answer that survives contact with a real codebase is that it depends entirely on who you are. A developer vibe-coding a side project only a dozen people will ever run and a team keeping a 10-year-old enterprise system alive for another quarter share almost no constraints worth naming, and most of the advice in circulation is really one of those two people telling the other how to live.</p>



<h2 class="wp-block-heading">What the 2026 data actually shows</h2>



<p class="wp-block-paragraph"><strong>The productivity gains from AI are real, but raw output overstates them: about four times the code for a tenth more delivered value. The gap between those numbers is review work, which is exactly why review is where the leverage now sits.</strong></p>



<p class="wp-block-paragraph">For a couple of years this was an anecdotal argument. It’s now measured at scale, by organizations with no shared agenda and in several cases competing commercial interests, and the measurements keep pointing the same way: AI pushes output sharply up and pushes both quality and reviewability down.</p>



<p class="wp-block-paragraph"><a href="https://www.faros.ai/blog/ai-acceleration-whiplash-takeaways" target="_blank" rel="noreferrer noopener">Faros AI</a> instrumented 22,000 developers across 4,000 teams and tracked what happened as teams moved from low to high AI adoption. This is March 2026 data, about as current as anything here. The upside is real. Developers merge considerably more PRs and complete more work and throughput per engineer climbs. Then the rest of the report:</p>



<ul class="wp-block-list">
<li>Code churn is up <strong>861%</strong>.</li>



<li>The incidents-to-PR ratio is up <strong>242.7%</strong>.</li>



<li>The per-developer defect rate is up from <strong>9%</strong> to <strong>54%</strong>.</li>



<li>Median review <em>duration</em> is up <strong>441.5%</strong>, with time to first review and average review time both roughly doubling.</li>



<li>PRs merged with zero review are up <strong>31.3%</strong>.</li>
</ul>



<p class="wp-block-paragraph">The last figure is the one I find hardest to dismiss, because nobody chose to stop reviewing. Reviewers simply couldn’t keep pace with the volume, so code began merging unread, and that became normal. The detail I keep returning to is that teams with mature, disciplined engineering practices were hit just as hard as everyone else. Good process didn’t protect them, because the volume arrived faster than any process was designed to absorb.</p>



<p class="wp-block-paragraph"><a href="https://www.businesswire.com/news/home/20251217666881/en/CodeRabbits-State-of-AI-vs-Human-Code-Generation-Report-Finds-That-AI-Written-Code-Produces-1.7x-More-Issues-Than-Human-Code" target="_blank" rel="noreferrer noopener">CodeRabbit</a> studied 470 open source PRs in December 2025, 320 AI-coauthored and 150 human-only, and found the AI changes carried roughly <strong>1.7x more issues</strong>. Logic and correctness problems were up about 75%, security issues were 1.5 to 2x more common, and readability problems more than tripled. The company’s AI director, David Loker, described these as “predictable, measurable weaknesses that organizations must actively mitigate.” Predictable is the operative word. These are known, locatable weaknesses, which is good news: It means a review process, human or automated, can be aimed straight at them.</p>



<p class="wp-block-paragraph">One caveat to hold throughout: CodeRabbit and Faros both sell into this market, so their framing is not disinterested. That doesn’t make the numbers wrong—the effect sizes are large and consistent across unrelated sources—but vendor research deserves to be read with that in mind.</p>



<p class="wp-block-paragraph"><a href="https://www.gitclear.com/research/ai_tool_impact_on_developer_productive_output_from_2022_to_2025" target="_blank" rel="noreferrer noopener">GitClear</a> has the single number I would lead with. In its productivity data through 2025, daily AI users produce around <strong>4x the raw output</strong> of nonusers, but measured against their own output a year earlier, the real productivity gain is only about <strong>12%</strong>. You’re generating roughly four times the code for something like a tenth more delivered value, and a human still has to review all of it. To GitClear’s credit, CEO Bill Harding is explicit that some of even that 12% is selection bias, because stronger developers are concentrated in the AI cohort.</p>



<p class="wp-block-paragraph"><a href="https://github.blog/ai-and-ml/generative-ai/agent-pull-requests-are-everywhere-heres-how-to-review-them/" target="_blank" rel="noreferrer noopener">GitHub</a> reports that Copilot review has now run over 60 million reviews, a 10x increase in under a year, and more than one in five reviews on the platform involves an agent. This is no longer a niche practice. It’s how code gets made.</p>



<p class="wp-block-paragraph">Four datasets, four methods, one conclusion. We poured machine-speed output into a system built for human-speed work. The bottleneck didn’t disappear; it <a href="https://addyosmani.com/blog/verification-bottleneck/" target="_blank" rel="noreferrer noopener">moved to verification</a>, and review is where that bill comes due.</p>



<h2 class="wp-block-heading">Everyone is solving a different problem</h2>



<p class="wp-block-paragraph"><strong>How much review a change needs depends almost entirely on its blast radius, and most advice you read was written by someone operating for a very different one.</strong></p>



<p class="wp-block-paragraph">Almost all the alarming data above comes from enterprise telemetry and from open source maintainers being overwhelmed. It’s entirely real if that is your situation. If you’re one person shipping something a handful of people will ever run, much of it simply doesn’t apply to you, and you shouldn’t be made to feel otherwise.</p>



<p class="wp-block-paragraph">Three variables determine where you sit:</p>



<ul class="wp-block-list">
<li><strong>Blast radius</strong><strong>: </strong>What happens when it breaks? Nothing, or angry users and money and PII on the line?</li>



<li><strong>How long the code lives</strong>: A throwaway prototype you might rewrite next week, or a codebase you’ll maintain for years?</li>



<li><strong>How many people need to understand it</strong>: Just you holding the whole thing in your head, or a team that has to share ownership over time?</li>
</ul>



<p class="wp-block-paragraph">Run the same diff through those three variables, and “good review” means genuinely different things.</p>



<p class="wp-block-paragraph">If you’re working solo on a greenfield project with no users, review’s second job, distributing knowledge across a team, doesn’t exist for you. You <em>are</em> the team. The reasonable move is to lean hard on <a href="https://addyosmani.com/blog/verification-bottleneck/" target="_blank" rel="noreferrer noopener">tests and automation</a>, review the parts that genuinely matter, and accept a lighter touch on the rest. Duplication and churn cost far less when the code may not exist in a month and nobody is paged at 3:00am when it breaks. The catch, and people learn this one painfully, is that it only works if the tests are real. Skipping review without a safety net doesn’t remove the work. It <a href="https://addyosmani.com/blog/intent-debt/" target="_blank" rel="noreferrer noopener">defers it</a> at a higher price, and standards slip when no one is there to push back. “No users” is permission to defer review. It isn’t permission to skip verification.</p>



<p class="wp-block-paragraph">Then the project gets users. This is the dangerous middle, and the crossing is rarely noticed at the time. Review’s bug-catching role suddenly matters, because bugs now hurt people, and its knowledge-sharing role switches on, because it’s no longer only you. Teams keep their solo-era habits a few months too long, and then there’s a postmortem and the Faros numbers stop being a chart and become their own dashboard.</p>



<p class="wp-block-paragraph">At the far end is the large organization with an old codebase and many users. Here every alarming figure lands at full strength. A duplicated helper isn’t a style nit; it’s a future bug surface and a maintenance cost that compounds for years. A change nobody understood is <a href="https://addyosmani.com/blog/comprehension-debt/" target="_blank" rel="noreferrer noopener">comprehension debt</a> that becomes someone’s on-call incident. Review is doing several jobs at once, and the volume of agent output quietly breaks all of them. The Faros finding about mature teams is aimed squarely here.</p>



<p class="wp-block-paragraph">So the point is not “Enterprises should be cautious and solo developers can relax.” It’s that the purpose of review changes with your position, so the rules have to change with it. Bolt an enterprise’s locked-down multi-agent evidence-required pipeline onto a two-person prototype and you’ve added friction for no benefit. Run “tests pass, ship it” on a payments system and you’ve built an incident generator with a green checkmark on top. Most bad advice in this space is one position on that spectrum prescribing to another.</p>



<h2 class="wp-block-heading">What review is actually for now</h2>



<p class="wp-block-paragraph"><strong>Review was built to check an author’s reasoning. An agent does reason, but that reasoning is usually thrown away rather than attached to the code, so the reviewer has to reconstruct a rationale that never made it into the diff. The good news is that this is a tooling problem, and capturing the reasoning makes review dramatically easier.</strong></p>



<p class="wp-block-paragraph">This is the part that genuinely changed, and I think it is underappreciated.</p>



<p class="wp-block-paragraph">When a human writes code, intent comes along for free. The reasoning, the alternatives weighed and discarded, lived in the author’s head, and review was you checking that reasoning. Modern agents do reason, often visibly, producing thinking traces and weighing options and explaining themselves as they go. The catch is that this reasoning is usually discarded the moment the diff is produced. It’s rarely captured and rarely attached to the PR, and in any case it is the agent’s reasoning about how to implement the task, not a human’s judgment about whether it was the right task to begin with. So review shifts from checking reasoning that sits in front of you to reconstructing intent that never got written down, which is harder and slower, and we keep acting surprised that it takes <a href="https://www.faros.ai/blog/ai-acceleration-whiplash-takeaways" target="_blank" rel="noreferrer noopener">441% longer</a>.</p>



<p class="wp-block-paragraph">A 2026 paper, “<a href="https://arxiv.org/html/2604.16754v1" target="_blank" rel="noreferrer noopener">AI Slop and the Software Commons</a>,” analyzed 1,154 posts across 15 Reddit and Hacker News threads where developers discussed “AI slop.” One line from a developer has stayed with me: reviewing an agent’s PR made them “the first human being to ever lay eyes on this code.”</p>



<p class="wp-block-paragraph">That sentiment points straight at the fix. In normal review, the author already understood the change and you were checking their work. With an agent PR, nobody has reconstructed the why yet, and the reviewer is the first to try. As the paper puts it, review “wasn’t built to recover missing intent.” The encouraging part is that missing intent is recoverable: The reasoning existed; we just discarded it. Have the agent state what it was trying to do and what it ruled out, then capture it <a href="https://addyosmani.com/blog/intent-debt/" target="_blank" rel="noreferrer noopener">as a decision log</a> on the PR, and a large part of the reconstruction cost disappears. This is a tooling problem, and tooling problems get solved.</p>



<p class="wp-block-paragraph">None of which makes “have the AI review the AI” a complete answer on its own. A second model with different priors genuinely catches real bugs, and it catches a lot of them, which is why you should run one. What it doesn’t supply is the human judgment about whether this is the right change to build in the first place. That judgment stays with a person, and it happens to be the most interesting part of the job and the part worth keeping.</p>



<h2 class="wp-block-heading">The tools are good, but not always for the reason they advertise</h2>



<p class="wp-block-paragraph"><strong>The current AI reviewers are genuinely good, and they occasionally don’t flag the same lines as each other, so the right move is not picking the best one but running two that are built differently.</strong></p>



<p class="wp-block-paragraph">The dedicated AI review tools are good now, and I think you should be running at least one on everything, side projects included. <a href="https://www.coderabbit.ai/" target="_blank" rel="noreferrer noopener">CodeRabbit</a> is the most widely deployed and topped the independent <a href="https://www.coderabbit.ai/blog/coderabbit-tops-martian-code-review-benchmark" target="_blank" rel="noreferrer noopener">Martian benchmark</a> (January to February 2026) on F1, at around 49% precision with the best recall in the field. <a href="https://www.greptile.com/" target="_blank" rel="noreferrer noopener">Greptile</a> trades precision for recall, with around an 82% bug-catch rate against CodeRabbit’s 44% in one benchmark, at the cost of more false positives. <a href="https://claude.com/blog/code-review" target="_blank" rel="noreferrer noopener">Anthropic’s Code Review</a> reports under 1% of its findings marked incorrect by their engineers; the figure I would actually show a manager is that it raised their internal rate of PRs receiving a substantive review from 16% to 54%. The long tail of changes that used to get a glance and an approval now gets read by something.</p>



<p class="wp-block-paragraph">The most useful result I have seen this year isn’t from a vendor. An engineer <a href="https://dev.to/_vjk/best-ai-code-reviewer-in-2026-we-ran-4-in-parallel-for-3-weeks-146-prs-679-findings-1c0f" target="_blank" rel="noreferrer noopener">ran four reviewers in parallel</a>, CodeRabbit, Sentry Seer, Greptile and Cursor BugBot, across 146 real PRs and 679 findings over three and a half weeks:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">Of 617 distinct flagged locations, <strong>93.4% were caught by exactly one of the four tools</strong>. 6% by two. Almost none by three. <strong>None at all by all four</strong>.</p>
</blockquote>



<p class="wp-block-paragraph">The four tools never once flagged the same line. Each was strong at a different class of problem: Greptile with near-zero false positives on correctness and architecture, CodeRabbit with the widest net and one-click fixes, and Seer best on production-failure severity. That is the adversarial review argument demonstrated on a real codebase rather than in a paper. Heterogeneity is the whole point. Four copies of one model is a single reviewer with a larger invoice, whereas four genuinely different reviewers surface a set of bugs no single member could find alone, the human included.</p>



<p class="wp-block-paragraph">In practice: Do not agonize over the single best tool because there isn’t one. At the high-stakes end, run two with deliberately different characters. (The experiment above paired Greptile for everyday correctness with Seer for production-failure severity, with almost no overlap.) If you are solo, one good reviewer plus real tests is plenty. And whatever the marketing says, measure it on your own code, because every one of these results was specific to a particular codebase, and yours will be too.</p>



<h2 class="wp-block-heading">Should we just let AI review more of it?</h2>



<p class="wp-block-paragraph"><strong>The machine is already reviewing more of your code than you are. The only real decision left is whether you do that deliberately, and the amount of human you keep should scale with your blast radius.</strong></p>



<p class="wp-block-paragraph">I keep hearing a question from experienced engineers that would have been heresy a year ago: Should the machine be doing more of the reviewing, perhaps most of it? I no longer think that’s a foolish question.</p>



<p class="wp-block-paragraph">The uncomfortable part is that AI review works. Under 1% of Anthropic’s findings are marked wrong; the tools catch bugs humans read straight past, and they don’t get tired on the 30th PR of the day, which is exactly when a human is least reliable. Meanwhile humans are visibly not keeping up: Zero-review merges are up 31% and review times are up triple digits. In a real sense the machine is already reviewing more of the code than we are. The honest framing is not “Should we let AI review more?” but “AI is already doing it, so are we going to be deliberate about that or let it happen by default while pretending humans still read everything?”</p>



<p class="wp-block-paragraph"><a href="https://addyosmani.com/blog/loop-engineering/" target="_blank" rel="noreferrer noopener">Loop engineering</a> sharpens this. The premise of a loop is that you stop being the person who prompts the agent and instead build a system that prompts it, and a central part of that system is a judge: an agent that decides whether the work is done before moving on. The reviewer is the next role being designed out of the inner loop, on purpose. We spent a year automating the writing, and the loops are now automating the checking, and the human keeps getting pushed up and out. “Where does the human stay?” is not a seminar question; it’s something you decide every time you wire up a loop, whether or not you realize you’re deciding it.</p>



<p class="wp-block-paragraph">Where I currently land, and I hold this loosely: The answer is not “a human reads every line.” That’s over. The volume ended it, and anyone insisting otherwise is describing a world that no longer exists. But it’s also not “let the loop review itself and walk away.” When an agent writes the code, another reviews it, and a third judges it, you’ve a closed loop of models with broadly correlated blind spots, especially when they come from the same family, confidently agreeing in the same places. A confident “looks good” with no human anywhere in it is <a href="https://addyosmani.com/blog/cognitive-surrender/" target="_blank" rel="noreferrer noopener">borrowed confidence</a>: The system’s certainty becomes yours, and nobody actually understood anything. The loop can be both very sure and very wrong, with no human left to tell the difference.</p>



<p class="wp-block-paragraph">So the human doesn’t leave; the human moves up a level. You stop reviewing every diff and start owning the parts that do not transfer to a model. Accountability, because you can’t page a model at 3:00am. The judgment of whether this is even the right change to build, as distinct from whether the code is correct. The high-blast-radius gates where being wrong is expensive. And the awkward one: the behavior nobody specified, because a model reviews the code that exists and rarely flags the requirement that nobody thought to write down, which remains <a href="https://addyosmani.com/blog/comprehension-debt/" target="_blank" rel="noreferrer noopener">a human-shaped gap</a> I don’t expect to close soon. Human in the loop becomes human on the loop: sampling, spot-checking and auditing the system rather than reading every PR, and spending your limited attention where being wrong would actually hurt.</p>



<p class="wp-block-paragraph">This is already how I work on my own projects, including the open source ones that now see more PRs in a day than I could carefully read in an evening. I point Claude Code or Codex at a batch of incoming PRs and ask for a first pass: a high-level read of what looks safe to merge, what needs more work, and what’s genuinely high-risk. I don’t auto-merge on the result, and I don’t lazy-merge whatever it approves. What it gives me is a way to allocate attention. I can spend a few minutes confirming the changes it considers low risk, and put real, careful time into the ones it flags as dangerous. The detail that matters is that this isn’t my old review hour made slightly faster. It’s a different shape of hour, and at the volume I now deal with, it’s the main reason the queue stays survivable at all.</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1600" height="900" src="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-18-1600x900.png" alt="" class="wp-image-18998" srcset="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-18-1600x900.png 1600w, https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-18-300x169.png 300w, https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-18-768x432.png 768w, https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-18-1536x864.png 1536w, https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-18.png 2048w" sizes="(max-width: 1600px) 100vw, 1600px" /><figcaption class="wp-element-caption"><em>Codex and Claude Code giving me a first-pass, risk-sorted read of a batch of PRs. The triage is the help. The merge decision stays mine.</em></figcaption></figure>



<p class="wp-block-paragraph">A more extreme version of the same move is Kun Chen, an ex-Meta L8 engineer now shipping around 40 PRs a day as a solo builder, <a href="https://creatoreconomy.so/p/how-this-ex-meta-l8-engineer-ships-40-prs-a-day-with-ai-kun-chen" target="_blank" rel="noreferrer noopener">who has largely stopped reviewing code</a>. It would be easy to dismiss this, except he is an L8, unusually good at the thing he stopped doing. He runs 20 to 30 agents in parallel and has moved his effort into the plan: He writes detailed plans up-front; the agents run for hours against them, and he says plan quality determines how long they can run unattended. That’s the move I described above in its purest form. It’s worth being precise about what actually happened, because it is not that he stopped verifying. The intent didn’t vanish; he wrote it down himself in the plan, so the “first human to ever lay eyes on this” problem is half-solved. A human did understand the why, just up-front rather than after. And he didn’t work without a net. He built an automated review gate (which he calls No Mistakes) that checks the code before it merges, and he stays on escalation when an agent gets stuck. The human does the expensive thinking before the code exists, and the machine does the line-by-line afterward, which may well be the shape of where this goes.</p>



<p class="wp-block-paragraph">But he’s a solo builder with no large team and no decade-old system full of landmines beneath him. The exact conditions that make 40 PRs a day without review rational for him are conditions most readers don’t have. Copy his workflow onto a team shipping to many users and you reproduce the Faros numbers on your own dashboard. Kun isn’t wrong; he’s just a long way down one specific end of the spectrum.</p>



<p class="wp-block-paragraph">Which is the spectrum point again. Solo with no users: Letting AI review almost all of it is a defensible 2026 position, and you shouldn’t feel guilty about it. Maintaining something large for many people: Let the machine handle the first pass, the second pass, and the boring 90%, but keep a real human on the load-bearing paths and don’t let the loop close completely on anything that can hurt someone. How much human you keep is a dial, and you set it by blast radius, not by guilt.</p>



<h2 class="wp-block-heading">What to actually do</h2>



<p class="wp-block-paragraph"><strong>Stop reviewing everything to the same depth. Spend scarce human attention only where being wrong is costly, and let cheap deterministic gates and AI reviewers handle the rest.</strong></p>



<p class="wp-block-paragraph">The organizing idea is to match review effort to the cost of being wrong, push the cheap deterministic work as early as possible, and reserve human attention for what only humans can do.</p>



<p class="wp-block-paragraph"><strong>Tier by risk, not by author.</strong> A config change earns a linter and a glance. A payments path earns the full stack: types, tests, two different AI reviewers, a human who owns that system, and a security pass. Don’t spend a heavy review on boilerplate, and don’t wave through an auth change because the tests are green. The <a href="https://addyosmani.com/blog/verification-bottleneck/" target="_blank" rel="noreferrer noopener">layered approach</a> is the same everywhere; what changes is how many layers a given diff has to clear.</p>



<p class="wp-block-paragraph"><strong>Fast-fail the expensive tail.</strong> The most useful recent finding for teams drowning in agent PRs is “<a href="https://arxiv.org/html/2601.00753" target="_blank" rel="noreferrer noopener">Early-Stage Prediction of Review Effort</a>” (January 2026), which studied 33,707 agent-authored PRs. Agents are good at small, well-defined changes. Around 28% merge almost instantly, but they tend to “ghost” the moment they get subjective feedback, abandoning the back-and-forth that review actually is. (A companion 2026 paper found <a href="https://arxiv.org/html/2601.15195" target="_blank" rel="noreferrer noopener">reviewer abandonment accounted for 38% of rejected agent PRs</a>.) The researchers built a “circuit breaker” that predicts high-maintenance PRs from cheap signals like file types and patch size before a human looks, and it works well. Triage agent PRs up front, fast-track the trivial ones, and don’t let a person sink an hour into a sprawling change the agent will abandon as soon as you push back.</p>



<p class="wp-block-paragraph"><strong>Raise the bar for what you will even review.</strong> The fix for being buried isn’t locking down the repository. It’s <a href="https://www.builder.io/blog/developers-drowning-in-ai-prs" target="_blank" rel="noreferrer noopener">refusing to review changes that arrive without evidence</a>. Require, before review, a statement of what the change is for, a diff that isn’t 3,500 lines with no comments, the test output, and proof it was actually run. This is how you stop being the first human to read the code. You push the intent-reconstruction work back onto whoever submitted it, where it’s cheap, rather than absorbing it yourself, where it is expensive.</p>



<p class="wp-block-paragraph"><strong>Keep PRs small, deliberately.</strong> Agent PRs run large, <a href="https://www.faros.ai/blog/ai-acceleration-whiplash-takeaways" target="_blank" rel="noreferrer noopener">51% larger on average</a> in the Faros data, and reviewer engagement is one of the strongest predictors that a PR merges at all. A large unreviewable PR gets <a href="https://addyosmani.com/blog/comprehension-debt/" target="_blank" rel="noreferrer noopener">rejected outright</a> or, worse, rubber-stamped. Instruct your agents to produce small commits. A diff a human can actually read is now a design constraint, not a courtesy.</p>



<p class="wp-block-paragraph"><strong>Read the test changes more carefully than the code.</strong> This is the agent failure mode to watch. The agent changes behavior, then “fixes” the test by rewriting the assertion to match the new, broken behavior. A green check over 200 edited tests means nothing until you have confirmed the edits were correct. Treat any diff that rewrites many tests as a flag and read those first. Mutation testing earns its place here: Coverage tells you a line ran; mutation testing tells you whether the test would notice if that line were wrong.</p>



<p class="wp-block-paragraph"><strong>Treat CI as the wall that doesn’t move.</strong> Watch for the patterns <a href="https://github.blog/ai-and-ml/generative-ai/agent-pull-requests-are-everywhere-heres-how-to-review-them/" target="_blank" rel="noreferrer noopener">GitHub now warns reviewers about</a>: removed tests, skipped lint, lowered coverage thresholds, a duplicated helper that already exists elsewhere, and untrusted input flowing into a prompt. That last one deserves emphasis, because agent-built features are a fresh source of <a href="https://simonwillison.net/series/prompt-injection/" target="_blank" rel="noreferrer noopener">prompt injection</a>: If a change pipes user-controlled text into an LLM call without thinking about what that text can instruct the model to do, the vulnerability isn’t visible in the diff. It’s latent in the data that will arrive later. Agents will also weaken CI to make themselves pass, not maliciously, just gradient descent finding the cheapest path to green. Deterministic gates are the one part of the pipeline that can’t be talked out of their verdict by a confident paragraph, so keep them strict.</p>



<p class="wp-block-paragraph"><strong>A human owns the merge.</strong> A model can’t be paged and can’t be held responsible for what it shipped, so whoever clicks merge owns it. When an AI review says “looks good” in a calm, confident voice, it’s handing you <a href="https://addyosmani.com/blog/cognitive-surrender/" target="_blank" rel="noreferrer noopener">confidence it hasn’t necessarily earned</a>. Treat every AI review as a sensor, not a verdict: data, not a decision.</p>



<p class="wp-block-paragraph">If you are solo with no users, the tiering, the test-change discipline, and CI are most of what you need; the rest is overhead until people show up. If you’re a large organization, all of it is the baseline, and the triage and intake bar are the difference between a review process that scales and one that quietly collapses.</p>



<h2 class="wp-block-heading">What this means if you run a team</h2>



<p class="wp-block-paragraph"><strong>The bottleneck is no longer how fast you write code. It’s how fast a trusted human can be confident in a review. Cutting the people who provide that confidence because “AI made us faster” simply converts the saving into future incidents.</strong></p>



<p class="wp-block-paragraph">The binding constraint on shipping is now how fast a trusted human can be confident a change is correct. Any plan that treats generation as the bottleneck and review as free will quietly stall, with the velocity dashboard staying green the whole way.</p>



<p class="wp-block-paragraph">The Faros report is direct about this: QA and review work rises even as output rises, so reducing engineering headcount because “AI made us faster” is dangerous unless you have closed the review gap first. The senior-engineer tax (review time up by triple digits) falls hardest on the people you can least afford to bottleneck, and it is invisible to any metric that only counts merged PRs.</p>



<p class="wp-block-paragraph">Open source maintainers hit this wall first and hardest. The <a href="https://arxiv.org/html/2604.16754v1" target="_blank" rel="noreferrer noopener">steady stream of plausible but hollow contributions</a> costs real triage time even when those contributions are well-intentioned, and that’s the canary. Companies are next. The ones handling it well treat review capacity as a real resource to be measured, protected, and spent deliberately, not as slack that AI has freed up.</p>



<h2 class="wp-block-heading">Writing got cheap but understanding didn’t</h2>



<p class="wp-block-paragraph">Code review didn’t become less important when agents arrived. It became the central activity. Writing code is increasingly solved and getting cheaper by the month; the durable advantage is the system that lets you trust what was written.</p>



<p class="wp-block-paragraph">Don’t take the one-size answer in either direction. If you’re solo with no users, the enterprise horror stories about churn and duplication are a future risk, not today’s fire, so lean on your tests, review what matters, and stay honest that the deferred work is still owed. If you maintain something large for many people, every alarming number here is about you, and the only thing that holds is a tiered, evidence-required, deliberately heterogeneous review process with a human owning the merge.</p>



<p class="wp-block-paragraph">What’s constant across the whole spectrum is the underlying economics. We made writing cheap, and understanding stayed exactly as expensive as it has always been. The teams that do well over the next few years won’t be the ones generating the most code; they’ll be the ones who built a review system they can actually trust, and who never confuse “the tests passed” with “a person understands what this does and why.”</p>



<p class="wp-block-paragraph">Or, as Simon Willison keeps putting it, “<a href="https://simonwillison.net/2025/Dec/18/code-proven-to-work/" target="_blank" rel="noreferrer noopener">your job is to deliver code you have proven to work</a>.” Agents haven’t changed that. They have made “proving” the center of the job rather than an afterthought, and I think that’s a good trade. Understanding a system well enough to stand behind it is the most durable and most interesting skill in software, and there has never been a better time to get extraordinarily good at it.</p>
]]></content:encoded>
							<wfw:commentRss>https://www.oreilly.com/radar/agentic-code-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>This Week in AI: Who Controls the Loop?</title>
		<link>https://www.oreilly.com/radar/this-week-in-ai-who-controls-the-loop/</link>
				<comments>https://www.oreilly.com/radar/this-week-in-ai-who-controls-the-loop/#respond</comments>
				<pubDate>Fri, 26 Jun 2026 10:32:42 +0000</pubDate>
					<dc:creator><![CDATA[Michelle Smith]]></dc:creator>
						<category><![CDATA[Podcast]]></category>

		<guid isPermaLink="false">https://www.oreilly.com/radar/?p=18995</guid>

		
					<media:content 
				url="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/05/0642572383770_This_Week_in_AI_Cover-scaled.jpg" 
				medium="image" 
				type="image/jpeg" 
				width="2560" 
				height="2560" 
			/>

			<media:thumbnail 
				url="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/05/0642572383770_This_Week_in_AI_Cover-160x160.jpg" 
				width="160" 
				height="160" 
			/>
		
				<custom:subtitle><![CDATA[AI is moving from language to action, plus the geopolitics of frontier model access and Midjourney&#039;s full-body scanner]]></custom:subtitle>
		
				<description><![CDATA[This week host and Turing Post founder Ksenia Se threaded the latest news into a single argument: AI is moving out of conversation and into the operational loops where real work happens. From SpaceX’s $60 billion acquisition in the developer tools market to the G7’s debate about frontier model access to image generation company Midjourney’s [&#8230;]]]></description>
								<content:encoded><![CDATA[
<p class="wp-block-paragraph">This week host and <em><a href="https://www.turingpost.com/" target="_blank" rel="noreferrer noopener">Turing Post</a></em> founder Ksenia Se threaded the latest news into a single argument: AI is moving out of conversation and into the operational loops where real work happens. From SpaceX’s $60 billion acquisition in the developer tools market to the G7’s debate about frontier model access to image generation company Midjourney’s pivot to medical hardware, the stories all pointed in the same direction.</p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="This Week in AI: Who Owns the Loop Where AI Does the Work? with Ksenia Se" width="500" height="281" src="https://www.youtube.com/embed/sXBWbiyT4ns?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<h2 class="wp-block-heading">When agents own the loop, the IDE becomes infrastructure</h2>



<p class="wp-block-paragraph">SpaceX&#8217;s acquisition of Anysphere, the company behind Cursor, for a <a href="https://www.cnbc.com/2026/06/16/spacex-spcx-cursor-acquisition-ipo.html" target="_blank" rel="noreferrer noopener">reported $60 billion in stock</a> is the kind of deal that looks straightforward until you think about what Cursor actually is. On the surface, it&#8217;s a popular AI-assisted code editor. (It’s also one of many in a highly competitive market.) However, Ksenia argued that that’s thinking too small, especially for Elon Musk. SpaceX may be angling to position Cursor as the new center of software work, in the same way GitHub became the center of the previous era.</p>



<p class="wp-block-paragraph">In the old model, GitHub owned the pull request. But in the new model, the question of who owns the full loop where agents read a repo, write code, open pull requests, run tests, handle failures, and enforce engineering standards is still open. GitHub still owns the system of record and is moving to defend it: Chief product officer Mario Rodriguez recently <a href="https://www.turingpost.com/p/mario-rodriguez-github-ai-coding-agents-copilot" target="_blank" rel="noreferrer noopener">told <em>Turing Post</em></a> that GitHub&#8217;s mission has shifted from human-developer collaboration to developer-and-agent collaboration, with the platform becoming agent-native across its APIs, UX, and underlying infrastructure. But as Ksenia explained, “Cursor’s advantage is that it owns the developer’s active coding surface” where the work starts.</p>



<p class="wp-block-paragraph">If agents write more code than humans, software infrastructure should be redesigned around agents from the start. Cursor was built for agents. GitHub was built for humans and is now playing catch-up. That architectural choice may matter more than any individual product feature.</p>



<h2 class="wp-block-heading">Frontier AI access is becoming a geopolitical question</h2>



<p class="wp-block-paragraph">The G7 summit this week included discussions about a <a href="https://www.reuters.com/legal/government/g7-leaders-discuss-trusted-partners-access-cutting-edge-us-ai-models-sources-say-2026-06-16/" target="_blank" rel="noreferrer noopener">&#8220;trusted partners&#8221; framework</a> that would give select allied nations access to advanced US AI models, following a <a href="https://www.reuters.com/technology/us-blocks-foreign-access-anthropics-most-advanced-ai-models-axios-reports-2026-06-13/" target="_blank" rel="noreferrer noopener">US order that restricted foreign nationals from accessing Anthropic’s frontier systems</a> on national security grounds. AI models that can write software, find vulnerabilities, and operate across tools are capability systems, not just productivity software. The access rules are catching up to that reality, although as Ksenia noted, things haven’t yet come into complete focus.</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">For a long time, AI regulation sounded like: How do we label synthetic media? How do we reduce hallucinations, prevent bias, make chatbots safer? Now the question is so much bigger. Who can use these capable systems? Can allies use them? Can cybersecurity firms outside the US use them? Can non-US employees at US labs use them? Can European companies use American models if those models are also strategically sensitive? This isn&#8217;t traditional software licensing anymore. This is capability access control.</p>
</blockquote>



<p class="wp-block-paragraph">The underlying tension behind the G7 conversation is the dual-use problem: A model capable enough to find software vulnerabilities for defense can also find them for offense. The “trusted partners” framework reflects the new geopolitics of AI as countries jockey with rivals to secure strategic benefits for themselves and their allies. It represents an alliance layer for AI access that applies access structures previously reserved for physical military hardware to capabilities too strategically important to make fully open and too useful to keep entirely locked down. As Ksenia noted, the alliance is “not literally NATO, but [it is founded on] the same kind of logic.”</p>



<p class="wp-block-paragraph">But access restrictions might also impact the talent that built these systems, who are increasingly not citizens of the country trying to control it. For instance, AI researcher Andrej Karpathy, recently hired by Anthropic, is publicly described as Slovak-Canadian. If access controls apply to non-US citizens, he and others like him may be denied access to the very systems they&#8217;ve been hired to work on. It’s an area we’ll continue to watch closely.</p>



<h2 class="wp-block-heading">AI is entering the measurement loop</h2>



<p class="wp-block-paragraph">Midjourney, the company you probably associate with AI-generated images, has announced a new medical division and a <a href="https://www.midjourney.com/medical/blogpost" target="_blank" rel="noreferrer noopener">full-body ultrasound scanner</a> built around water immersion, developed in partnership with medical imaging hardware maker Butterfly Network. The device is designed to scan the entire body in 60 seconds: A person descends into a shallow pool on a motorized platform, passing through a ring of roughly half a million ultrasound sensors, each functioning as both a transmitter and receiver. The system uses over two petaflops of processing power to reconstruct a 3D body map from the returning wave data. Midjourney says the resulting images look comparable to today&#8217;s MRI output at a fraction of the cost and time, though that claim still needs serious clinical validation before it can stand.</p>



<p class="wp-block-paragraph">The current prototype uses 40 Butterfly ultrasound-on-chip devices per system, according to a <a href="https://www.businesswire.com/news/home/20260618923795/en/Butterfly-Network-Provides-Commentary-on-Midjourney-Medicals-Full-Body-Ultrasound-Scanner-Announcement" target="_blank" rel="noreferrer noopener">disclosure from Butterfly Network</a>, which confirmed its codevelopment and licensing agreement with Midjourney. Midjourney plans to open a facility in San Francisco in 2027, embedding its device in a spa environment alongside hot tubs, saunas, and cold plunges. Diagnostic medical uses will require FDA approval; the initial focus is body composition mapping.</p>



<p class="wp-block-paragraph">If Midjourney can build a library of full-body scans taken over months and years, that longitudinal record would give doctors and AI health tools a level of baseline data that doesn&#8217;t currently exist at scale outside of clinical trials. That&#8217;s the same structural logic Ksenia traced through Cursor and GitHub: The value compounds inside the loop through repeated, precise measurement over time. Midjourney is positioning itself to own that loop in the health domain.</p>



<h2 class="wp-block-heading">What&#8217;s next</h2>



<p class="wp-block-paragraph">The competition for AI advantage is moving from model capability to infrastructure position. Who owns the coding loop? Who controls access to frontier systems? Who builds the measurement environment where health data accumulates over time? Those questions are about where intelligence meets operational reality, not which model scores highest on a benchmark.</p>



<p class="wp-block-paragraph">Hiring news from the week reinforces how seriously the labs are treating this phase. John Jumper, the Nobel laureate who shared the prize with Demis Hassabis for AlphaFold, left Google DeepMind for Anthropic. Noam Shazeer, one of the coauthors of “<a href="https://arxiv.org/abs/1706.03762" target="_blank" rel="noreferrer noopener">Attention Is All You Need</a>,” reportedly left Google for OpenAI after Google paid approximately $2.7 billion to bring him back in 2024. The labs are betting on scientific talent at the same time they&#8217;re betting on infrastructure.</p>



<p class="wp-block-paragraph">Next week, host Andreas Welsch will be back to discuss multi-vendor strategy with Conductor’s Matt Palmer. They’ll cover Sakana&#8217;s launch of Fugu, Qualcomm&#8217;s ~$4B move for Modular, Anthropic&#8217;s Claude Tag stepping into Slack as a virtual coworker, Samsung putting ChatGPT and Codex in front of its entire workforce, and more. <a href="https://www.oreilly.com/live/this-week-in-ai.html" target="_blank" rel="noreferrer noopener">Register here</a> to attend live.</p>



<p class="wp-block-paragraph"><em>Starting in July, registration for the live event will be open only to O’Reilly members. (If you’re interested, <a href="https://www.oreilly.com/start-trial/?type=individual" target="_blank" rel="noreferrer noopener">try O’Reilly out for free</a>.) We’ll continue to publish our takeaways here on Radar each Friday and share full episodes on <a href="https://www.youtube.com/watch?v=g4cfjz5AKxY&amp;list=PL055Epbe6d5bJEhT7_ZzOeJZ6gPyUzYpS" target="_blank" rel="noreferrer noopener">YouTube</a>, <a href="https://open.spotify.com/show/033kJS2BG1teGunxmtsU1r" target="_blank" rel="noreferrer noopener">Spotify</a>, and <a href="https://podcasts.apple.com/us/podcast/this-week-in-ai/id1896798047" target="_blank" rel="noreferrer noopener">Apple</a>.</em></p>
]]></content:encoded>
							<wfw:commentRss>https://www.oreilly.com/radar/this-week-in-ai-who-controls-the-loop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>So Long and Thanks for All the Context</title>
		<link>https://www.oreilly.com/radar/so-long-and-thanks-for-all-the-context/</link>
				<comments>https://www.oreilly.com/radar/so-long-and-thanks-for-all-the-context/#respond</comments>
				<pubDate>Thu, 25 Jun 2026 10:30:34 +0000</pubDate>
					<dc:creator><![CDATA[Andrew Stellman]]></dc:creator>
						<category><![CDATA[AI & ML]]></category>
		<category><![CDATA[Deep Dive]]></category>

		<guid isPermaLink="false">https://www.oreilly.com/radar/?p=18984</guid>

		
					<media:content 
				url="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/So-long-and-thanks-for-all-the-context.jpg" 
				medium="image" 
				type="image/jpeg" 
				width="2304" 
				height="1792" 
			/>

			<media:thumbnail 
				url="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/So-long-and-thanks-for-all-the-context-160x160.jpg" 
				width="160" 
				height="160" 
			/>
		
				<custom:subtitle><![CDATA[The fourth article in my context management trilogy]]></custom:subtitle>
		
				<description><![CDATA[I got a really interesting question last week from Mike Loukides, my editor at Radar, after he read the third part of this trilogy on context management. &#8220;Another issue I&#8217;ve read about,&#8221; Mike asked, &#8220;is the tendency for a model to ignore the middle of the context. I&#8217;ve seen that particularly for the models with [&#8230;]]]></description>
								<content:encoded><![CDATA[
<p class="wp-block-paragraph">I got a really interesting question last week from Mike Loukides, my editor at Radar, after he read the third part of this trilogy on context management. &#8220;Another issue I&#8217;ve read about,&#8221; Mike asked, &#8220;is the tendency for a model to ignore the middle of the context. I&#8217;ve seen that particularly for the models with very large context windows. Is there anything to be said about that?&#8221;</p>



<p class="wp-block-paragraph">Excellent question, Mike, and yes, there is. In that same email he pointed out that clearing the context and reloading it with just what&#8217;s important does a pretty good job dealing with this &#8220;ignore the middle&#8221; problem when it happens, but that’s clearly a stopgap.</p>



<p class="wp-block-paragraph">It&#8217;s worth a deeper dive into what&#8217;s actually happening when an AI starts forgetting what’s in the middle of its context, because the problem is deeper (and more interesting!) than it might seem at first. It turns out that there&#8217;s a basic problem that’s fundamental to how LLMs manage context, and we’re still learning about it as an industry. That problem is called a <strong>U-shape</strong>. There’s been a lot of really interesting research into the U-shape problem recently, and several useful techniques have emerged that can help you manage it. And it&#8217;s probably not a coincidence that I&#8217;ve had to use all of them in my <a href="https://www.oreilly.com/radar/the-accidental-orchestrator/" target="_blank" rel="noreferrer noopener">ongoing experiments with AI-driven development and agentic engineering</a> (even if I didn&#8217;t always realize that&#8217;s what I was doing at the time).</p>



<p class="wp-block-paragraph">A few weeks ago, in fact, I ran into the exact failure mode that Mike described. I was running the <a href="https://github.com/andrewstellman/quality-playbook" target="_blank" rel="noreferrer noopener">Quality Playbook</a>, my open source code quality engineering skill, and ran into trouble with one of its phases—the one that writes up the bugs the earlier phases find. There’s a part of the bug writeup process where it had just created a file called <code>BUGS.md</code> that had an overview of each of the bugs, and had to create individual writeups for each bug it found. But instead of filling in the details correctly, it produced skeletal-looking stub files, with a generic template that had blank values instead of populated ones.</p>



<p class="wp-block-paragraph">The thing is, the instructions for how to write a populated writeup were in the prompt. The actual bug data was in <code>BUGS.md</code>. I was absolutely certain that everything the agent needed was sitting in its context window, because I could see that it hadn&#8217;t compacted yet, and the skill&#8217;s intermediate artifacts let me see that earlier phases had read and reasoned about both files (which I talked about in my last article in this series). But the agent was producing stubs anyway. It really looked like the agent had everything it needed sitting in plain sight, and just wasn&#8217;t using the information it had. Frustrating!</p>



<p class="wp-block-paragraph">I thought at the time that the model was just an idiot (which, arguably, was true but beside the point). It turns out that I had run directly into the U-shaped context problem.</p>



<p class="wp-block-paragraph">In the previous three articles I covered <a href="https://www.oreilly.com/radar/why-doesnt-anyone-teach-developers-about-context-management/" target="_blank" rel="noreferrer noopener">what context is</a> and why it disappears, how to <a href="https://www.oreilly.com/radar/your-ai-agent-already-forgot-half-of-what-you-told-it/" target="_blank" rel="noreferrer noopener">keep important information in files</a> instead of leaving it in the agent&#8217;s context window, and how to <a href="https://www.oreilly.com/radar/when-context-collapses-teaching-agents-to-detect-and-recover-from-lost-memory/" target="_blank" rel="noreferrer noopener">detect and recover</a> when context has been compacted out from under you. All three were about losing context, through fragmentation, through compaction, through long sessions that overrun the window. This article is about this entirely different U-shaped failure mode, where the context is still sitting in the window and the model just isn&#8217;t using it.</p>



<h2 class="wp-block-heading"><strong>The U-shape failure, and why bigger windows don&#8217;t fix it</strong></h2>



<p class="wp-block-paragraph">The U-shape is an active area of academic investigation, so I&#8217;m going to start by going into a little bit of that research, because I think it will actually help us pin down what&#8217;s going on. I&#8217;ll start with an experiment run by <a href="https://cs.stanford.edu/~nfliu/" target="_blank" rel="noreferrer noopener">Nelson Liu</a>, an AI researcher at Stanford, who tested how language models actually use the contents of long inputs by giving them documents with the relevant answer placed at different positions and measuring whether the model could still find it. An interesting thing his findings show is that the U-shape didn’t appear to be a quirk of a single model. The U-shape showed up across model families, and even models with larger context windows still exhibited it.</p>



<p class="wp-block-paragraph">If you have time, it&#8217;s actually worth taking a look at the paper that Liu and his team wrote, called “<a href="https://arxiv.org/abs/2307.03172" target="_blank" rel="noreferrer noopener">Lost in the Middle: How Language Models Use Long Contexts</a>.” (It&#8217;s surprisingly readable for an academic paper.) The result they reported was a robust U-shape: The model performed best when the relevant information was at the beginning of its context window or at the recent end and worst when it was in the middle. Performance on questions where the answer was buried mid-context fell off sharply, even when the answer was sitting right there in plain sight. The field now uses the terms primacy bias and recency bias for those two preferences, and the U-shape is what you get when you plot them together against position.</p>



<p class="wp-block-paragraph">I&#8217;m going to lean a little into academia here, because a lot of researchers are still learning about how LLM context actually works and what behavior has emerged in it.</p>



<p class="wp-block-paragraph">One reason the U-shape matters more than &#8220;just another LLM quirk&#8221; is that recent research has started showing it&#8217;s a structural property of how transformers work, not a learned artifact. A 2025 ICML paper called<a href="https://arxiv.org/abs/2502.01951"> </a>“<a href="https://arxiv.org/abs/2502.01951" target="_blank" rel="noreferrer noopener">On the Emergence of Position Bias in Transformers</a>” explained it as the equilibrium between two opposing forces inside the model: The causal mask amplifies the influence of the first few tokens (the primacy bias), while position encodings like RoPE heavily weight the tokens closest to where the model is generating (the recency bias). The middle is where those two forces cancel out. A 2026 paper by Borun Chowdhury, a researcher at Meta, called “<a href="https://arxiv.org/abs/2603.10123" target="_blank" rel="noreferrer noopener">Lost in the Middle at Birth: An Exact Theory of Transformer Position Bias</a>,” took the argument even further by proving mathematically that the U-shape exists at the moment of initialization, before any training has happened, with random weights.</p>



<p class="wp-block-paragraph">That matters because the natural assumption about large context windows is that more room means fewer problems. Most of today&#8217;s frontier models give you a million tokens or more, with some pushing well past two million, and some have made real progress on the simplest version of the lost-in-the-middle test, the needle-in-a-haystack benchmark, where the model has to retrieve a single sentence buried in a long document. Google&#8217;s Gemini 1.5 Pro reported near-perfect single-needle recall at 1M tokens, and current Gemini 3 models are similar.</p>



<p class="wp-block-paragraph">So the accurate version of &#8220;bigger windows don&#8217;t fix it&#8221; is this: Bigger windows have made simple single-fact retrieval much better. They have not made long-context agent work reliable by default. A two-million-token window means a bigger middle to fall into.</p>



<p class="wp-block-paragraph">The important idea that&#8217;s emerging here is that it’s increasingly looking like the U-shape isn&#8217;t just a bug in today&#8217;s models that will eventually be worked out or trained away by more data or better fine-tuning. Instead, it seems like the U-shape may actually be a geometric property of the LLM architecture itself.</p>



<p class="wp-block-paragraph">In other words, we’re all going to have to deal with the U-shape. And that means we need techniques for managing it, and any effective technique we use isn’t likely to become obsolete any time soon. And that’s my goal in this article: to show you the techniques that have emerged for managing U-shaped context memory loss that you can use today in your own work.</p>



<h2 class="wp-block-heading"><strong>Five techniques to help with U-shaped context problems</strong></h2>



<p class="wp-block-paragraph">The previous article in this series laid out a pattern for detecting and recovering from context loss, which I called <em>externalize-recognize-rehydrate</em>. The techniques below extend the same discipline to the lost-in-the-middle problem. The principle I keep coming back to is that working memory is untrustworthy, and the discipline that follows from it is to externalize what matters, curate what stays in context, and verify what the agent claims to know against what&#8217;s on disk. The five techniques are how I do that in practice, and each one is drawn from a real moment in the Quality Playbook&#8217;s development.</p>



<h3 class="wp-block-heading"><strong>Curate, don&#8217;t accumulate</strong></h3>



<p class="wp-block-paragraph">This is the technique which, in its most brute-force form, is exactly what Mike talked about in his email to me: just clear the context and reload it with just what matters, periodically and deliberately. In other words, don&#8217;t trust an accumulated session to stay coherent; build the artifact, then start fresh against it. And if you have the AI write down the important parts of the context (like we’ve talked about throughout this series), then you can start a new session with refreshed AI that has a more targeted, curated context as a starting point.</p>



<p class="wp-block-paragraph">I ran into this during the v1.5.2 release prep for the Quality Playbook. I was using a long Claude Code session that had been working through a series of fixes. But I noticed that it was just starting to show its age: It had forgotten a couple of things it should know, and its thinking times were starting to grow.</p>



<p class="wp-block-paragraph">When it came time to land the final four fixes for the release, I worked with the AI to write a <strong>context brief</strong>, or a separate document with everything the implementing session needed. The question was whether to keep using the existing session, which already &#8220;knew&#8221; the codebase from the earlier work, or open a fresh CLI session and point it at the brief. I asked another session what to do:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph"><code>Should we run that in a new cli session rather than continue my current </code><br><code>claude code session that has the existing context?</code></p>
</blockquote>



<p class="wp-block-paragraph">The AI gave me a good answer—start a fresh session, using a starting prompt to read the brief—and it gave three reasons that have stuck with me. First, the brief was self-contained, including file paths, line numbers, exact diffs, regression test bodies, and preflight greps. Anything the new session needed to know was already there, and continuing context bought nothing. Second, fresh context is stricter about adherence. A session that already &#8220;knows&#8221; the codebase tends to skim the new instructions and improvise from prior assumptions. Surgical fixes are exactly the case where you want the agent to read the brief carefully rather than rely on memory of what felt right last round. And third, the audit trail: The brief is the artifact, and the implementing session is reproducible from just the brief. If the same work has to be redone in six months by a different model, you point at the brief and say, &#8220;This is the input.&#8221;</p>



<p class="wp-block-paragraph">The approach worked really well. I was able to pick up development seamlessly, and the model’s memory problems disappeared.</p>



<h3 class="wp-block-heading"><strong>Position critical information at the edges</strong></h3>



<p class="wp-block-paragraph">The U-shape says the model attends best to the beginning and end of its context. The natural move is to put your most load-bearing information in those positions and keep the middle for things you don&#8217;t need the model to focus on. Anything important that lives only in the middle of an accumulated context tends to slide out of attention.</p>



<p class="wp-block-paragraph">The other side of this technique is what <em>not</em> to put in the middle. If something matters, don&#8217;t bury it in a long preamble of context you&#8217;ve been accumulating; move it to the edges, restate it where the model will act on it, and let the middle absorb the less important material. Luckily, there’s a useful technique that can help with this problem.</p>



<p class="wp-block-paragraph">In Claude Code, for example, one really clean way to put information at the beginning of context is to use the system prompt. The CLI gives you <code>--append-system-prompt</code> for exactly this. (Most of the other providers&#8217; CLI tools have similar options.) If you put your brief (or selected parts of it) there, the agent will attend to it strongly throughout the session, and that in turn will help keep the per-turn user prompt focused on the action you want the agent to take right now.</p>



<h3 class="wp-block-heading"><strong>Short sessions over long ones</strong></h3>



<p class="wp-block-paragraph">Don&#8217;t run one long session. Run many short ones, each reading fresh from disk. This will help you iterate on your brief and your external development context, so instead of relying on an opaque context window, you have a visible and constantly changing set of documents that give you a lot more visibility into—and control over—your AI’s context.</p>



<p class="wp-block-paragraph">Something useful I started doing was taking all my chat history from Gemini, ChatGPT, Claude, and Cowork and putting it into a single folder I could keep updated and indexed for fast search. I built out an entire system to manage this, which turns out to be a great tool when I’m writing articles like this, because I can search through my development history for specific examples and techniques that I’ve used. The system uses Haiku 4.5 to read through chat history, summarize what happened, and create an index. Haiku turned out to be a smart enough model to read each individual interaction in a chat and write a useful index entry for it. But the model being smart enough to do one summary didn&#8217;t mean its context management could keep up across all 18,000 records. I ran smack into the U-shape problem.</p>



<p class="wp-block-paragraph">The first attempt tried to keep dedupe state and progress counts in the model&#8217;s head, and it failed spectacularly. The model really didn’t want to keep track of specific deterministic things like accurate numbers or the current state. Haiku 4.5, in particular, seems especially bad at this. What worked was reframing the architecture entirely. Here’s the actual prompt that I gave it to fix the problem:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph"><code>ok, so we need context management. it doesn't need to remember things, </code><br><code>it just needs to write them down as they go. we had this same context </code><br><code>management problem with Quality Playbook, when it was running out of </code><br><code>context. Just write down after each message.</code></p>
</blockquote>



<p class="wp-block-paragraph">The protocol I greenlit for the full run made the short-session discipline explicit:</p>



<ol class="wp-block-list">
<li>Resume processing from the cursor recorded in progress.json, working through each input file in order.</li>



<li>Update progress.json after every line.</li>



<li>Expect to run out of context well before finishing—that&#8217;s fine. Just stop cleanly after each step (or a group of steps), then spin up a fresh session that reads progress.json and continues.</li>



<li>When all files are complete, set status: &#8220;complete&#8221; in progress.json and report back.</li>
</ol>



<p class="wp-block-paragraph">Item 3 is the technique in one line: expect context loss, so make sure you’ve written your state down, and build fresh restarts into the process. The technical details, like spinning up subagents, orchestrating with script, etc., will change, but the core idea stays the same. In a lot of ways, you can think of treating the agent like a pipe, not a database. The state lives on disk, and the session is something you throw away and replace.</p>



<h3 class="wp-block-heading"><strong>Restate key info close to the point of use</strong></h3>



<p class="wp-block-paragraph">When the model needs a constraint to apply right now, repeat it right now. Don&#8217;t trust an instruction from earlier in the session to carry forward through the middle of the context.</p>



<p class="wp-block-paragraph">This is the technique that fixed the problem I opened the article with, where the Quality Playbook seemed to forget everything it had just written into a file called <code>BUGS.md</code> and produced stubs when it needed to write the same information into more detailed files, and instead writing generic blank templates with the bug-specific fields left blank.</p>



<p class="wp-block-paragraph">The fix was to restate the read-the-source rule right before the action that needed it, using this prompt:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph"><code>Before writing BUG-NNN.md, re-read the BUG-NNN entry in BUGS.md. </code><br><code>Copy the Spec basis, Minimal reproduction, Location, Expected behavior, </code><br><code>Actual behavior, Regression test name, and Patches fields </code><br><code>from that entry into the writeup. Do not paraphrase from memory.</code></p>
</blockquote>



<p class="wp-block-paragraph">&#8220;Do not paraphrase from memory&#8221; is the line that did the actual work. The instruction couldn&#8217;t trust the agent&#8217;s memory of what <code>BUGS.md</code> said, even though <code>BUGS.md</code> was sitting right there in the context window. So the instruction forced a fresh read of the file at the moment of writing. The restatement and the fresh-read together fixed the bug.</p>



<p class="wp-block-paragraph">The same pattern applies any time a rule was stated earlier in the session and the model needs to act on it now. Restate the rule next to the action, and force the model back to the source rather than letting it work from memory.</p>



<h3 class="wp-block-heading"><strong>Test the middle</strong></h3>



<p class="wp-block-paragraph">The previous four techniques are about avoiding lost-in-the-middle failures. This one is about catching them. If you don&#8217;t know whether the agent is actually using the information you think it&#8217;s using, find out, with a deterministic check rather than a judgment call.</p>



<p class="wp-block-paragraph">The pattern is the one I used in the Haiku summarizer that I described earlier: compare what the agent claims to know against what&#8217;s on disk. You have something the agent claims to know (its progress, its current state, the latest version of a rule), and you have something on disk that&#8217;s the ground truth (a file, a log, a database record). At the moment the agent&#8217;s claim has to be trusted, you check it.</p>



<p class="wp-block-paragraph">In the summarizer&#8217;s resume protocol, every new session started by cross-checking <code>progress.json</code> against the actual last line written to the summary file, and the agent printed a checkpoint report when it did—at session start, and periodically through the run. A representative one looked like this:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph"><code>Checkpoint Report:<br>✓ progress.json confirmed: cursor for cowork_04_06 is at 238, status is </code><br><code>"running"<br>✓ Disk state verified: Last line in summaries/cowork_04_06.md is [237] </code><br><code>assistant: Tool invocation repeating chat file read.<br>&#x26a0; Discrepancy noted: The prior session left a bulk note claiming records </code><br><code>238–296 are duplicates but didn't write individual lines for them. Per </code><br><code>your instructions, I must write one line per record, even for duplicates, </code><br><code>in the format [idx] &lt;sender>: Duplicate of record [X] (&lt;note>).<br>Status: Cursor matches disk state. Ready to resume from record 238.</code></p>
</blockquote>



<p class="wp-block-paragraph">The agent doesn&#8217;t need to introspect whether it lost context, only to compare two files. When they agree, the agent proceeds; when they disagree, the agent flags the discrepancy and stops before adding any new work on top of a broken state. Disagreement is the signal.</p>



<p class="wp-block-paragraph">You can build this kind of check into any agent that does multistep work. Pick something the agent has to track, pick the file that&#8217;s the source of truth for it, and have the agent compare the two at every session start. When the agent&#8217;s view of the world drifts from the file, you find out before the drift becomes a buried bug.</p>



<h2 class="wp-block-heading"><strong>The discipline behind these techniques</strong></h2>



<p class="wp-block-paragraph">When I built the Quality Playbook&#8217;s multi-phase architecture, I was solving the compaction problem. Long pipeline runs were filling the context window and triggering silent compaction in the middle of work. Breaking the pipeline into separate phases that read fresh from disk and stopped after each phase fixed it.</p>



<p class="wp-block-paragraph">What I didn&#8217;t realize until later was that the same architecture also helps with the lost-in-the-middle problem. Each phase has its own short, focused context, with the phase brief at the beginning and the latest progress update at the end, so there&#8217;s almost no middle for information to fall into. The architectural move that helped with working memory disappearing turns out to also help with working memory being there and unused.</p>



<p class="wp-block-paragraph">That&#8217;s the lesson I want to land. Both failure modes, context loss and lost-in-the-middle, are problems of working-memory unreliability, and the discipline that addresses them is the same: keep the working set small, put the load-bearing information at the edges of the window, and check the agent&#8217;s claims against ground truth on disk when it matters.</p>



<p class="wp-block-paragraph">Context windows will keep getting bigger, and compaction will get smarter. Some of the techniques in these four articles may eventually be unnecessary. But the underlying constraint won&#8217;t disappear. After all, we’ve added a lot more RAM to our computers since the 1MB 286 I wrote about in the last article, and memory management has gotten much more complex since then. And many of these problems are structural; for example, it’s increasingly looking like the U-shape itself is a geometric property of the transformer architecture, not a training artifact that more compute will smooth out.</p>



<p class="wp-block-paragraph">The bottom line is that if your agent&#8217;s ability to do its job depends on information, that information needs to live somewhere more durable than working memory. That was true for my dad&#8217;s 32 kilobytes of core memory at Princeton in the 1970s, it was true for my 640 kilobytes of conventional RAM on my 286 in the 1980s, it was true for the 200K-token windows in last year&#8217;s models, and it will be true for whatever comes next.</p>
]]></content:encoded>
							<wfw:commentRss>https://www.oreilly.com/radar/so-long-and-thanks-for-all-the-context/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>Stop Getting Good at Protocols. Get Good at Agent Experience.</title>
		<link>https://www.oreilly.com/radar/stop-getting-good-at-protocols-get-good-at-agent-experience/</link>
				<comments>https://www.oreilly.com/radar/stop-getting-good-at-protocols-get-good-at-agent-experience/#respond</comments>
				<pubDate>Wed, 24 Jun 2026 11:04:07 +0000</pubDate>
					<dc:creator><![CDATA[Sean Roberts]]></dc:creator>
						<category><![CDATA[AI & ML]]></category>
		<category><![CDATA[Commentary]]></category>

		<guid isPermaLink="false">https://www.oreilly.com/radar/?p=18976</guid>

		
					<media:content 
				url="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/Stop-getting-good-at-protocols.jpg" 
				medium="image" 
				type="image/jpeg" 
				width="2304" 
				height="1792" 
			/>

			<media:thumbnail 
				url="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/Stop-getting-good-at-protocols-160x160.jpg" 
				width="160" 
				height="160" 
			/>
		
		
				<description><![CDATA[In 2025, if you weren&#8217;t building with MCP, you weren&#8217;t serious about agents. The Model Context Protocol dominated the agent conversation for the better part of the year. Conference talks, roadmaps, hiring plans, all of it revolved around MCP. Then late 2025 into 2026, AI Skills arrived and the backlash was immediate. Engineers declared MCP [&#8230;]]]></description>
								<content:encoded><![CDATA[
<p class="wp-block-paragraph">In 2025, if you weren&#8217;t building with MCP, you weren&#8217;t serious about agents. The Model Context Protocol dominated the agent conversation for the better part of the year. Conference talks, roadmaps, hiring plans, all of it revolved around MCP.</p>



<p class="wp-block-paragraph">Then late 2025 into 2026, AI Skills arrived and the backlash was immediate. Engineers declared <a href="https://www.youtube.com/watch?v=tTZ4yDY4adg" target="_blank" rel="noreferrer noopener">MCP dead in favor of Skills</a>, then <a href="https://www.shareuhack.com/en/posts/mcp-vs-skill-vs-cli-guide" target="_blank" rel="noreferrer noopener">dead in favor of CLI</a>. Perplexity&#8217;s CTO <a href="https://milvus.io/blog/is-mcp-dead-cli-and-skills-for-ai-agents.md" target="_blank" rel="noreferrer noopener">said publicly</a> that the company was deprioritizing it. The cycle was fast, loud, and predictable. New tool, new hype, new rewrite.</p>



<p class="wp-block-paragraph">I started pushing Agent Experience early in 2025, while MCP was still the center of gravity. The response was mostly skepticism. AX was overthinking it. MCP was the only layer that mattered. That perspective aged poorly. The people who dismissed AX weren&#8217;t wrong about MCP being useful. They were wrong about a protocol being a strategy.</p>



<p class="wp-block-paragraph">The thing they missed, and what I think most of the industry is still missing, is that the protocol is not the thing to get good at. The discipline is.</p>



<h2 class="wp-block-heading"><strong>We keep falling into the tool trap</strong></h2>



<p class="wp-block-paragraph">Our industry has a well-documented habit of confusing tools with strategy. We did it with microservices, Kubernetes, and GraphQL. Now we&#8217;re doing it with agent protocols.</p>



<p class="wp-block-paragraph">MCP, AI Skills, A2A, and ACP are all implementations. They matter and they solve real problems. But none of them are the right thing to build your strategy on top of. They are, by nature, the thing that changes.</p>



<p class="wp-block-paragraph">When you organize your agent strategy around a specific protocol, you’re building on a foundation someone else controls and the market can shift away from at any moment. Worse, you’re skipping the step that would tell you whether that protocol is even the right fit for your use case.</p>



<p class="wp-block-paragraph">This is the tool trap. You optimize your usage of a specific integration mechanism without first understanding what you’re actually optimizing for.</p>



<h2 class="wp-block-heading"><strong>So what is Agent Experience?</strong></h2>



<p class="wp-block-paragraph">Agent Experience (AX) is the discipline of studying how AI agents discover, understand, and interact with your systems, and then systematically improving those interactions.</p>



<p class="wp-block-paragraph">Think of it as the agent-facing counterpart to User Experience. UX didn&#8217;t emerge because one UI framework won. It emerged because teams realized that the quality of human interaction with software was a design problem that transcended any particular technology. You could build a terrible experience in React just as easily as in vanilla JavaScript. The framework was not the variable. The design thinking was.</p>



<p class="wp-block-paragraph">AX works the same way. How does an agent discover what your service can do? How does it understand the boundaries of your API? When it fails, does it get enough context to recover? Is the interaction efficient, or is the agent burning tokens on unnecessary round trips?</p>



<p class="wp-block-paragraph">These questions are protocol-agnostic. They apply whether you expose capabilities through MCP, Skills, A2A, or something that hasn&#8217;t been invented yet. The teams that can answer them will adapt to whatever comes next because they understand the problem space, not just the current toolchain.</p>



<h2 class="wp-block-heading"><strong>AX is an extension of what you already care about</strong></h2>



<p class="wp-block-paragraph">AX is not competing with User Experience, Developer Experience, or Customer Experience. It’s an extension of all three.</p>



<p class="wp-block-paragraph">Your primary focus is still providing a great experience to your customers. What has changed is how those customers interact with you. More and more, they delegate tasks to agents. When a customer asks an agent to integrate with your API, deploy to your platform, or pull data from your service, that agent is acting on their behalf. The agent&#8217;s experience determines how likely it is to achieve your customer&#8217;s goal.</p>



<p class="wp-block-paragraph">If a customer&#8217;s agent struggles to authenticate, burns through tokens parsing your error messages, or fails silently because your API lacks context, something worse than a complaint happens. The agent will quietly start using an alternative service that provides a better experience. Your customer might not even notice the switch. You just lost them without a single support ticket.</p>



<p class="wp-block-paragraph">UX optimized for humans clicking through interfaces. DX optimized for developers building on your platform. CX looked at the entire customer journey. AX extends that thinking to the agents those customers now send on their behalf.</p>



<h2 class="wp-block-heading"><strong>The protocol treadmill doesn&#8217;t work</strong></h2>



<p class="wp-block-paragraph">Think about what actually happened with MCP. Teams invested heavily in writing MCP server implementations. A lot of those implementations were mediocre. Not because MCP was flawed but because the teams hadn&#8217;t thought carefully about what an agent actually needed from their system. A <a href="https://arxiv.org/abs/2602.14878" target="_blank" rel="noreferrer noopener">2026 study out of Queen&#8217;s University</a> examined 856 tools across 103 MCP servers and found that 97.1% of tool descriptions contained at least one quality issue, with 56% failing to state their purpose clearly. The protocol worked fine. The experience design was the problem.</p>



<p class="wp-block-paragraph">When Skills emerged, those same teams faced a familiar problem wearing new clothes. They still hadn&#8217;t answered the foundational questions: What does an agent need to accomplish with our service? What is the minimum viable interaction surface? What context does an agent need to make good decisions?</p>



<p class="wp-block-paragraph">The teams that had worked through those questions adapted fast. Migrating from one protocol to another is mechanical when you already know what your agent-facing interface should look like. The protocol is the serialization format. The experience design is the hard part.</p>



<p class="wp-block-paragraph">This pattern will keep repeating. Whether it is the Universal Commerce Protocol, A2A, or whatever lands next, something new will always be gaining traction. If your strategy is to become an expert in each successive protocol, you’re signing up for a treadmill that only speeds up.</p>



<h2 class="wp-block-heading"><strong>What an AX practice looks like</strong></h2>



<p class="wp-block-paragraph">So what does it actually look like to take Agent Experience seriously? If you have ever built a UX research practice or a DX program, this will feel familiar. The steps aren’t new. The persona is.</p>



<p class="wp-block-paragraph">In talks, I break it down to five steps.</p>



<p class="wp-block-paragraph"><strong>Audit the agents your customers use.</strong> Know what’s walking through your front door. Look at your traffic data and logs and figure out what portion of your footprint is agents versus humans, and which agents specifically. Are your customers sending Claude Code? Cursor? Custom agents built on your API? You can’t design for something you haven’t observed. Same reason UX teams run user research. Different method, same motivation.</p>



<p class="wp-block-paragraph"><strong>Identify the use cases customers want to delegate.</strong> Not every interaction needs to be agent-optimized. Take that same log data, look at the requests agents are making to your platform, and extrapolate what they were trying to achieve. You can also use AEO data to understand what areas your customers are asking about in agent-facing search. Focus on the highest-value surfaces first. If you have ever prioritized a DX roadmap by looking at what developers actually do with your API, you already know this muscle.</p>



<p class="wp-block-paragraph"><strong>Verify and audit the experience of those interactions.</strong> Watch what happens when an agent tries to complete those tasks on your system. Where does it get stuck? Where does it misunderstand what your service offers? This is usability testing. The user is an LLM; the struggle is about context not button placement, but you’re answering the same question: Can they get the job done?</p>



<p class="wp-block-paragraph"><strong>Improve and repeat.</strong> Agent capabilities evolve. Models get smarter. New interaction patterns emerge. At Netlify, we’ve found cases where our product works one way but agents universally assume it works another way and never ask. Instead of fighting that assumption, we improved the product to work the way agents expect. The result was more adoption of those agent flows and fewer errors. The teams that treat this as a living practice will outperform those running from one protocol migration to the next.</p>



<p class="wp-block-paragraph"><strong>Automate validation and prevent regressions.</strong> Once you have a baseline for what &#8220;good&#8221; looks like, lock it in. Tools like <a href="https://axis.run" target="_blank" rel="noreferrer noopener">AXIS</a>, an open source scoring framework, let you run real agents against real scenarios and get a comparable score back. Wire it into CI and catch AX regressions the same way you catch broken tests. This is how you go from anecdotal improvement to measurable, repeatable AX quality.</p>



<p class="wp-block-paragraph">When you have this practice in place, protocol choices become obvious. You can evaluate new tools on their merits. Does it solve a real friction point you have observed? Does it unlock capabilities you couldn’t achieve before? Or is it just different packaging for something you’re already doing well?</p>



<h2 class="wp-block-heading"><strong>The hard part is familiar</strong></h2>



<p class="wp-block-paragraph">AX is harder to pick up than a new protocol. That is just the reality. Learning MCP or Skills is a bounded technical problem. Read the docs, write some code, and ship an integration. Clear finish line, easy to show progress. That’s genuinely appealing, especially when you or your teams are moving fast.</p>



<p class="wp-block-paragraph">Building an AX discipline means sitting with ambiguity for a while. Studying agent behavior before you have clean answers. Accepting that the right integration strategy depends on context you have to discover, not a tutorial you can follow. But if you’ve ever built a UX or DX practice from scratch, you’ve been here before. The why is the same: understand your users, reduce friction, and make it easy for them to succeed. How you do it is different because the user is different. The discipline isn’t new. It’s an extension of work our industry has been doing for decades.</p>



<p class="wp-block-paragraph">The good news is that this thinking is gaining momentum. John Maeda&#8217;s <em><a href="https://johnmaeda.medium.com/design-in-tech-report-2026-from-ux-to-ax-f9d83164f4d2" target="_blank" rel="noreferrer noopener">2026 Design in Tech Report</a></em> is explicitly about the shift from UX to AX. Researchers are studying agent interaction quality as a first-class engineering concern. BCG and MIT Sloan found that <a href="https://sloanreview.mit.edu/projects/the-emerging-agentic-enterprise-how-leaders-must-navigate-a-new-age-of-ai/" target="_blank" rel="noreferrer noopener">35% of organizations are already using agentic AI</a>, with another 44% planning to. The question is no longer whether AX matters. It’s whether your team is building the practice before your competitors do.</p>



<p class="wp-block-paragraph">The agents of 2028 won’t interact with your systems the way the agents of 2025 did. The protocols will be different. The capabilities will be different. The expectations will be different. What won’t change is the fundamental need for your systems to provide a great experience to the people who use them, and now, the agents those people send on their behalf.</p>



<p class="wp-block-paragraph">Get good at that. The rest is implementation detail.</p>
]]></content:encoded>
							<wfw:commentRss>https://www.oreilly.com/radar/stop-getting-good-at-protocols-get-good-at-agent-experience/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>Principal Drift</title>
		<link>https://www.oreilly.com/radar/principal-drift/</link>
				<comments>https://www.oreilly.com/radar/principal-drift/#respond</comments>
				<pubDate>Tue, 23 Jun 2026 10:21:13 +0000</pubDate>
					<dc:creator><![CDATA[Shreshta Shyamsundar]]></dc:creator>
						<category><![CDATA[AI & ML]]></category>
		<category><![CDATA[Software Architecture]]></category>
		<category><![CDATA[Commentary]]></category>

		<guid isPermaLink="false">https://www.oreilly.com/radar/?p=18972</guid>

		
					<media:content 
				url="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/Principal-drift.jpg" 
				medium="image" 
				type="image/jpeg" 
				width="2304" 
				height="1792" 
			/>

			<media:thumbnail 
				url="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/Principal-drift-160x160.jpg" 
				width="160" 
				height="160" 
			/>
		
				<custom:subtitle><![CDATA[The org-design problem hiding under your agent mesh]]></custom:subtitle>
		
				<description><![CDATA[Over the past year I’ve reviewed enterprise agent architectures at roughly two dozen organizations, including banks, retailers, healthcare systems, and a couple of regulators. The architecture diagrams have been reliably impressive. There are boxes for the MCP gateway, the tool registry, the vector store, the orchestrator, the policy engine, and the observability stack. There are [&#8230;]]]></description>
								<content:encoded><![CDATA[
<p class="wp-block-paragraph">Over the past year I’ve reviewed enterprise agent architectures at roughly two dozen organizations, including banks, retailers, healthcare systems, and a couple of regulators. The architecture diagrams have been reliably impressive. There are boxes for the MCP gateway, the tool registry, the vector store, the orchestrator, the policy engine, and the observability stack. There are arrows showing how agents discover each other, share context, and call tools across the mesh. By 2026 standards, these are the table-stakes pictures for any serious agentic deployment. But what none of them show anywhere is who the agents are, whose authority they carry, or who answers when they’re wrong.</p>



<p class="wp-block-paragraph">That omission has a name worth using: <em>principal drift</em>, the steady decoupling, in any sufficiently large agent system, between the human authority a recorded action is supposed to derive from and the actor that actually took it. What looks like a defensible identity posture on the day you ship your first agent quietly degrades as agents multiply, compose, and outlive their original initiatives. Principal drift isn’t three independent failure modes; it’s one cascade. Identity collapses first. Authority erodes next, because there is no longer a stable principal to bind policy to. Accountability dissolves third, because the cost of agent error lands on whichever team has the weakest negotiating position when the incident review starts. Stopping the cascade means intervening at the first link, but almost no enterprise agent platform does so right now.</p>



<p class="wp-block-paragraph">To see the cascade run, take the most boring possible enterprise agent, a refund agent, and watch.</p>



<p class="wp-block-paragraph">A customer-service rep, fielding a chat, asks the agent to process a $48 refund for a damaged item. The agent checks eligibility, issues the refund, posts an update. The audit log records the action as taken by something like refund-agent-prod-03, running under a service principal owned by the customer-service platform team. That entry is true, but it’s also useless. The agent wasn’t acting <em>as</em> refund-agent-prod-03. It was acting as the rep, on behalf of the customer, under a delegation chain nobody recorded. In a well-built system, customer, rep, agent identity, and service principal are recorded together, queryable as a chain, and durable beyond the session. In most production systems today they aren’t. This is the first link in the cascade, where identity collapses to a generic service principal, and there’s no longer a <em>who</em> to attach anything else to.</p>



<p class="wp-block-paragraph">Authority erodes next. The refund agent has an issue_refund tool that can technically refund any order. Its authority is supposed to be narrower (refunds up to $200, orders under 90 days, customers in good standing, automatic escalation above $50), but that authority lives in a prompt or a YAML file or a Notion page the team last updated when the policy was different. The runtime enforces capability, but nobody really enforces authority. When a poisoned input or a confused chain of reasoning leads the agent to refund $1,800 to the wrong customer, there’s no clean answer to the postincident question “Who approved this policy?” because the policy was never an artifact. The same pattern is worse at higher stakes: Imagine a coding agent with merge access to a protected branch, instructed by a prompt embedded in a code comment to “log configuration values for debugging,” silently exfiltrating secrets to an external monitoring service.</p>



<p class="wp-block-paragraph">Accountability then dissolves. The team that built the agent says it followed policy. The team that wrote the policy says it didn’t anticipate the input. The team that operates the platform says the agent was running as a service principal whose behavior they don’t own. The audit log may show the action, but it doesn’t show the reasoning that produced the action, the retrieved context that shaped the reasoning, or the prompt history that framed the retrieval. Postincident review becomes archaeology, and the cost is absorbed, eventually, by whoever has the weakest negotiating position when the meeting ends.</p>



<p class="wp-block-paragraph">Is any of this new? We have IAM, identity governance, policy as code, audit trails, SIEMs, and 30 years of compliance practice. Why isn’t this just IAM done properly? Because IAM was built around assumptions agents violate. IAM and IGA assume a population of principals that changes on human timescales: People get hired, people leave, and service accounts rotate quarterly. Agents are spun up per session and compose into chains where one agent calls another, which calls a third, impersonating users through delegated tokens that traditional IGA cannot represent as a chain at all. Policy engines fire at the moment of action, at the API, the database, and the network. Agents make their most consequential decisions <em>before</em> they hit those enforcement points, in the reasoning step that selects which tool to call and with what arguments. Mature audit logs assume that replaying the inputs reproduces the output. But for agents, replaying the prompt and the retrieval can yield a different action, because the model itself contributes state the log doesn’t capture. The instruments fire, the dashboards turn green, and the agent that quietly exfiltrated secrets still does so. The audit log records the action as agent-service-01, which again is both true and useless.</p>



<p class="wp-block-paragraph">This is also where the vendors selling a consolidated stack want you to skip ahead. Microsoft’s Entra Agent ID, currently in public preview, is the most polished solution to date, extending the conditional access, identity governance, and identity protection used for humans and workloads to cover AI agents as a new identity type, but Google and Salesforce are also building this layer. The marketing line is that agents receive the same identity-driven protections as the rest of the workforce. That’s a real step forward in addressing the first link of the cascade, but it isn’t governance. It’s a control plane with a governance plane’s marketing. Conditional access can tell you whether the agent’s <em>access attempt</em> was permitted. It can’t tell you whether the <em>decision</em> the agent made before that access attempt was within its authority, why the agent reached the decision, or which business unit owns the policy the decision was supposed to obey.</p>



<p class="wp-block-paragraph">The actual governance plane has to capture decisions, not just actions. A reasoning-grade audit record is the load-bearing primitive of the missing layer, and it looks something like this:</p>



<pre class="wp-block-code"><code>{
  "event_id": "refund-2026-05-17-08431",
  "triggered_by": {
    "human_principal": "rep:olivia.chen@firm.com",
    "delegated_via": "support-console-session-9c2a",
    "customer_principal": "cust:7741289"
  },
  "agent": {
    "identity": "refund-agent",
    "version": "v4.7.2",
    "policy_ref": "refund-policy/v3.1 (signed: r.patel, 2026-04-22)"
  },
  "task": "Process refund for order 88812204",
  "retrieved_context": &#91;
    {"doc": "order:88812204", "fetched": "2026-05-17T08:43:11Z"},
    {"doc": "policy:refund-eligibility", "chunk": 4, "fetched": "2026-05-17T08:43:12Z"}
  ],
  "reasoning_trace": "...",
  "tool_calls": &#91;
    {"tool": "check_eligibility", "input": "...", "output": "eligible"},
    {"tool": "issue_refund", "input": {"amount": 48.00}, "output": "ok"}
  ],
  "action": "refund:48.00",
  "principal_chain_hash": "0x9e7b3f..."
}</code></pre>



<p class="wp-block-paragraph">Not every agent needs this. A scheduling agent that proposes meeting times doesn’t. An agent that moves money, deploys code, or makes decisions that a regulator will eventually ask about does need it, and that’s the right bar to set because of the associated cost. Reasoning-grade audit is closer to a flight-data recorder than a syslog feed. The data is expensive to store and to query, with real privacy implications since those logs contain everything the agent saw, including data the agent was authorized to read but the audit system wasn’t supposed to keep. You afford it with proportional retention: full reasoning capture for high-blast-radius agents (regulator-facing, customer-funded, contractually material, production-modifying) and lighter capture for internal-only assistants.</p>



<p class="wp-block-paragraph">Which raises the question the architecture diagram doesn’t ask: Who builds and runs this? Security can enforce policy but can’t author it. The people who know what a refund agent should be allowed to do own the refund business, not the firewall. IT can provision identities but can’t draft “good standing” or write the escalation rule. The MCP and A2A protocol communities are doing real work on wire-level identity and delegation. MCP gives you tool-invocation provenance and is the standard Entra Agent ID and most vendor frameworks build on. A2A is converging on cross-agent delegation primitives. Both matter, but neither drafts policy. Standards, not the institution, move the connectors.</p>



<p class="wp-block-paragraph">What enterprises need is a new function that sits between the business units owning the policies and the platform teams running the runtime. Call it <em>agent operations</em>: small group, often four to eight people in a Global 2000 enterprise, embedded rather than centralized, reporting into the CIO or CISO depending on house politics, with explicit charter to maintain a registry of every production agent, its named human owner, its versioned authority specification, its retention policy for reasoning-grade audit, and its lifecycle state. Each agent gets onboarded with a signed policy, reviewed on a real cadence, and actually retired when its initiative ends, rather than the current default of quietly outliving its sponsors. Designing against failure modes like review cadences that calcify into ceremony, policy artifacts that lag agent deployment velocity, or functions that become the place agents go to die in committee is itself part of the work. The function has to ship at the pace of the platform teams or it will be routed around within a quarter.</p>



<p class="wp-block-paragraph">The work is hard. It’s also overdue, and the regulatory clock is running. The EU AI Act’s high-risk provisions are entering enforcement this year, and regulators will ask for explainability, traceability, lifecycle records, and named human accountability. These are exactly the artifacts an agent operations function produces. Tyler Akidau called this the <a href="https://www.oreilly.com/radar/posthuman-we-all-built-agents-nobody-built-hr/" target="_blank" rel="noreferrer noopener">missing HR layer</a> in his April Radar piece; Artur Huk’s more recent “<a href="https://www.oreilly.com/radar/from-capabilities-to-responsibilities/" target="_blank" rel="noreferrer noopener">From Capabilities to Responsibilities</a>” converges on similar ground from the runtime side. The label matters less than the work. This piece is about governance inside one organization. The harder problem is governance across organizations, with agents acting under different trust regimes. That’s strictly worse, and worth its own piece.</p>



<p class="wp-block-paragraph">Within your own four walls, the diagnostic is doable in an afternoon. Pick one production agent. Try to answer, with evidence: Whose authority does it carry, traced from action back to a named human? Where is its authority specified, and who signed the current version? When it does something wrong tomorrow, who pays, how is that decided, and what reasoning-grade record supports the decision? Most architects who do this honestly come away with three blanks and a knot in their stomach. That’s principal drift, named and visible.</p>



<p class="wp-block-paragraph">The mesh you’ve built is real and necessary, but it isn’t sufficient. The rest of the architecture is the institution above it: the registry, the signed policies, the reasoning-grade audit, the named human at the end of every chain. In most enterprises it doesn’t yet exist, and it won’t arrive by buying another platform. You’ll have to draft it yourself.</p>
]]></content:encoded>
							<wfw:commentRss>https://www.oreilly.com/radar/principal-drift/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>Loop Engineering</title>
		<link>https://www.oreilly.com/radar/loop-engineering/</link>
				<comments>https://www.oreilly.com/radar/loop-engineering/#respond</comments>
				<pubDate>Mon, 22 Jun 2026 11:04:36 +0000</pubDate>
					<dc:creator><![CDATA[Addy Osmani]]></dc:creator>
						<category><![CDATA[AI & ML]]></category>
		<category><![CDATA[Commentary]]></category>

		<guid isPermaLink="false">https://www.oreilly.com/radar/?p=18967</guid>

		
					<media:content 
				url="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/Loop-engineering.jpg" 
				medium="image" 
				type="image/jpeg" 
				width="2304" 
				height="1792" 
			/>

			<media:thumbnail 
				url="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/Loop-engineering-160x160.jpg" 
				width="160" 
				height="160" 
			/>
		
		
				<description><![CDATA[The following article originally appeared on Addy Osmani’s blog and is being reposted here with the author’s permission. Loop engineering is replacing yourself as the person who prompts the agent. You design the system that does it instead. A loop here can be thought of as a recursive goal where you define a purpose and [&#8230;]]]></description>
								<content:encoded><![CDATA[
<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph"><em>The following article originally appeared on <a href="https://addyosmani.com/blog/loop-engineering/" target="_blank" rel="noreferrer noopener">Addy Osmani’s blog</a> and is being reposted here with the author’s permission.</em></p>
</blockquote>



<p class="wp-block-paragraph">Loop engineering is replacing yourself as the person who prompts the agent. You design the system that does it instead. A loop here can be thought of as a recursive goal where you define a purpose and the AI iterates until complete. I believe this may be the future of how we work with coding agents. However, it’s still early; I’m skeptical, and you absolutely <em>have</em> to be <a href="https://x.com/weswinder/status/2063700289710964906" target="_blank" rel="noreferrer noopener">careful</a> about token costs (usage patterns can vary wildly if you are token rich or poor), so I want to unpack what it is and what it means.</p>



<p class="wp-block-paragraph">Peter Steinberger recently <a href="https://x.com/steipete/status/2063697162748260627" target="_blank" rel="noreferrer noopener">said</a>: “You shouldn’t be prompting coding agents anymore. You should be designing loops that prompt your agents.” Similarly, Boris Cherny, head of Claude Code at Anthropic, <a href="https://x.com/rohanpaul_ai/status/2063289804708835412" target="_blank" rel="noreferrer noopener">said</a>, “I don’t prompt Claude anymore. I have loops running that prompt Claude and figuring out what to do. My job is to write loops”.</p>



<p class="wp-block-paragraph">Okay, so what does any of that mean?</p>



<p class="wp-block-paragraph">For like two years, the way you got something out of a coding agent was you wrote a good prompt and shared enough context. You type a thing, you read what came back, you type the next thing. The agent is a tool and you are holding it the entire time, one turn after the other. That part is kind of over, or at least some think it’s going to be.</p>



<p class="wp-block-paragraph">Now you build a small system that finds the work, hands it out, checks it, writes down what is done and then decides the next thing, and you let that system poke the agents instead of you. I wrote before about the cousin of this, <a href="https://addyosmani.com/blog/agent-harness-engineering/" target="_blank" rel="noreferrer noopener">agent harness engineering</a>, which is making the environment one single agent runs inside and the <a href="https://addyosmani.com/blog/factory-model/" target="_blank" rel="noreferrer noopener">factory model</a>—the system that builds the software. Loop engineering sits one floor above the harness. The harness but it runs on a timer, it spawns little helpers, and it feeds itself.</p>



<p class="wp-block-paragraph">The thing that surprised me is this is not really a tool thing anymore. A year ago if you wanted a loop you wrote a pile of bash and you maintained that pile forever and it was yours and only yours. Now the pieces just ship inside the products. Steinberger’s list maps almost exactly onto the Codex app, and then almost the same onto Claude Code. And once you notice the shape is the same, you stop arguing about which tool. You just design a loop that still works no matter which one you happen to be sitting in.</p>



<h2 class="wp-block-heading">The five pieces, and then notes</h2>



<p class="wp-block-paragraph">A <a href="https://x.com/reach_vb/status/2063713960495558940" target="_blank" rel="noreferrer noopener">loop</a> needs five things and then one place to remember stuff. Let me list it first and then map it.</p>



<ol class="wp-block-list">
<li>Automations that go off on a schedule and do discovery and triage by themselves</li>



<li>Worktrees so two agents working in parallel don’t step on each other</li>



<li>Skills to write down the project knowledge the agent would otherwise just guess</li>



<li>Plugins and connectors to plug the agent into the tools you already use</li>



<li>Subagents so one of them has the idea and a different one checks it</li>
</ol>



<p class="wp-block-paragraph">Then the sixth thing, the memory. A Markdown file, or a Linear board, anything that lives outside the single conversation and holds what’s done and what is next. Sounds too dumb to matter. But it’s the same trick every long-running agent depends on, and I went into it in “<a href="https://addyosmani.com/blog/long-running-agents/" target="_blank" rel="noreferrer noopener">Long-Running Agents</a>”: The model forgets everything between runs so the memory has to be on disk and not in the context. The agent forgets; the repo doesn’t.</p>



<p class="wp-block-paragraph">Both products have all five now.</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><tbody><tr><td><strong>Primitive</strong></td><td><strong>Job in the loop</strong></td><td><strong>Codex app</strong></td><td><strong>Claude Code</strong></td></tr><tr><td>Automations</td><td>Discovery + triage on a schedule</td><td><a href="https://developers.openai.com/codex/app/automations" target="_blank" rel="noreferrer noopener">Automations tab</a>: pick project, prompt, cadence, environment; results land in a Triage inbox; <code>/goal</code> for run-until-done</td><td>Scheduled tasks and cron, <code>/loop</code>, <code>/goal</code>, hooks, GitHub Actions</td></tr><tr><td>Worktrees</td><td>Isolate parallel features</td><td>Built-in worktree per thread</td><td><code>git worktree</code>, <code>--worktree</code>, <code>isolation: worktree</code> on a subagent</td></tr><tr><td>Skills</td><td>Codify project knowledge</td><td><a href="https://developers.openai.com/codex/skills" target="_blank" rel="noreferrer noopener">Agent Skills</a> (<code>SKILL.md</code>), invoked with <code>$name</code> or implicitly</td><td><a href="https://addyosmani.com/blog/agent-skills/" target="_blank" rel="noreferrer noopener">Agent Skills</a> (<code>SKILL.md</code>)</td></tr><tr><td>Plugins and connectors</td><td>Connect your tools</td><td>Connectors (MCP) plus plugins for distribution</td><td>MCP servers plus plugins</td></tr><tr><td>Subagents</td><td>Ideate and verify</td><td><a href="https://developers.openai.com/codex/subagents" target="_blank" rel="noreferrer noopener">Subagents</a> defined as TOML in <code>.codex/agents/</code></td><td>Task subagents in <code>.claude/agents/</code>, agent teams</td></tr><tr><td>State</td><td>track what’s done</td><td>Markdown or Linear via a connector</td><td>Markdown (<code>AGENTS.md</code>, progress files) or Linear via MCP</td></tr></tbody></table></figure>



<p class="wp-block-paragraph">The names are a bit different here and there, but the capability is the same thing. Let me go one by one because honestly the details are where a loop either holds together or quietly leaks everywhere.</p>



<h2 class="wp-block-heading">Automations, this is the heartbeat</h2>



<p class="wp-block-paragraph">Automations are what make a loop an actual loop and not just one run you did once. In the Codex app you make one in the Automations tab and you pick the project, the prompt it will run, how often, and if it runs on your local checkout or on a background worktree. The runs that find something go to a Triage inbox, and the runs that find nothing just archive themselves which is nice. OpenAI uses them internally for boring stuff like daily issue triage, summarizing CI failures, writing commit briefings, and hunting bugs somebody added last week. And an automation can call a skill, so you keep the recurring thing maintainable; you fire <code>$skill-name</code> instead of pasting a giant wall of instructions into a schedule that nobody will ever update.</p>



<p class="wp-block-paragraph">Claude Code gets to the same place but through scheduling and hooks. You can run a prompt or a command on a interval with <code>/loop</code>, you can schedule a cron task, you can fire shell commands at certain points in the agent lifecycle with hooks, or you push the whole thing to GitHub Actions if you want it to keep running after you close the laptop. Same idea exactly, you define an autonomous task, you give it a cadence, and the findings come to you so you are not the one going around checking.</p>



<p class="wp-block-paragraph">There is a second in-session primitive worth knowing, and it’s the one closer to what this whole post is about. <code>/loop</code> re-runs on a cadence. <code>/goal</code> keeps going until a condition you wrote is actually true, and after every turn a separate small model checks whether you are done, so the agent that wrote the code isn’t the one grading it. You give it something like “all tests in test/auth pass and lint is clean” and walk away. Codex has the same thing, also called <code>/goal</code>: It keeps working across turns until a verifiable stopping condition holds, with pause and resume and clear. Same primitive, both tools, which is kind of the pattern for this whole article.</p>



<p class="wp-block-paragraph">So this is the part that surfaces the work. The rest of the loop is what acts on it.</p>



<h2 class="wp-block-heading">Worktrees, so parallel doesn’t turn into chaos</h2>



<p class="wp-block-paragraph">The second you run more than one agent, the files start colliding; that becomes the failure. Two agents writing the same file is the exact same headache as two engineers committing to the same lines and nobody talked to each other first. A Git worktree fixes it. It’s a separate working directory on its own branch sharing the same repo history, so one agent’s edits literally cannot touch the other one’s checkout.</p>



<p class="wp-block-paragraph">Codex builds the worktree support right in so several threads hit the same repo at once and don’t bump into each other. Claude Code gives you the same isolation with <code>git worktree</code>, a <code>--worktree</code> flag to open a session in its own checkout, and a <code>isolation: worktree</code> setting you stick on a subagent so each helper gets a fresh checkout that cleans itself up after. (I wrote about the human side of all this in “<a href="https://addyosmani.com/blog/orchestration-tax/" target="_blank" rel="noreferrer noopener">The Orchestration Tax</a>.”) The worktrees take away the mechanical collision, but YOU are still the ceiling. Your review of bandwidth decides how many you can actually run, not the tool.</p>



<h2 class="wp-block-heading">Skills, so you stop explaining your project every single time</h2>



<p class="wp-block-paragraph">A skill is how you stop reexplaining the same project context every session like a goldfish. Both tools use the same format: a folder with a <code>SKILL.md</code> inside holding instructions and metadata, and then optional scripts, references, and assets. Codex runs a skill when you call it with <code>$</code> or <code>/skills</code>, or by itself when your task matches the skill description, which is the reason a tight, boring description beats a clever one. Claude Code does it the same way and I wrote the pattern up in “<a href="https://addyosmani.com/blog/agent-skills/" target="_blank" rel="noreferrer noopener">Agent Skills</a>.”</p>



<p class="wp-block-paragraph">Skills are also where intent stops costing you over and over. I argued in “<a href="https://addyosmani.com/blog/intent-debt/" target="_blank" rel="noreferrer noopener">The Intent Debt</a>” that an agent starts every session cold and it will fill any hole in your intent with a confident guess. A skill is that intent written down on the outside, the conventions, the build steps, the “we don’t do it like this because of that one incident,” written one time where the agent reads it every run. Without skills the loop rederives your whole project from zero every cycle; with skills it kind of compounds.</p>



<p class="wp-block-paragraph">One thing to keep straight: The skill is the authoring format, and a plugin is how you ship it. When you want to share a skill across repos or bundle a few together, you package them as a plugin. True in Codex, true in Claude Code.</p>



<h2 class="wp-block-heading">Plugins and connectors, the loop touches your real tools</h2>



<p class="wp-block-paragraph">A loop that can only see the filesystem is a tiny loop. Connectors, which are built on MCP, let the agent read your issue tracker, query a database, hit a staging API, or drop a message in Slack. Codex and Claude Code both speak MCP so the connector you wrote for one usually just works in the other. And plugins bundle connectors and skills together so your teammate installs your setup in one go instead of rebuilding the whole thing from memory.</p>



<p class="wp-block-paragraph">This is the difference between an agent that says “here is the fix” and a loop that opens the PR, links the Linear ticket, and pings the channel once CI is green by itself. The connectors are the reason the loop can act inside your actual environment instead of just telling you what it would do if it could.</p>



<h2 class="wp-block-heading">Subagents, keep the maker away from the checker</h2>



<p class="wp-block-paragraph">The most useful structural thing in a loop, by far, is splitting the one who writes from the one who checks. The model that wrote the code is way too nice grading its own homework. A second agent with different instructions and sometimes a different model catches the stuff the first one talked itself into.</p>



<p class="wp-block-paragraph">Codex only spawns subagents when you ask, runs them at the same time, and then folds the results back into one answer. You define your own agents as TOML files in <code>.codex/agents/</code>, each with a name, a description, instructions, and optional model and reasoning effort, so your security reviewer can be a strong model on high effort while your explorer is some fast read-only thing. Claude Code does the same with subagents in <code>.claude/agents/</code> and agent teams that pass work between them. The usual split in both is one agent explores, one implements, and one verifies against the spec.</p>



<p class="wp-block-paragraph">I made this case twice already, once as “<a href="https://addyosmani.com/blog/code-agent-orchestra/" target="_blank" rel="noreferrer noopener">The Code Agent Orchestra</a>” and once as “<a href="https://addyosmani.com/blog/adversarial-code-review/" target="_blank" rel="noreferrer noopener">Adversarial Code Review</a>.” The reason it matters specifically inside a loop is the loop runs while you are not watching, so a verifier you actually trust is the only reason you can walk away. Subagents do burn more tokens since each one does its own model and tool work, so spend them where a second opinion is worth paying for. This is also basically what Claude Code’s <code>/goal</code> does under the hood: A fresh model decides if the loop is done instead of the one that did the work, the maker and checker split applied to the stop condition itself.</p>



<h2 class="wp-block-heading">What one loop looks like</h2>



<p class="wp-block-paragraph">Stick it together and a single thread turns into a little control panel. Here is one shape I keep using.</p>



<p class="wp-block-paragraph">An automation runs every morning on the repo. Its prompt calls a triage skill that reads yesterday’s CI failures, the open issues, and the recent commits and writes the findings into a Markdown file or a Linear board. For each finding that is worth doing, the thread opens an isolated worktree and sends a subagent to draft the fix, and a second subagent reviews that draft against the project skills and the existing tests.</p>



<p class="wp-block-paragraph">Connectors let the loop open the PR and update the ticket. Anything the loop cannot handle lands in the triage inbox for me. The state file is the spine of the whole thing; it remembers what got tried, what passed, and what is still open, so tomorrow morning the run picks up where today stopped.</p>



<p class="wp-block-paragraph">And look at what you actually did there. You designed it one time. You did not prompt any of those steps. That’s Steinberger’s whole point made real, and it’s the same loop in Codex or in Claude Code because the pieces are the same pieces.</p>



<h2 class="wp-block-heading">What the loop still does not do for you</h2>



<p class="wp-block-paragraph">The loop changes the work; it does not delete you from it. And three problems actually get sharper as the loop gets better, not easier.</p>



<p class="wp-block-paragraph">Verification is still on you. A loop running unattended is also a loop making mistakes unattended. The whole reason you split the verifier subagent from the maker is to make the loop’s “it’s done” mean something, and even then “done” is a claim and not a proof. I keep saying the same line from “<a href="https://addyosmani.com/blog/code-review-ai/" target="_blank" rel="noreferrer noopener">Code Review in the Age of AI</a>”: Your job is to ship code you confirmed works.</p>



<p class="wp-block-paragraph">Your understanding still rots if you allow it. The faster the loop ships code you did not write, the bigger the gap between what exists and what you actually get. That’s <a href="https://addyosmani.com/blog/comprehension-debt/" target="_blank" rel="noreferrer noopener">comprehension debt</a> and a smooth loop just makes it grow faster unless you read what the loop made.</p>



<p class="wp-block-paragraph">And the comfortable posture is the dangerous one. When the loop runs itself, it’s very tempting to stop having an opinion and just take whatever it gives back. I called that “<a href="https://addyosmani.com/blog/cognitive-surrender/" target="_blank" rel="noreferrer noopener">cognitive surrender</a>.” Designing the loop is the cure when you do it with judgment and the accelerant when you do it to avoid thinking: same action, opposite result.</p>



<h2 class="wp-block-heading">Build the loop. Stay the engineer.</h2>



<p class="wp-block-paragraph">I think this is a preview of how our work is going to evolve. That said, if I weren’t reviewing the code myself or if I relied entirely on automated loops to fix it, my product’s quality would suffer. I’d likely end up stuck in a downward spiral, continuously digging myself into a deeper hole.</p>



<p class="wp-block-paragraph">Go ahead and set up your loops, but don’t forget that prompting your agents directly is also effective. It’s all about finding the right balance.</p>



<p class="wp-block-paragraph">Loops can also result in different outcomes depending on you. Two people can build the exact same loop and get completely opposite results. One uses it to move faster on work they understand deeply. The other uses it to avoid understanding the work at all. The loop doesn’t know the difference. You do.</p>



<p class="wp-block-paragraph">That’s what makes loop design harder than prompt engineering. Cherny’s point isn’t that the work got easier. It’s that the leverage point moved.</p>



<p class="wp-block-paragraph">Build the loop. But build it like someone who intends to stay the engineer, not just the person who presses go.</p>
]]></content:encoded>
							<wfw:commentRss>https://www.oreilly.com/radar/loop-engineering/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>This Week in AI: Fable 5, the Clone Wave, and Uber&#8217;s AI Reality Check</title>
		<link>https://www.oreilly.com/radar/this-week-in-ai-fable-5-the-clone-wave-and-ubers-ai-reality-check/</link>
				<comments>https://www.oreilly.com/radar/this-week-in-ai-fable-5-the-clone-wave-and-ubers-ai-reality-check/#respond</comments>
				<pubDate>Thu, 18 Jun 2026 19:33:23 +0000</pubDate>
					<dc:creator><![CDATA[Michelle Smith]]></dc:creator>
						<category><![CDATA[AI & ML]]></category>
		<category><![CDATA[This Week in AI]]></category>
		<category><![CDATA[Podcast]]></category>

		<guid isPermaLink="false">https://www.oreilly.com/radar/?p=18954</guid>

		
					<media:content 
				url="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/05/0642572383770_This_Week_in_AI_Cover-scaled.jpg" 
				medium="image" 
				type="image/jpeg" 
				width="2560" 
				height="2560" 
			/>

			<media:thumbnail 
				url="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/05/0642572383770_This_Week_in_AI_Cover-160x160.jpg" 
				width="160" 
				height="160" 
			/>
		
				<custom:subtitle><![CDATA[Why Anthropic&#039;s newest model disappeared in three days, and what exploding token budgets tell us about building with agents]]></custom:subtitle>
		
				<description><![CDATA[This week, egghead.io cofounder John Lindquist joined host YK Sugi, founder of CS Dojo and developer experience manager at Eventual, to cover the latest AI news. First on the agenda was the contested release of Claude Fable 5. They also examined the financial shifts reshaping the technology industry, including the rising costs associated with agentic [&#8230;]]]></description>
								<content:encoded><![CDATA[
<p class="wp-block-paragraph">This week, <a href="http://egghead.io" target="_blank" rel="noreferrer noopener">egghead.io</a> cofounder John Lindquist joined host YK Sugi, founder of CS Dojo and developer experience manager at Eventual, to cover the latest AI news. First on the agenda was the contested release of Claude Fable 5. They also examined the financial shifts reshaping the technology industry, including the rising costs associated with agentic coding loops. Then John outlined the framework he uses to build in the agent era without starting from scratch every time.</p>



<p class="wp-block-paragraph">Watch the full episode here:</p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="This Week in AI with YK Sugi and John Lindquist" width="500" height="281" src="https://www.youtube.com/embed/b7DpwWXuRp8?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<h2 class="wp-block-heading"><strong>Claude Fable 5: 3 days, a government order, and a lot of unanswered questions</strong></h2>



<p class="wp-block-paragraph">Claude Fable 5 launched June 9 and was <a href="https://www.anthropic.com/news/fable-mythos-access" target="_blank" rel="noreferrer noopener">pulled from all customers</a> on June 12 after the <a href="https://theconversation.com/why-the-us-government-shut-down-anthropics-latest-claude-ai-model-285223" target="_blank" rel="noreferrer noopener">US government issued a directive</a> ordering Anthropic to restrict access for foreign nationals inside and outside the US. Amazon researchers had <a href="https://techcrunch.com/2026/06/13/amazon-ceo-reportedly-raised-anthropic-model-concerns-before-government-crackdown/" target="_blank" rel="noreferrer noopener">reportedly surfaced what they characterized as a security vulnerability</a>, and after Anthropic reportedly declined to patch or redeploy the model, the directive came down. Senior Anthropic staff subsequently traveled to Washington to meet with White House officials.</p>



<p class="wp-block-paragraph">The dispute about what actually happened is unresolved. Anthropic&#8217;s position is that the reported issue was a narrow jailbreak that had been previously identified and was present across public models generally, and not a serious security threat. An independent researcher who reviewed the report described it as defensive prompting that surfaced known vulnerabilities and called the response an overreaction. Neither side has published the technique or prompt, so there&#8217;s no way to evaluate the claim independently. But as John put it, “It sets a very strange precedent going forward, as models are released, that governments can step in and control what private companies can and cannot do with their model.”</p>



<p class="wp-block-paragraph">Another new precedent: Fable 5 wasn&#8217;t built on the Opus or Sonnet architecture, which means comparisons to prior Anthropic models or contemporaries don&#8217;t tell us much. But initial impressions were positive, including from YK and John, and Fable 5 quickly reached the top of the Arena leaderboard in the text, agents, and web dev code categories. However, the model also had a purposeful limitation: On questions related to AI and machine learning training specifically, it was designed to underperform (without signaling this to users), apparently to prevent competitors from using it to improve their own models. Intentional capability suppression in a commercial model, without disclosure, is a different kind of product decision than a safety guardrail. Whether that approach becomes more common as competitive stakes rise is an open question.&nbsp;</p>



<h2 class="wp-block-heading"><strong>Tokens burn fast when the loop isn&#8217;t ready for them</strong></h2>



<p class="wp-block-paragraph">Last week, SpaceX <a href="https://www.cnbc.com/2026/06/03/spacex-ipo-stock-price-roadshow-musk.html" target="_blank" rel="noreferrer noopener">went public</a> in the largest IPO in history. The company <a href="https://www.cnbc.com/2026/06/16/spacex-spcx-cursor-acquisition-ipo.html" target="_blank" rel="noreferrer noopener">finalized its acquisition of Cursor</a> in a $60 billion all-stock deal shortly after. (That last one happened after this episode aired—we’ll talk more about it on Monday.) Both <a href="https://www.nbcnews.com/business/markets/openai-chatgpt-files-ipo-rcna349101" target="_blank" rel="noreferrer noopener">OpenAI</a> and <a href="https://ykdojo.github.io/this-week-in-ai-slides/slides.html#12-3:~:text=H%2C%20May%2028)-,TechCrunch,-Google" target="_blank" rel="noreferrer noopener">Anthropic</a> have filed to go public as well, and Google raised roughly $160 billion through <a href="https://www.cnbc.com/2026/06/01/alphabet-to-raise-80-billion-from-stock-sales-to-fund-ai-buildout.html" target="_blank" rel="noreferrer noopener">equity</a> and a <a href="https://www.cnn.com/2026/02/10/business/google-one-hundred-year-bond" target="_blank" rel="noreferrer noopener">100-year bond</a>. A significant share of that capital is flowing toward AI coding infrastructure.<br><br>YK brought up another, less celebratory, financial story that’s been making the rounds: Uber <a href="https://fortune.com/2026/05/26/uber-coo-ai-spending-tokens-claude-code/" target="_blank" rel="noreferrer noopener">burned through its full 2026 AI tools budget by April</a>, mostly on Claude Code and Cursor, and Andrew Macdonald, the company&#8217;s COO, acknowledged they couldn&#8217;t link that spending to a measurable increase in useful customer features. Uber subsequently put a <a href="https://www.inc.com/lucia-auerbach/uber-blew-through-2026-ai-budget-in-four-months-now-it-is-capping-employee-use/91355199" target="_blank" rel="noreferrer noopener">$1,500 per month per employee cap</a> in place.</p>



<p class="wp-block-paragraph">John flagged projects inefficiently utilizing agentic loops as one possible cause for wasteful token spend. Most developers deploying agents against existing codebases haven&#8217;t built the tooling those agents need to work efficiently, so agents burn tokens doing work that dead-ends, repeating context, or generating code that requires significant debugging. He explained:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">If you take a legacy codebase and you throw agents against it with loops, you haven&#8217;t set up a proper agent environment. It&#8217;s so quick to burn tokens because.&nbsp;.&nbsp;.the agents don&#8217;t have the tools to work with.</p>
</blockquote>



<p class="wp-block-paragraph">The conversation in developer communities so far has focused almost entirely on what agents can generate. But as more organizations move from experimentation to production-scale deployment, building logging, verification, and proper error surfaces into agent tooling is what will determine whether token spend maps to real output. Otherwise, we’ll likely see more companies go the way of Uber.</p>



<h2 class="wp-block-heading"><strong>Ingredients beat inference: A practical framework for building in the clone wave</strong></h2>



<p class="wp-block-paragraph">For most developer workflows today, buy-versus-build leans toward building in a way it didn’t even a year or two ago. As John noted, “It&#8217;s so easy to build apps and workflows now where there are so many amazing production apps out there, apps on your phone, apps on your desktop, software as a service, that are trivial to copy and clone.” He uses the term the &#8220;clone wave&#8221; to describe this expanding set of open source equivalents to consumer software products that can now be cloned, forked, or replaced and get you 99% of the way to your use case.</p>



<p class="wp-block-paragraph">The principle that drives the clone wave is &#8220;ingredients beat inference.&#8221; If you ask an agent to build a feature from scratch, it infers a solution with no external reference. If you give it an existing open source implementation to start from, it can adapt, translate, and integrate that code far faster and more reliably. The ingredients approach also helps with the <a href="https://venturebeat.com/technology/43-of-ai-generated-code-changes-need-debugging-in-production-survey-finds" target="_blank" rel="noreferrer noopener">43% of AI-generated code that needs debugging in production</a>, per a figure YK cited earlier in the episode.</p>



<p class="wp-block-paragraph">The GitHub CLI plays a central role in this workflow. John explained that because agents understand the GitHub CLI natively, you can give an agent a search task and let it find implementations it wouldn&#8217;t have generated itself. Language mismatch isn&#8217;t a blocker, because agents translate between languages and libraries well. And tools like <a href="https://deepwiki.com/" target="_blank" rel="noreferrer noopener">DeepWiki</a> from Cognition let agents explore and understand a repo&#8217;s structure before cloning or forking it, so the evaluation step doesn&#8217;t require local setup.</p>



<p class="wp-block-paragraph">The framework extends to how you build the last 20% that <em>isn&#8217;t</em> available as an ingredient. This is the part that’s specific to your use case; John described it as “that extra bit that you&#8217;re building on top of it to make it into the custom product and project for either yourself or for your users.” John’s bigger point is that the tools you build for yourself should also be usable by your agents. Expose endpoints and logging. Give agents the ability to read state and errors. An agent that can control a tool but not debug it will eventually stop in ways that are hard to diagnose.</p>



<p class="wp-block-paragraph">John walked through <a href="https://cmux.com/" target="_blank" rel="noreferrer noopener">cmux</a> to demonstrate what an agent-native workspace looks like in practice. cmux is a terminal multiplexer built with agentic workflows in mind: it exposes a CLI that agents can control directly, so you can open a terminal pane, have that pane spawn another, and have the two read from and write to each other. In practice that means you can run Claude Code in one pane, Codex in another, and a third pane reading output from both, with each agent able to observe the others&#8217; state. </p>



<p class="wp-block-paragraph">Agents need more than the ability to run commands. They need to read logs, check errors, and confirm state before taking the next step. A workspace that exposes those surfaces gives agents a feedback loop. This tenet is applicable to tools across the company. Organizations that treat their internal tooling as agent-accessible infrastructure are building something that compounds. Those treating agents as black-box code generators are taking on technical debt they may not see until causes issues later on.</p>



<h2 class="wp-block-heading"><strong>What&#8217;s next</strong></h2>



<p class="wp-block-paragraph">SpaceX’s acquisition of Cursor turns the coding-agent race into something much larger than an IDE fight. Cursor may be positioning itself as a new GitHub for the agentic era, where agents write, review, test, repair, and govern code. At the same time, Salesforce’s $3.6B acquisition of Fin shows the same pattern inside enterprise software: Buyers want packaged workflows that solve real support, sales, and operations problems rather than abstract “agents.” </p>



<p class="wp-block-paragraph">Next week, host Ksenia Se examines these stories and more through the lens of who owns the loop where AI does the work. Join us to find out why the next phase of AI will be about who controls the infrastructure, economics, and trust layer.</p>



<p class="wp-block-paragraph">Our episodes are free and open to all through the end of June if you’d like to attend live—<a href="https://www.oreilly.com/live/this-week-in-ai.html" target="_blank" rel="noreferrer noopener">register here</a>. And we’ll continue to publish our takeaways here on Radar each Friday and share full episodes on <a href="https://www.youtube.com/watch?v=g4cfjz5AKxY&amp;list=PL055Epbe6d5bJEhT7_ZzOeJZ6gPyUzYpS" target="_blank" rel="noreferrer noopener">YouTube</a>, <a href="https://open.spotify.com/show/033kJS2BG1teGunxmtsU1r" target="_blank" rel="noreferrer noopener">Spotify</a>, <a href="https://podcasts.apple.com/us/podcast/this-week-in-ai/id1896798047" target="_blank" rel="noreferrer noopener">Apple</a>, or wherever you get your podcasts.</p>
]]></content:encoded>
							<wfw:commentRss>https://www.oreilly.com/radar/this-week-in-ai-fable-5-the-clone-wave-and-ubers-ai-reality-check/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>Kubernetes in the Age of AI</title>
		<link>https://www.oreilly.com/radar/kubernetes-in-the-age-of-ai/</link>
				<comments>https://www.oreilly.com/radar/kubernetes-in-the-age-of-ai/#respond</comments>
				<pubDate>Thu, 18 Jun 2026 14:21:16 +0000</pubDate>
					<dc:creator><![CDATA[Andy Kwan]]></dc:creator>
						<category><![CDATA[AI & ML]]></category>
		<category><![CDATA[Commentary]]></category>

		<guid isPermaLink="false">https://www.oreilly.com/radar/?p=18938</guid>

		
					<media:content 
				url="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/Kubernetes-in-the-age-of-AI.jpg" 
				medium="image" 
				type="image/jpeg" 
				width="2304" 
				height="1792" 
			/>

			<media:thumbnail 
				url="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/Kubernetes-in-the-age-of-AI-160x160.jpg" 
				width="160" 
				height="160" 
			/>
		
		
				<description><![CDATA[When Kubernetes first came onto the scene, it was a major turning point, a revision of the infrastructure and operations space that transformed the way developers and ops personnel build, deploy, and maintain applications in the cloud. It has since become the clear standard for how modern applications are built and operated. As the CNCF [&#8230;]]]></description>
								<content:encoded><![CDATA[
<p class="wp-block-paragraph">When Kubernetes first came onto the scene, it was a major turning point, a revision of the infrastructure and operations space that transformed the way developers and ops personnel build, deploy, and maintain applications in the cloud. It has since become the clear standard for how modern applications are built and operated. As the CNCF noted in its latest <a href="https://www.cncf.io/reports/the-cncf-annual-cloud-native-survey/" target="_blank" rel="noreferrer noopener"><em>Annual Cloud Native Survey</em> report</a>, “Among container users, 82% are using Kubernetes in production in 2025, up from 66% in 2023. This represents near-universal adoption within the container ecosystem.”</p>



<p class="wp-block-paragraph">Over the last few years, another revision in the space has occurred with Kubernetes’s evolution from a container orchestrator to an AI infrastructure platform. According to the CNCF survey, “The rise of Kubernetes as the de facto AI platform represents a fundamental shift in how organizations approach machine learning operations.&nbsp;.&nbsp;.[with Kubernetes] providing a unified orchestration layer that handles both traditional application workloads and compute-intensive AI tasks.” The emergence of seismic technologies like generative AI and agentic AI has only accelerated this transformation.</p>



<p class="wp-block-paragraph">The intersection of AI with Kubernetes is undoubtedly one of the most impactful developments in the operations space. As Jonathan Johnson, software architect at Dijure, observes, “AI on K8s is very, very important, and there is not enough [resources] out there.” Raju Gandhi, senior technical architect at Edward Jones, echoes this assessment, noting that “operationalizing AI/ML on K8s is a big issue, [and it’s only] getting bigger. This is a topic that needs attention.” But what are some of the things that you should know about this trend to keep abreast and stay ahead in the game?</p>



<h2 class="wp-block-heading"><strong>Generative AI</strong></h2>



<p class="wp-block-paragraph">Anyone with access to a computer or a smartphone has likely used some iteration of generative AI, a stunning fact when you consider that GenAI was on the outer edges of mainstream discourse and consumption a scant five years ago. But at the end of 2022, the debut of ChatGPT marked the beginning of a technological revolution, one that would impact and reshape nearly every aspect of our working and personal lives. Unsurprisingly, there are now thousands of generative AI models, a proliferation that naturally has its own set of complexities. Selecting a model is simple, but if you’re an application developer or MLOps engineer, how do you go about operating that model in a production system? Not only do you have to be cognizant of factors like resilience, scalability, security, and operational costs, but there’s the fact that bringing a model from experimentation into production can be arduous if not done properly. That’s where Kubernetes comes into play.</p>



<p class="wp-block-paragraph">As Roland Huß and Daniele Zonca, distinguished engineers at Red Hat, note, “GenAI/LLM models are resource intensive, requiring substantial computational power and large datasets. Given its scalability and extensibility, Kubernetes is uniquely suited to function as an efficient platform for AI and LLM model pretraining, fine-tuning, deployment, and prompt engineering.” They further elaborate that “this integration with Kubernetes not only simplifies the adoption of cutting-edge AI technologies but also ensures a seamless and efficient operational flow. Kubernetes, with its robust scalability and management capabilities, stands as an ideal platform for generative AI projects, aligning DevOps and MLOps practices in a cohesive ecosystem.”</p>



<p class="wp-block-paragraph">This sentiment is already shared by a wide swath of the industry. According to the CNCF survey above, as of 2025, 66% of organizations run generative AI workloads on Kubernetes. These organizations include <a href="https://kubernetes.io/case-studies/openai/" target="_blank" rel="noreferrer noopener">OpenAI</a>, which uses Kubernetes for its AI/LLM application experimenting and testing; <a href="https://llm-d.ai/blog/production-grade-llm-inference-at-scale-kserve-llm-d-vllm" target="_blank" rel="noreferrer noopener">Tesla</a>, which utilizes KServe to manage production-grade LLM inference; and <a href="https://docs.firefly.ai/integrations/data-sources/kubernetes" target="_blank" rel="noreferrer noopener">Adobe</a>, which uses Kubernetes to power its suite of generative creative models. Other companies taking this approach include <a href="https://www.zenml.io/mlops-database/uber-michelangelo-modernization-ray-on-kubernetes-michelangelo-modernization-evolving-an-end-to-end-ml-platform-from-tre">Uber</a>, <a href="https://www.techtarget.com/searchitoperations/news/366558957/Generative-AI-brings-changes-to-cloud-native-platforms" target="_blank" rel="noreferrer noopener">Intuit</a>, and <a href="https://learning.oreilly.com/library/view/generative-ai-on/9781098171919/preface01.html" target="_blank" rel="noreferrer noopener">Google</a>. With more companies adopting this practice for their generative AI and LLMs operations, it’d be prudent for any organization to leverage Kubernetes for their own GenAI and LLM workflows.</p>



<h2 class="wp-block-heading"><strong>Agentic AI</strong></h2>



<p class="wp-block-paragraph">Nearly coinciding with the rise of GenAI has been the steady growth of agentic AI. Unlike GenAI, agentic AI goes beyond answering simple prompts and generating text in its ability to operate autonomously to perform complex, multistep actions, utilize tools, and make independent decisions. With its ability to support both traditional ML processes and GenAI and LLM operations, it should come as no surprise that Kubernetes has a role in the agentic AI ecosystem as well.</p>



<p class="wp-block-paragraph">According to Ronald Petty, principal consultant at RX-M, “Kubernetes has been leveraged to host machine learning pipelines, including AI model training and inference. As inference options have become plentiful and affordable, on and off-premise, we have seen the rise of agents. Coupling cloud native technologies and popular protocols, we now see agents moving from ad hoc demos to complex fleets of agents on systems like Kubernetes.” So what are some examples of the integration between these two technologies?</p>



<p class="wp-block-paragraph">One notable offering is <a href="https://www.cncf.io/blog/2025/04/15/kagent-bringing-agentic-ai-to-cloud-native/" target="_blank" rel="noreferrer noopener">Kagent</a>, an OS programming framework that runs AI agents in Kubernetes and “helps engineers build powerful internal platforms by tackling cloud native tasks such as configuration, troubleshooting, complex deployment scenarios, observability pipelines and dashboards, and safely enabling network security.” Operating along similar lines is K8sGPT, an AI-powered tool that leverages intelligent insights and automated troubleshooting to analyze Kubernetes clusters for configuration problems and security issues, as well as generates solutions to problems discovered in analysis.</p>



<p class="wp-block-paragraph">A more recent entry in the field is <a href="https://github.com/sympozium-ai/sympozium" target="_blank" rel="noreferrer noopener">Sympozium</a>, a Kubernetes-native coordination layer for multi-agent AI systems that “solves the same problem Kubernetes solved for containers, but for agents that need to share context, hand off tasks, and maintain shared situational awareness.” Another newer offering is <a href="https://kubernetes.io/blog/2026/03/20/running-agents-on-kubernetes-with-agent-sandbox/" target="_blank" rel="noreferrer noopener">Agent Sandbox</a>, which allows you to run AI agents as isolated, stateful workloads with a native API on Kubernetes.</p>



<h2 class="wp-block-heading"><strong>The fundamentals</strong></h2>



<p class="wp-block-paragraph">While it’s important to be aware of the latest developments and trends affecting your domain, that shouldn’t come at the expense of foundational knowledge and skills. As basketball great Michael Jordan once said, “Get the fundamentals down and the level of everything you do will rise.” One of the most fundamental skills for working with Kubernetes is networking, and frustratingly enough, it&#8217;s one of the more difficult ones to master. As Cisco senior staff engineer Nico Vibert observes, “Platform engineers tend to be comfortable with Linux networking but less so with protocols like BGP and IPv6; network administrators know those protocols well but find Kubernetes abstractions unfamiliar. Both personas struggle to navigate the dozens of networking tools seemingly required to meet connectivity and security requirements.” Yet as organizations move mission-critical workloads, AI training pipelines, and regulated financial services onto Kubernetes, the engineers who can design, secure, and troubleshoot the network layer have become some of the most sought-after professionals in the industry.</p>



<p class="wp-block-paragraph">In recognition of both the importance and difficult nature of the Kubernetes networking skill, the CNCF recently <a href="https://www.cncf.io/announcements/2025/11/11/cncf-launches-cnpe-certification-to-define-enterprise-scale-platform-engineering-globally/" target="_blank" rel="noreferrer noopener">announced</a> a new certification focused on the Kubernetes network engineer role. The certification is designed to validate hands-on networking expertise across all of the aforementioned layers, filling a gap that the Kubernetes community has long recognized.</p>



<p class="wp-block-paragraph">For organizations that use Kubernetes to develop and deliver applications, leaders and decision-makers need to be aware that utilizing Kubernetes in conjunction with the latest AI tools is no longer a luxury but a necessary practice that will allow their companies to thrive. A similar onus should be placed on the basics. When hiring your next DevOps, network, or site reliability engineer, ensure that their ability to design, secure, and troubleshoot the Kubernetes network layer is second to none.</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph"><em>If you want to dive deeper, check out Roland Huß and Daniele Zonca’s </em><a href="https://learning.oreilly.com/library/view/generative-ai-on/9781098171919/" target="_blank" rel="noreferrer noopener">Generative AI on Kubernetes</a><em>, Jonathan Johnson’s <a href="https://learning.oreilly.com/live-events/gpu-kubernetes-homelab-infrastructure-as-code-for-ai-workloads/0642572275662/" target="_blank" rel="noreferrer noopener">GPU Kubernetes Homelab</a> live course, Alex Corvin, Taneem Ibrahim, and Kyle Stratis’s </em><a href="https://learning.oreilly.com/library/view/kubernetes-for-generative/9781836209935/" target="_blank" rel="noreferrer noopener">Scalable Kubernetes Infrastructure for AI Platforms</a><em>, Ashok Srirama and Sukirti Gupta’s </em><a href="https://learning.oreilly.com/library/view/kubernetes-for-generative/9781836209935/" target="_blank" rel="noreferrer noopener">Kubernetes for Generative AI Solutions</a><em>, and Yogesh Raheja’s <a href="https://learning.oreilly.com/course/k8sgpt-essentials-/9781806690077/" target="_blank" rel="noreferrer noopener">K8sGPT Essentials</a> on-demand course. They’re all on O’Reilly. If you’re not a member, you can <a href="https://www.oreilly.com/start-trial/?type=individual" target="_blank" rel="noreferrer noopener">get started with a free trial</a>.</em></p>
</blockquote>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
							<wfw:commentRss>https://www.oreilly.com/radar/kubernetes-in-the-age-of-ai/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>The Case Against Building Your Own Agent Platform</title>
		<link>https://www.oreilly.com/radar/the-case-against-building-your-own-agent-platform/</link>
				<comments>https://www.oreilly.com/radar/the-case-against-building-your-own-agent-platform/#respond</comments>
				<pubDate>Wed, 17 Jun 2026 13:53:16 +0000</pubDate>
					<dc:creator><![CDATA[Pete Johnson]]></dc:creator>
						<category><![CDATA[AI & ML]]></category>
		<category><![CDATA[Commentary]]></category>

		<guid isPermaLink="false">https://www.oreilly.com/radar/?p=18935</guid>

		
					<media:content 
				url="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/The-case-against-building-your-own-agent-platform.jpg" 
				medium="image" 
				type="image/jpeg" 
				width="2304" 
				height="1792" 
			/>

			<media:thumbnail 
				url="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/The-case-against-building-your-own-agent-platform-160x160.jpg" 
				width="160" 
				height="160" 
			/>
		
		
				<description><![CDATA[You know the meeting. The board wants an AI agent strategy by end of quarter. Someone on the leadership team has read a McKinsey report. You&#8217;ve been voluntold to build the platform. The slide deck says &#8220;AI-native.&#8221; The acceptance criteria are vague. Somebody mentions LangGraph, and somebody else says, &#8220;We&#8217;ll just wrap it ourselves.&#8221; You [&#8230;]]]></description>
								<content:encoded><![CDATA[
<p class="wp-block-paragraph">You know the meeting. The board wants an AI agent strategy by end of quarter. Someone on the leadership team has read a McKinsey report. You&#8217;ve been voluntold to build the platform. The slide deck says &#8220;AI-native.&#8221; The acceptance criteria are vague. Somebody mentions LangGraph, and somebody else says, &#8220;We&#8217;ll just wrap it ourselves.&#8221;</p>



<p class="wp-block-paragraph">You ask what &#8220;done&#8221; looks like. Nobody in the room can answer.</p>



<p class="wp-block-paragraph">The cost of building this is almost always estimated before anyone has a clear picture of what &#8220;this&#8221; actually is. And that&#8217;s the problem I want to work through here, because the scope of the work being casually assigned to internal platform teams right now is genuinely larger than the people assigning it understand.</p>



<h2 class="wp-block-heading"><strong>Build versus buy, flipped in a year</strong></h2>



<p class="wp-block-paragraph">This particular pendulum has swung before. App servers in the late 1990s. Content management systems in the 2000s. Container orchestration in the 2010s. The pattern rhymes every time: When a category is new, the components look deceptively simple. Early adopters build their own. The market catches up. Within 18 months, building becomes the expensive path. Within 36 months, the teams that built internally are rewriting on top of the category winner that emerged while they weren&#8217;t looking.</p>



<p class="wp-block-paragraph">What&#8217;s different about the current moment is the speed. Menlo Ventures&#8217; <a href="https://menlovc.com/perspective/2025-the-state-of-generative-ai-in-the-enterprise/" target="_blank" rel="noreferrer noopener"><em>2025 State of Generative AI in the Enterprise</em> report</a> shows the build-versus-buy split inverted in a single year. In 2024, 47% of enterprise AI solutions were built internally. By late 2025, that number had collapsed to 24%. The market made the decision in 12 months, which is unusual.</p>



<p class="wp-block-paragraph">I&#8217;ve lived through enough of these transitions to recognize the shape. What I want to do in this piece is explain why I think the scope of &#8220;agent platform&#8221; is systematically underestimated right now, and what platform engineers should be asking before they commit to building one.</p>



<h2 class="wp-block-heading"><strong>Most &#8220;agent platforms&#8221; aren&#8217;t</strong></h2>



<p class="wp-block-paragraph">A lot of the projects labeled &#8220;agent platform&#8221; right now are actually workflow systems with an LLM in the loop. That&#8217;s a meaningful distinction. As Anthropic pointed out in its &#8220;<a href="https://www.anthropic.com/research/building-effective-agents" target="_blank" rel="noreferrer noopener">Building Effective Agents</a>&#8221; guidance, workflows are systems where LLMs and tools are <strong>orchestrated</strong> through <strong>predefined code paths</strong>. Agents are systems where LLMs <strong>dynamically</strong> direct their <strong>own processes and tool usage</strong>.</p>



<p class="wp-block-paragraph">Most of what enterprises are shipping today sits on the workflow side. That&#8217;s fine. Workflows have bounded requirements, tractable testing, and predictable failure modes. If your team is building a workflow system, you might reasonably build it yourselves.</p>



<p class="wp-block-paragraph">The trap is that teams start building for workflows, then get asked to support agents, and discover the jump isn&#8217;t incremental. Agents need memory that survives across sessions. They need evaluation that handles nondeterminism. They need governance that tracks actions, not just outputs. They need orchestration that recovers from failure modes a workflow engine never sees.</p>



<p class="wp-block-paragraph">Here&#8217;s the thesis I want to put on the table: The decision to build an agent platform almost always underestimates the long tail. Memory, governance, eval, and orchestration aren&#8217;t features you add to a workflow engine. They&#8217;re separate product bets, each with its own maturity curve, its own vendor landscape, and its own team of specialists who&#8217;ve been working on it full-time for 18 months while you&#8217;ve been doing something else.</p>



<p class="wp-block-paragraph">Let me walk through them.</p>



<h3 class="wp-block-heading">Memory</h3>



<p class="wp-block-paragraph">The assumption inside most build proposals is that memory is a database problem. You&#8217;ll pick a vector store, shove conversation history into it, and retrieve relevant chunks when the agent needs context. Done.</p>



<p class="wp-block-paragraph">Production memory is three separate systems: episodic, semantic, and procedural, each with different retention and retrieval policies. It&#8217;s temporal reasoning that tracks when facts were valid, not just what they were. It&#8217;s deduplication, multitenant isolation, and explicit source-of-truth governance.</p>



<p class="wp-block-paragraph">The signal that this is a separate product category, not a feature: Mem0 raised <a href="https://mem0.ai/series-a" target="_blank" rel="noreferrer noopener">$24 million across seed and Series A</a>. Letta (formerly MemGPT) raised <a href="https://www.felicis.com/blog/letta" target="_blank" rel="noreferrer noopener">$10M from Felicis</a>. Zep exists as an independent company with a <a href="https://arxiv.org/abs/2501.13956" target="_blank" rel="noreferrer noopener">temporal knowledge graph engine</a>. Mem0&#8217;s <a href="https://mem0.ai/blog/state-of-ai-agent-memory-2026" target="_blank" rel="noreferrer noopener"><em>State of AI Agent Memory 2026</em> report</a> maps 21 frameworks across three hosting models with measurable benchmark gaps between them. On <a href="https://mem0.ai/blog/graph-memory-solutions-ai-agents" target="_blank" rel="noreferrer noopener">LongMemEval</a>, Zep scores 15 points higher than Mem0 on temporal queries, which tells you these aren&#8217;t interchangeable tools that happen to serve the same market.</p>



<p class="wp-block-paragraph">This is the component that platform teams underestimate hardest. Memory sounds like a database problem. It isn&#8217;t.</p>



<h3 class="wp-block-heading">Governance</h3>



<p class="wp-block-paragraph">The assumption is that governance is RBAC plus audit logging. Your agents are services. Services get role-based access controls. You log the tool calls. Compliance is happy.</p>



<p class="wp-block-paragraph">Agent governance is something different. It spans action authorization, not just data authorization. It requires decision-chain auditability, where you can reconstruct why the agent did what it did, not just what it did. It needs behavioral drift detection, tiered autonomy, and compliance mapped to agent actions rather than data accesses.</p>



<p class="wp-block-paragraph">Grant Thornton&#8217;s <a href="https://www.grantthornton.com/services/advisory-services/artificial-intelligence/2026-ai-impact-survey" target="_blank" rel="noreferrer noopener"><em>2026 AI Impact Survey</em></a> of 950 business executives found that 78% lack strong confidence they could pass an independent AI governance audit within 90 days. Meanwhile, enterprises are moving to increase agent autonomy faster than their governance frameworks can keep up. Traditional AI governance wasn&#8217;t designed for action-level authorization, which is where most agent-specific risk accumulates.</p>



<p class="wp-block-paragraph">And there&#8217;s a hard deadline attached to this. The <a href="https://www.covasant.com/blogs/eu-ai-act-compliance-autonomous-agents-enterprise-2026" target="_blank" rel="noreferrer noopener">EU AI Act</a> becomes fully enforceable for high-risk systems in August 2026. Credit scoring, hiring decisions, healthcare support, and critical infrastructure all fall in scope. If your internal platform doesn&#8217;t handle conformity assessments, human oversight mechanisms, complete audit trails, and ongoing monitoring, that&#8217;s not a v2 feature. That&#8217;s a legal exposure.</p>



<p class="wp-block-paragraph">OWASP now documents &#8220;<a href="https://www.ewsolutions.com/agentic-ai-governance/" target="_blank" rel="noreferrer noopener">excessive agency</a>&#8221; as a top vulnerability class for LLM applications. Cornell researchers have demonstrated indirect prompt injection attacks that manipulate agents through content they ingest. These are agent-specific attack surfaces, and traditional security tooling doesn&#8217;t see them.</p>



<p class="wp-block-paragraph">RBAC was designed for humans with predictable intent. Agents don&#8217;t have predictable intent.</p>



<h3 class="wp-block-heading">Eval</h3>



<p class="wp-block-paragraph">The assumption is that evaluation means writing test cases and measuring accuracy. You built software before. You know how to test things.</p>



<p class="wp-block-paragraph">Agent evaluation is qualitatively different from traditional software testing or even LLM evaluation, <a href="https://medium.com/quantumblack/evaluations-for-the-agentic-world-c3c150f0dd5a" target="_blank" rel="noreferrer noopener">McKinsey&#8217;s QuantumBlack team noted</a>: For LLMs, you evaluate the response to a prompt. For a single agent, you evaluate the full trajectory, including tool calls, state transitions, and intermediate decisions. For multi-agent systems, you evaluate system dynamics, including coordination patterns and collective invariants.</p>



<p class="wp-block-paragraph">This matters because agent behavior is nondeterministic by design. The same input produces different valid execution paths. &#8220;Did the agent succeed?&#8221; is no longer a yes-or-no question, because the agent might reach the right answer through a trajectory you didn&#8217;t anticipate, or reach the wrong answer through a trajectory that looks reasonable until the last step.</p>



<p class="wp-block-paragraph">The tooling ecosystem reflects this. <a href="https://cloud.google.com/vertex-ai/generative-ai/docs/models/evaluation-agents" target="_blank" rel="noreferrer noopener">Google Vertex AI has standardized</a> <code>trajectory_exact_match</code>, <code>trajectory_precision</code>, and <code>trajectory_recall</code> as production metrics. These didn&#8217;t exist 18 months ago. LangSmith, Braintrust, Arize, Galileo, Maxim, and others are building full evaluation platforms around trajectory-based analysis, LLM-as-judge scoring with statistical validation, and regression testing against production failures.</p>



<p class="wp-block-paragraph">Here&#8217;s the signal that the category is real: LangChain&#8217;s <a href="https://www.getmaxim.ai/articles/top-5-ai-evaluation-platforms-in-2026-2/" target="_blank" rel="noreferrer noopener"><em>2026 State of AI Agents</em> report</a> found that 57% of organizations now have agents in production, and 32% cite quality as the top deployment barrier. Gartner projects that 60% of software engineering teams will adopt AI evaluation and observability platforms by 2028, up from 18% in 2025. When a category jumps from 18% to 60% adoption in three years, that&#8217;s not a &#8220;we can build this in a sprint&#8221; situation.</p>



<p class="wp-block-paragraph">You can&#8217;t tell whether your evaluation is working without another evaluation. Judge drift, calibration against human experts, internal consistency across independent runs. . .your eval system needs its own eval system, which is exactly the kind of recursion that eats platform teams alive.</p>



<h3 class="wp-block-heading">Orchestration</h3>



<p class="wp-block-paragraph">The orchestration layer hasn&#8217;t converged. LangGraph uses directed graphs with conditional edges. CrewAI uses role-based crews. OpenAI&#8217;s Agents SDK uses explicit handoffs. AutoGen uses conversational GroupChat. Google ADK uses hierarchical agent trees. Claude&#8217;s Agent SDK uses tool-use chains with subagents. Microsoft&#8217;s Agent Framework is its own thing. Each represents a different bet on state management, communication pattern, and coordination model. None of them are interchangeable. Migration between them isn&#8217;t a config change—it&#8217;s rewriting most of your agent logic.</p>



<p class="wp-block-paragraph">Underneath them, the protocol layer is still being invented. The <a href="https://www.anthropic.com/research/building-effective-agents" target="_blank" rel="noreferrer noopener">Model Context Protocol</a> is becoming the standard for tool integration, and agent-to-agent (A2A) protocols are emerging for cross-framework coordination. Both are moving targets, and building on a moving protocol is a cost that internal platform teams rarely price in.</p>



<p class="wp-block-paragraph">If you built your own orchestration layer in 2024, you&#8217;re rewriting it in 2026. The teams that picked a framework spent those two years shipping.</p>



<h2 class="wp-block-heading">The honest case for building</h2>



<p class="wp-block-paragraph">I want to engage the strongest version of the build argument, because there are real reasons to build, and pretending otherwise makes this piece less useful than it should be.</p>



<p class="wp-block-paragraph">Proprietary data genuinely is a durable competitive moat. Mastercard built a foundation model on its transaction network. Plaid built one on its financial institution coverage. As <a href="https://www.pymnts.com/artificial-intelligence-2/2026/fintechs-race-to-build-foundation-models-on-proprietary-data/" target="_blank" rel="noreferrer noopener">Morgan Stanley&#8217;s analysis</a> from last year made clear, decades of verified historical data with consistent identifiers is both technically challenging and prohibitively expensive for outside players to recreate. If your organization has data like that, you should absolutely build on it.</p>



<p class="wp-block-paragraph">Regulated industries have legitimate reasons to want control over the full stack. Off-the-shelf AI tools don&#8217;t always cleanly map to frameworks like HIPAA, GxP, 21 CFR Part 11, SOX, FFIEC, and PCI DSS, and the cost of a failed audit is measured in business units shut down, not in sprints.</p>



<p class="wp-block-paragraph">Vendor lock-in at the AI layer is subtler and more dangerous than in traditional software. If your agentic workflows are built on a vendor&#8217;s proprietary orchestration layer, switching costs compound rapidly across memory, eval, and integrations simultaneously.</p>



<p class="wp-block-paragraph">But here&#8217;s the distinction that matters: Those are arguments for building agents on top of platform components, not arguments for building the platform components themselves. You can own the data, the domain logic, the evaluation criteria, the governance policies, and the specific behaviors your business needs without owning the memory layer, the orchestration engine, or the trace collection infrastructure underneath them.</p>



<p class="wp-block-paragraph">Build the things that are specific to your business. Buy the things that are specific to the technology category. That&#8217;s the heuristic.</p>



<h2 class="wp-block-heading"><strong>Five questions before you commit</strong></h2>



<p class="wp-block-paragraph">If you&#8217;re the platform engineer being pulled into this decision, here are the questions worth asking before anyone signs up for the scope.</p>



<p class="wp-block-paragraph"><strong>Are you building an agent platform or a workflow system?</strong> They&#8217;re not the same scope, and conflating them is where most of the cost overruns originate. A workflow system is a reasonable thing to build. An agent platform is four product categories you haven&#8217;t staffed for.</p>



<p class="wp-block-paragraph"><strong>Can you articulate what &#8220;done&#8221; looks like for each of the four components?</strong> Memory, governance, eval, orchestration. In under three sentences each. If you can&#8217;t, you don&#8217;t have requirements. You have a vibe. And vibes don&#8217;t ship.</p>



<p class="wp-block-paragraph"><strong>What happens to your platform when you need to swap the underlying model?</strong> Menlo&#8217;s <a href="https://menlovc.com/perspective/2025-the-state-of-generative-ai-in-the-enterprise/" target="_blank" rel="noreferrer noopener">December 2025 data</a> shows Anthropic went from 12% of enterprise LLM spend in 2023 to 40% in 2025, while OpenAI fell from 50% to 27%. Enterprises didn&#8217;t plan those switches. The capability gaps forced them. If your internal platform hardcoded assumptions about context windows, tool-calling formats, or reasoning styles from one vendor, swapping models isn&#8217;t an API key change. It&#8217;s simultaneous rewrites across memory, eval, and orchestration.</p>



<p class="wp-block-paragraph"><strong>What happens when the techniques themselves change?</strong> Eighteen months ago the default pattern was RAG with flat vector retrieval. Now it&#8217;s just-in-time context strategies, agent-managed memory tiers, and trajectory-based evaluation. Anthropic&#8217;s <a href="https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents" target="_blank" rel="noreferrer noopener">own follow-up</a> to &#8220;Building Effective Agents&#8221; explicitly acknowledges the field has moved since they wrote the original. If your platform baked in the 2024 patterns, the 2026 patterns are a refactor, not a config change. Vendor platforms absorb those shifts as releases. Internal platforms absorb them as sprints.</p>



<p class="wp-block-paragraph"><strong>What happens when the platform team leaves?</strong> This is the tale as old as COBOL, custom ESBs in 2008, or hand-rolled container orchestration in 2015. A small team builds something clever, it works, they move on, and five years later you&#8217;re paying premium rates to contractors who can still read the code. Agent platforms are a particularly bad candidate for this pattern because the talent pool is both small and mobile. Here&#8217;s the uncomfortable version of the question: Who on your team, today, could rebuild the memory layer if the person who wrote it left tomorrow?</p>



<h2 class="wp-block-heading">What this looks like in 2 years</h2>



<p class="wp-block-paragraph">Gartner&#8217;s prediction that <a href="https://www.gartner.com/en/newsroom/press-releases/2025-06-25-gartner-predicts-over-40-percent-of-agentic-ai-projects-will-be-canceled-by-end-of-2027" target="_blank" rel="noreferrer noopener">over 40% of agentic AI projects will be canceled by 2027</a> isn&#8217;t really about the AI. It&#8217;s about projects that got scoped before anyone understood the shape of the work. Most of the canceled projects will be internal builds, because internal builds are where the scope estimation error accumulates. Deloitte&#8217;s data on <a href="https://www.deloitte.com/us/en/insights/topics/digital-transformation/state-of-generative-ai-in-enterprise.html" target="_blank" rel="noreferrer noopener">two- to four-year AI ROI horizons</a> is the warning shot. If your timeline to value is already long, every month you spend rebuilding a component that exists as a product is a month you don&#8217;t have.</p>



<p class="wp-block-paragraph">The teams that built their platforms around OpenAI in 2023 weren&#8217;t wrong. They made a reasonable bet on the market leader at the time. But they spent 2025 porting to a landscape where Anthropic had tripled share and Google had gone from 7% to 21%. The teams that picked model-agnostic platforms spent 2025 shipping. The only durable bet in this space is the one that assumes the bet will change.</p>



<p class="wp-block-paragraph">The best platform engineering decision you can make this quarter might be to not build the platform.</p>



<h2 class="wp-block-heading">Sources</h2>



<h3 class="wp-block-heading">Primary sources</h3>



<ul class="wp-block-list">
<li>Menlo Ventures, <em>2025: The State of Generative AI in the Enterprise</em>, December 2025, <br><a href="https://menlovc.com/perspective/2025-the-state-of-generative-ai-in-the-enterprise/" target="_blank" rel="noreferrer noopener">https://menlovc.com/perspective/2025-the-state-of-generative-ai-in-the-enterprise/</a>.</li>



<li>Anthropic, &#8220;Building Effective Agents,&#8221; December 2024, <br><a href="https://www.anthropic.com/research/building-effective-agents" target="_blank" rel="noreferrer noopener">https://www.anthropic.com/research/building-effective-agents</a>.</li>



<li>Anthropic, &#8220;Effective Context Engineering for AI Agents,&#8221; 2025, <br><a href="https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents" target="_blank" rel="noreferrer noopener">https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents</a>.</li>



<li>European Commission, AI Act Regulatory Framework (Regulation EU 2024/1689), <br><a href="https://digital-strategy.ec.europa.eu/en/policies/regulatory-framework-ai" target="_blank" rel="noreferrer noopener">https://digital-strategy.ec.europa.eu/en/policies/regulatory-framework-ai</a>.</li>



<li>Google Cloud, &#8220;Evaluate Gen AI Agents,&#8221; Vertex AI Documentation, <br><a href="https://cloud.google.com/vertex-ai/generative-ai/docs/models/evaluation-agents" target="_blank" rel="noreferrer noopener">https://cloud.google.com/vertex-ai/generative-ai/docs/models/evaluation-agents</a>.</li>



<li>McKinsey QuantumBlack, &#8220;Evaluations for the Agentic World,&#8221; <br><a href="https://medium.com/quantumblack/evaluations-for-the-agentic-world-c3c150f0dd5a" target="_blank" rel="noreferrer noopener">https://medium.com/quantumblack/evaluations-for-the-agentic-world-c3c150f0dd5a</a>.</li>



<li>LangChain, <em>State of Agent Engineering 2026</em>,<br><a href="https://www.langchain.com/state-of-agent-engineering" target="_blank" rel="noreferrer noopener">https://www.langchain.com/state-of-agent-engineering</a>.</li>



<li>Gartner, &#8220;Gartner Predicts Over 40% of Agentic AI Projects Will Be Canceled by End of 2027,&#8221; June 2025, <a href="https://www.gartner.com/en/newsroom/press-releases/2025-06-25-gartner-predicts-over-40-percent-of-agentic-ai-projects-will-be-canceled-by-end-of-2027" target="_blank" rel="noreferrer noopener">https://www.gartner.com/en/newsroom/press-releases/2025-06-25-gartner-predicts-over-40-percent-of-agentic-ai-projects-will-be-canceled-by-end-of-2027</a>.</li>



<li>Grant Thornton, <em>2026 AI Impact Survey</em>, April 2026,<br><a href="https://www.grantthornton.com/services/advisory-services/artificial-intelligence/2026-ai-impact-survey" target="_blank" rel="noreferrer noopener">https://www.grantthornton.com/services/advisory-services/artificial-intelligence/2026-ai-impact-survey</a>.</li>
</ul>



<h3 class="wp-block-heading">Secondary Sources</h3>



<ul class="wp-block-list">
<li>Mem0, &#8220;Mem0 Raises $24M to Build the Memory Layer for AI,&#8221; October 2025, <br><a href="https://mem0.ai/series-a" target="_blank" rel="noreferrer noopener">https://mem0.ai/series-a</a>.</li>



<li>Felicis, &#8220;Felicis&#8217;s Seed in Letta,&#8221; September 2024, <br><a href="https://www.felicis.com/blog/letta" target="_blank" rel="noreferrer noopener">https://www.felicis.com/blog/letta</a>.</li>



<li>Vectorize.io, &#8220;Mem0 vs Zep,&#8221; Benchmark Comparison, <br><a href="https://vectorize.io/articles/mem0-vs-zep" target="_blank" rel="noreferrer noopener">https://vectorize.io/articles/mem0-vs-zep</a>.</li>



<li>Rasmussen et al., &#8220;Zep: A Temporal Knowledge Graph Architecture for Agent Memory,&#8221; arXiv 2501.13956, <br><a href="https://arxiv.org/abs/2501.13956" target="_blank" rel="noreferrer noopener">https://arxiv.org/abs/2501.13956</a>.</li>



<li>OWASP, &#8220;LLM08:2025 Excessive Agency,&#8221; OWASP Top 10 for LLM Applications, <br><a href="https://genai.owasp.org/llmrisk/llm08-excessive-agency/" target="_blank" rel="noreferrer noopener">https://genai.owasp.org/llmrisk/llm08-excessive-agency/</a>.</li>



<li>Greshake et al., &#8220;Not What You&#8217;ve Signed Up For: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection,&#8221; arXiv 2302.12173, February 2023,<br><a href="https://arxiv.org/abs/2302.12173" target="_blank" rel="noreferrer noopener">https://arxiv.org/abs/2302.12173</a>.</li>



<li>Model Context Protocol, Official Specification, <br><a href="https://modelcontextprotocol.io" target="_blank" rel="noreferrer noopener">https://modelcontextprotocol.io</a>.</li>



<li>PYMNTS, &#8220;FinTechs Race to Build Foundation Models on Proprietary Data,&#8221; 2026,<br><a href="https://www.pymnts.com/artificial-intelligence-2/2026/fintechs-race-to-build-foundation-models-on-proprietary-data/" target="_blank" rel="noreferrer noopener">https://www.pymnts.com/artificial-intelligence-2/2026/fintechs-race-to-build-foundation-models-on-proprietary-data/</a>.</li>



<li>Deloitte, &#8220;State of Generative AI in the Enterprise,&#8221; Quarterly Reports, <br><a href="https://www.deloitte.com/us/en/insights/topics/digital-transformation/state-of-generative-ai-in-enterprise.html" target="_blank" rel="noreferrer noopener">https://www.deloitte.com/us/en/insights/topics/digital-transformation/state-of-generative-ai-in-enterprise.html</a>.</li>
</ul>
]]></content:encoded>
							<wfw:commentRss>https://www.oreilly.com/radar/the-case-against-building-your-own-agent-platform/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>Linear Thinking, Nonlinear Costs</title>
		<link>https://www.oreilly.com/radar/linear-thinking-nonlinear-costs/</link>
				<comments>https://www.oreilly.com/radar/linear-thinking-nonlinear-costs/#respond</comments>
				<pubDate>Tue, 16 Jun 2026 11:02:01 +0000</pubDate>
					<dc:creator><![CDATA[Nicole Koenigstein]]></dc:creator>
						<category><![CDATA[AI & ML]]></category>
		<category><![CDATA[Commentary]]></category>

		<guid isPermaLink="false">https://www.oreilly.com/radar/?p=18920</guid>

		
					<media:content 
				url="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/The-missing-optimization-layer-in-agent-systems.png" 
				medium="image" 
				type="image/png" 
				width="1200" 
				height="896" 
			/>

			<media:thumbnail 
				url="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/The-missing-optimization-layer-in-agent-systems-160x160.png" 
				width="160" 
				height="160" 
			/>
		
				<custom:subtitle><![CDATA[The Missing Optimization Layer in Agent Systems]]></custom:subtitle>
		
				<description><![CDATA[Many AI agent systems become economically unsustainable long before they become technically impressive. Teams usually focus on model choice, prompt design, tool calling, and orchestration. Those things matter, but they are only part of the system setup. The deeper issue is that coding agents, such as Claude Code, Codex, and Jules, make agent workflows easier [&#8230;]]]></description>
								<content:encoded><![CDATA[
<p class="wp-block-paragraph">Many AI agent systems become economically unsustainable long before they become technically impressive. Teams usually focus on model choice, prompt design, tool calling, and orchestration. Those things matter, but they are only part of the system setup. The deeper issue is that coding agents, such as Claude Code, Codex, and Jules, make agent workflows easier to generate. But when implementation is abstracted away, the underlying mechanics become harder to see. Bad engineering used to produce slow code. Now it produces expensive systems that also happen to be slow.</p>



<p class="wp-block-paragraph">When we design agent systems, we still need to remember that the costs scale nonlinearly. A single user request rarely triggers a single model call. It expands into routing, retrieval, reasoning, reflection, guardrail checks, tool calls, and synthesis. Each step may repeat shared context, reload state, recompute a planner decision, or retry a failed path. What looks like an intelligent workflow can therefore behave like a recursive, stateful computation with overlapping subproblems. If that sounds like backtracking, dynamic programming, and memoization to you, you’re right.</p>



<p class="wp-block-paragraph">We already know how to optimize systems like this. The problem is that coding agents make agent systems easier to generate, but not necessarily easier to optimize. Unless we recognize the underlying mechanics, we may never ask our coding agents to apply the optimization patterns that keep our systems viable.</p>



<h2 class="wp-block-heading"><strong>Old problems wearing new clothes</strong></h2>



<p class="wp-block-paragraph">When we use coding agents to generate agent architectures, it’s tempting to stop at &#8220;the trace looks reasonable.&#8221; The tool can generate routers, retrievers, planners, evaluators, guardrails, tool interfaces, and synthesis steps. It may also know about caching, pruning, memoization, and state modeling. But it won’t necessarily implement those patterns unless you ask for these optimization layers explicitly.</p>



<p class="wp-block-paragraph">Even if you work with agent instructions, unless your SKILL.md, AGENTS.md, or project instructions include constraints around repeated context, memoization, cache invalidation, pruning, and cost per request, your resulting agent system may be functionally correct and economically wasteful at the same time. That’s the tricky part: The code can pass review, the unit tests can pass, and the architecture can look reasonable. The invoice is where the hidden computation finally shows up.</p>



<p class="wp-block-paragraph">It’s easy to give too much agency to tools like Claude Code. When a coding agent reasons in language, calls tools, reflects, and produces fluent text or code, it can feel like a knowledgeable coworker. At the interface level, that impression is understandable. These tools help teams generate more code, move faster, and become more productive. Still, this doesn’t remove the need for engineering craft underneath. Someone still has to recognize repeated context, recomputed planner decisions, correlated retries, unpruned branches, and state that can’t be reused. The coding agent can implement the system, but the engineer still has to understand what kind of system should be implemented. This is where old computer science returns, not as theory but as the optimization layer our agent systems need in production.</p>



<h2 class="wp-block-heading"><strong>The cost multiplier, repeated-work problems, and backtracking</strong></h2>



<p class="wp-block-paragraph">The cost multiplier often shows up first as latency. The user doesn’t see the router, the retries, the reflection loop, or the tool calls. They only see that the agent is taking too long. From the outside, the system looks stuck or broken. From the inside, it may simply be repeating work.</p>



<p class="wp-block-paragraph">This is one of the uncomfortable differences between traditional software and agent systems. In a conventional application, a failed operation often throws an error, times out, or leaves a trace that is easy to inspect. In an agent workflow, failure can look like effort to improve reliability. Take the weakest step in your agent workflow. If it succeeds 60% of the time, and you try to push it close to 99% reliability through retries, you need 5 retries:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="has-text-align-center wp-block-paragraph">1 <em>− </em>(1 <em>− </em>0<em>.</em>60)<sup>5 </sup>= 0<em>.</em>98976</p>
</blockquote>



<p class="wp-block-paragraph">This math assumes each retry is a roll of fair dice. LLMs aren’t dice. Whether you’re using greedy decoding or probabilistic sampling, the model is still drawing from the same underlying distribution shaped by your prompt. If the first &#8220;thought&#8221; is a hallucination or logic error, bumping the temperature won’t fix the underlying state. You aren’t buying independent trials; you’re just sampling different paths through the same flawed map and state.</p>



<p class="wp-block-paragraph">This is where the old algorithmic framing matters. In a backtracking problem, you don’t keep walking down the same failed branch and call it progress. You return to the last valid state, mark the failed path, and use the failure as information for the next choice. The point isn’t just to try again. The point is to try again under a changed state.</p>



<p class="wp-block-paragraph">Agent workflows need the same discipline. A retry shouldn’t mean &#8220;run it again and hope.&#8221; It should give the model structured feedback about why the previous attempt failed: which constraint failed, which tool result was invalid, which schema didn’t validate, which assumption was unsupported, or which branch added nothing. The next attempt should then change something meaningful: the prompt, the tool choice, the retrieved evidence, the validation constraint, or the planner state.</p>



<h2 class="wp-block-heading"><strong>Memoization, pruning, and dynamic programming</strong></h2>



<p class="wp-block-paragraph">Prompt caching is usually the first optimization. If every step repeats the same system prompt, tool definitions, schema constraints, examples, and policy rules, then caching the shared prefix is an obvious win. It reduces the cost of repeated context. But prompt caching only recognizes that text repeats. It doesn’t notice that decisions repeat.</p>



<p class="wp-block-paragraph">In many agent systems, the expensive unit isn’t only text. It’s the repeated decision. If the same or equivalent state appears again, paying the model to rediscover the same action is unnecessary. That is what memoization does: It turns repeated computation into lookup. In classical algorithms, the repeated computation might be a recursive subproblem. In an agent system, it might be a planner decision over the same task, facts, tools, and constraints. The planner can be treated as a function over state:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<div class="wp-block-math"><math display="block"><semantics><mrow><msup><mrow></mrow><mi>π</mi></msup><mi>L</mi><mi>L</mi><mi>M</mi><mo form="prefix" stretchy="false">(</mo><msub><mi>S</mi><mi>t</mi></msub><mo form="postfix" stretchy="false">)</mo><mo stretchy="false">→</mo><msub><mi>a</mi><mrow><mi>t</mi><mo>+</mo><mn>1</mn></mrow></msub></mrow><annotation encoding="application/x-tex">^πLLM(S_t) \rightarrow a_{t+1} </annotation></semantics></math></div>
</blockquote>



<p class="wp-block-paragraph">where <math data-latex="S_t "><semantics><msub><mi>S</mi><mi>t</mi></msub><annotation encoding="application/x-tex">S_t </annotation></semantics></math> is the current state of the workflow and <math data-latex="a_{t+1}"><semantics><msub><mi>a</mi><mrow><mi>t</mi><mo>+</mo><mn>1</mn></mrow></msub><annotation encoding="application/x-tex">a_{t+1}</annotation></semantics></math><sub> </sub>is the next action. Without memoization, this function is evaluated again and again through an LLM call. With memoization, the system first checks whether it has seen the same or equivalent state before. If you want a deeper walkthrough of how to use memoization, I cover it in <em><a href="https://learning.oreilly.com/library/view/ai-agents-the/0642572247775/" target="_blank" rel="noreferrer noopener">AI Agents: The Definitive Guide</a></em>.</p>



<p class="wp-block-paragraph">But memoization only helps once the system knows which states are worth revisiting. Pruning handles the other side of the problem: branches that shouldn’t be explored further. However, don’t limit pruning to KV cache pruning or speculative decoding. Use it also when a tool repeatedly returns no new information. Your next LLM call shouldn’t be a slightly reworded version of the same query. If a reflection loop keeps producing stylistic changes without improving correctness, the loop should stop. If a search path violates a constraint or depends on an unsupported assumption, it should be marked as unproductive and removed from the active search space.</p>



<p class="wp-block-paragraph">Dynamic programming becomes relevant when different branches of the workflow solve overlapping subproblems. A research agent may ask similar questions across several documents. A coding agent may inspect the same dependency chain from different entry points. A business analysis agent may compute the same metric for several report sections. If every branch solves these subproblems from scratch, the system pays repeatedly for work it has already done. Table 1 shows examples of how these patterns map to AI agent systems.</p>



<p class="has-text-align-center wp-block-paragraph"><strong>Table 1. Classical optimization patterns applied to AI agent systems </strong></p>



<figure class="wp-block-table"><table class="has-fixed-layout"><tbody><tr><td><strong>Optimization</strong></td><td><strong>The &#8220;old&#8221; CS way</strong></td><td><strong>The &#8220;agent&#8221; way&nbsp;</strong></td></tr><tr><td>Memoization</td><td>Store results of expensive function calls.</td><td>Cache decisions. If the agent saw this state before, don’t ask it to reason again.&nbsp;</td></tr><tr><td>Pruning</td><td>Cut off search paths in a tree that won’t lead to a solution.</td><td>Kill a reflection loop when the critique stops yielding structural improvements.</td></tr><tr><td>Dynamic programming</td><td>Break problems into overlapping subproblems.&nbsp;</td><td>Share codebase analysis across multiple specialized agents instead of rereading files.</td></tr></tbody></table></figure>



<p class="wp-block-paragraph"><br>This isn’t nostalgia. These patterns mitigate the cost structure of agent systems. Memoization reduces repeated decisions. Pruning reduces repeated failure. Dynamic programming reduces repeated subproblem solving. Together, they form the optimization layer many agent architectures are missing in production.</p>



<h2 class="wp-block-heading"><strong>Where to start: Optimization follows topology</strong></h2>



<p class="wp-block-paragraph">The patterns above aren’t a checklist you apply uniformly. Each multi-agent topology, whether centralized, decentralized, independent, or hybrid, distributes communication and coordination differently, which directly affects overhead, latency, and failure propagation. The optimization layer has to follow.</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph"><strong>Centralized</strong><br>A single orchestrator decides, delegates, and aggregates. The expensive unit is the orchestrator’s decision, repeated across similar inputs. Memoize the planner first.</p>



<p class="wp-block-paragraph"><strong>Decentralized</strong><br>Agents coordinate peer-to-peer, exchanging messages without a central authority. The cost moves into the communication itself: redundant exchanges, restated context, agents reasoning over the same shared state from different angles. Prompt caching on the shared context is the first win, followed by pruning exchanges that no longer add information.</p>



<p class="wp-block-paragraph"><strong>Independent/swarms</strong><br>Lightweight agents fan out without coordinating. Cheap individually, expensive in aggregate. If three of your ten agents ask semantically equivalent questions, you pay three times for the same answer. Memoization and pruning aren’t optimizations here; they’re load-bearing.</p>



<p class="wp-block-paragraph"><strong>Hybrid</strong><br>The repeated work shows up at two scales: within a cluster (overlapping subproblems among peers) and across clusters (the coordinator rediscovering the same routing decision). Use dynamic programming on shared subproblems inside the cluster, memoization on the coordinator’s decisions across them.</p>
</blockquote>



<p class="wp-block-paragraph">The optimization layer isn’t a generic discipline you bolt on. It’s a function of the shape of the implementation. Coding agents made it easy to generate the shape without seeing it. The craft is in seeing it anyway.</p>
]]></content:encoded>
							<wfw:commentRss>https://www.oreilly.com/radar/linear-thinking-nonlinear-costs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>Who Owns the Code Claude Wrote?</title>
		<link>https://www.oreilly.com/radar/who-owns-the-code-claude-wrote/</link>
				<comments>https://www.oreilly.com/radar/who-owns-the-code-claude-wrote/#respond</comments>
				<pubDate>Mon, 15 Jun 2026 10:58:47 +0000</pubDate>
					<dc:creator><![CDATA[Sena Evren]]></dc:creator>
						<category><![CDATA[AI & ML]]></category>
		<category><![CDATA[Commentary]]></category>

		<guid isPermaLink="false">https://www.oreilly.com/radar/?p=18912</guid>

		
					<media:content 
				url="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/Who-owns-the-code-Claude-wrote.jpg" 
				medium="image" 
				type="image/jpeg" 
				width="2304" 
				height="1792" 
			/>

			<media:thumbnail 
				url="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/Who-owns-the-code-Claude-wrote-160x160.jpg" 
				width="160" 
				height="160" 
			/>
		
				<custom:subtitle><![CDATA[AI-generated code copyright explained for builders.]]></custom:subtitle>
		
				<description><![CDATA[The following article originally appeared on Sena Evren’s Legal Layer newsletter and is being reposted here with the author’s permission. TL; DR Agentic coding tools like Claude Code, Cursor, and Codex generate code that may be uncopyrightable, owned by your employer, or contaminated by open source licenses you cannot see. Some of this is settled [&#8230;]]]></description>
								<content:encoded><![CDATA[
<p class="wp-block-paragraph"><em>The following article originally appeared on </em><a href="https://legallayer.substack.com/p/who-owns-the-claude-code-wrote" target="_blank" rel="noreferrer noopener"><em>Sena Evren’s </em>Legal Layer<em> newsletter</em></a><em> and is being reposted here with the author’s permission.</em></p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph"><strong>TL; DR</strong><br><br>Agentic coding tools like Claude Code, Cursor, and Codex generate code that may be uncopyrightable, owned by your employer, or contaminated by open source licenses you cannot see. Some of this is settled law, some is actively contested, and this piece is clear about which is which. If you are shipping AI-assisted code and have not thought about any of this, this piece is for you.<br><br></p>
</blockquote>



<p class="wp-block-paragraph">If you shipped code this week, some of it was probably written by an AI. The question of who legally owns that code is less settled than most developers assume, and the answer depends on three things that have nothing to do with how good the code is:</p>



<ol class="wp-block-list">
<li>Whether a human made enough creative decisions to establish copyright</li>



<li>Whether your employment contract already assigned it to your employer</li>



<li>Whether the model pulled from GPL-licensed training data and quietly contaminated your codebase</li>
</ol>



<p class="wp-block-paragraph">On March 31, 2026, Anthropic accidentally published 512,000 lines of Claude Code’s source code in a routine software update through a missing configuration file. Before sunrise, the codebase was mirrored across GitHub. Before breakfast, a developer had used an AI tool to rewrite the entire thing in Python, and the “claw-code” repository hit 100,000 GitHub stars in a single day, the fastest in history. Then came the DMCA takedowns, and then came the question nobody had a clean answer to:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">If Claude Code was, by Anthropic’s own lead engineer’s admission, predominantly written by Claude itself, does Anthropic even own it? Can you issue a DMCA takedown for code that copyright law may not protect?</p>
</blockquote>



<p class="wp-block-paragraph">That incident compressed every open question about AI-generated code ownership into a single news cycle. The same questions apply to your codebase.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1200" height="480" src="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-14.png" alt="Three risks in every AI-assisted codebase" class="wp-image-18913" srcset="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-14.png 1200w, https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-14-300x120.png 300w, https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-14-768x307.png 768w" sizes="auto, (max-width: 1200px) 100vw, 1200px" /></figure>



<h2 class="wp-block-heading">The copyright rule nobody told you</h2>



<p class="wp-block-paragraph">Here is the legal baseline, in plain terms: <strong>Copyright only protects work created by a human</strong>.</p>



<p class="wp-block-paragraph">The US Copyright Office has confirmed this consistently, and the DC Circuit upheld it in the Thaler case. When the Supreme Court declined to hear the Thaler appeal in March 2026, it did not endorse the lower court&#8217;s reasoning or settle the question nationally. Cert denial means the court chose not to hear the case, nothing more. What it does mean is that the DC Circuit&#8217;s ruling stands, the Copyright Office&#8217;s position is intact, and no court has yet gone the other way. Works predominantly generated by AI without meaningful human authorship are not eligible for copyright protection under current doctrine, and that position is stable even if it is not finally settled.</p>



<p class="wp-block-paragraph">Two important limits on what Thaler actually decided.</p>



<ol class="wp-block-list">
<li>The case involved a painting created with zero human involvement at all. Thaler listed the AI system as sole author and made no claim of any human creative contribution. The ruling does not directly address the harder question of AI-assisted work where a human was involved but the degree of that involvement is disputed.</li>



<li>Thaler involved visual art. No court has yet applied the human authorship doctrine specifically to code output from an AI coding tool. The logic applies, but the direct precedent does not exist yet.</li>
</ol>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph"><strong>What it means for you</strong>: Code that Claude Code or Cursor generated and you accepted without meaningful modification may not be copyrightable by anyone. If a competitor copies it, you may have no legal recourse, because the code sits in the public domain in everything but name.</p>
</blockquote>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1200" height="500" src="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-15.png" alt="What counts as meaningful human authorship?" class="wp-image-18914" srcset="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-15.png 1200w, https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-15-300x125.png 300w, https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-15-768x320.png 768w" sizes="auto, (max-width: 1200px) 100vw, 1200px" /></figure>



<p class="wp-block-paragraph">The phrase that determines whether your code is protected is “<strong>meaningful human authorship</strong>,” and the Copyright Office has deliberately refused to quantify it with a percentage or a number of edits, because what courts look for is evidence that a human made genuine creative decisions:</p>



<ul class="wp-block-list">
<li>Choosing the architecture</li>



<li>Deciding what to reject</li>



<li>Restructuring the output to fit a specific design</li>
</ul>



<p class="wp-block-paragraph">Specifying an objective to the model is not enough. Directing how the work is constructed is what counts.</p>



<p class="wp-block-paragraph">In an agentic workflow, this distinction is harder to establish than it sounds. Consider a typical Claude Code session:</p>



<ul class="wp-block-list">
<li>You write a one-line prompt: “build a rate limiting module for the API.”</li>



<li>Claude Code plans the approach, generates five files, and iterates through three versions.</li>



<li>You review the output, run the tests, and merge.</li>
</ul>



<p class="wp-block-paragraph">Your contribution in that sequence is your architectural intent and your final approval. Whether that constitutes meaningful human authorship in a courtroom is an unresolved question with no definitive court ruling yet.</p>



<p class="wp-block-paragraph">The honest answer is: probably yes for modules you substantially redirected, probably no for code you accepted verbatim, and unclear for everything in between.</p>



<p class="wp-block-paragraph">The middle ground is actively being litigated right now. In Allen v. Perlmutter, artist Jason Allen is challenging the Copyright Office’s denial of registration for a work he created using more than 600 detailed prompts and subsequent editing in Photoshop. The Copyright Office acknowledged the Photoshop edits as human-authored but still denied registration for the AI-generated underlying elements. That case has not been decided yet, and whatever it decides will be the closest thing to a ruling on how much human involvement is enough.</p>



<p class="wp-block-paragraph">The closest existing precedent on partial protection is <em>Zarya of the Dawn</em>, a graphic novel where the Copyright Office granted registration for the human-authored text but denied it for the Midjourney-generated images. That decision establishes a practical principle developers can use right now: The human-authored elements of an AI-assisted codebase may be separately protectable even if the generated code itself is not. Your architecture documents, your design decisions recorded in commit messages, your ADRs, your prompt logs showing deliberate redirection, these may be protectable as human-authored expression even if the code they produced is not. Protecting what you can starts with documenting what you actually did.</p>



<h2 class="wp-block-heading">What your employer probably already owns</h2>



<p class="wp-block-paragraph">Before you think about whether your code is copyrightable, there is a more immediate question: Even if it is, is it actually yours?</p>



<p class="wp-block-paragraph">Your employment contract almost certainly says that anything you build at work belongs to your employer. That principle has a name in copyright law: the work-for-hire doctrine. Under it, any code created by an employee within the scope of their employment is owned by the employer, who is treated as the legal author, regardless of whether the code was written by hand, generated by Claude Code, or some combination. Using an AI coding tool during work hours, on a work project, on a work machine, does not change who owns the result.</p>



<p class="wp-block-paragraph">Most employment contracts go further than the doctrine’s defaults. Look for a section in yours called “Intellectual Property,” “IP Assignment,” or “Work Product.” Open the contract, search for those terms, and read that section. A clause that says any of the following almost certainly covers your AI-assisted code:</p>



<ul class="wp-block-list">
<li>“Any work product created using company equipment or resources”</li>



<li>“Any invention or development made during the term of employment”</li>



<li>“Any software created with the assistance of company-licensed tools”</li>
</ul>



<p class="wp-block-paragraph">The third one is the one to watch. If your employer licenses Claude Code, Cursor, or Copilot for the team, and you use those same tools to build a side project, a broad IP assignment clause may give the employer a claim over that project, even if you built it on your own time.</p>



<p class="wp-block-paragraph">A senior developer in San Francisco described exactly this situation earlier this year. He had used Claude Code for work projects and for a personal fitness tracking app built on evenings and weekends. His company updated its IP policy and claimed everything he had built with AI assistance, including the personal app, arguing that because Claude had access to open work files in the IDE, any AI output was a derivative work of company IP.</p>



<p class="wp-block-paragraph">This is the clearest example of how far this can stretch. His company&#8217;s claim rested on one phrase: The AI tools were &#8220;context-aware&#8221; of his company&#8217;s codebase. The argument does not hold up legally, because context visibility in an IDE does not make AI output a derivative work of files that were open nearby, and the connection between what Claude can see and what it generates is probabilistic pattern completion, not copying. But the argument illustrates what employers are starting to claim. If the clause is broad enough, it has surface validity regardless of what the AI actually did.</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph"><strong>The practical rule</strong>: If you are building something on the side, use a personal account, a personal machine, and tools you pay for yourself. Keep your employer’s licensed tools out of that workflow entirely.</p>
</blockquote>



<h2 class="wp-block-heading">The open source contamination problem</h2>



<p class="wp-block-paragraph">Even if you own your AI-generated code, you may have already contaminated it with an open source license you cannot see.</p>



<p class="wp-block-paragraph">AI coding tools are trained on massive amounts of public code, including code licensed under the GPL, LGPL, and other copyleft licenses. <strong>Copyleft licenses carry a specific obligation that travels with the code</strong>:</p>



<ul class="wp-block-list">
<li>If you distribute software that is a derivative of GPL-licensed code, you must release your own source code under the same license.</li>



<li>This applies even if you did not know the code you incorporated was GPL-licensed.</li>



<li>“I did not know” is not a defense to a copyleft violation.</li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1200" height="460" src="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-16.png" alt="The GPL contamination chain" class="wp-image-18915" srcset="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-16.png 1200w, https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-16-300x115.png 300w, https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-16-768x294.png 768w" sizes="auto, (max-width: 1200px) 100vw, 1200px" /></figure>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">When an AI tool reproduces a substantial verbatim portion of GPL-licensed code from its training data, and you ship that code in a commercial product without releasing source, you may have created a copyleft violation without ever touching the original repository. The legal standard for infringement is substantial verbatim reproduction, not functional similarity or resemblance, and this distinction matters: an AI tool generating code that works like GPL code is different from an AI tool that reproduces GPL code word for word. The risk sits at the verbatim end of that spectrum, and the problem is that you have no way to know which side of the line your codebase is on without running a scan.</p>
</blockquote>



<p class="wp-block-paragraph">The chardet community dispute made this concrete in early 2026. This was not a filed lawsuit but a public dispute within the open source community that raised the question without resolving it legally. A developer used Claude to rewrite chardet, a Python character encoding library, and rereleased it under an MIT license, arguing that the AI rewrite was a “clean room” implementation free of the original LGPL license.</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph"><strong>The legal question the community fought over</strong>: If Claude was trained on the LGPL-licensed codebase and its output reproduces substantial verbatim portions of that code, can the output be treated as license-free? The chardet dispute did not resolve cleanly and no court has issued a definitive ruling on this specific question. What is settled is that verbatim copying of GPL code violates the license regardless of how it was produced. What is unsettled is whether AI-generated output that reproduces training data patterns counts as verbatim copying. The working assumption among lawyers advising companies through M&amp;A is that it probably does, and that assumption is now showing up as a standard condition in acquisition due diligence.</p>
</blockquote>



<p class="wp-block-paragraph">The Doe v GitHub litigation, still working through the Ninth Circuit as of April 2026, is asking whether GitHub Copilot reproduces licensed code without attribution in violation of copyright law and DMCA Section 1202. The district court dismissed most claims but the appeal is live. Whatever the outcome, the litigation has already changed industry behavior: GitHub Copilot added duplicate detection filters, and acquisition due diligence now routinely includes an AI codebase license scan.</p>



<h2 class="wp-block-heading">What to do about all of this</h2>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1200" height="420" src="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-17.png" alt="Your four actions before you ship" class="wp-image-18916" srcset="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-17.png 1200w, https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-17-300x105.png 300w, https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-17-768x269.png 768w" sizes="auto, (max-width: 1200px) 100vw, 1200px" /></figure>



<p class="wp-block-paragraph">Four concrete actions, none of which require a lawyer.</p>



<h3 class="wp-block-heading">1. Run a license scan on your AI-assisted codebase</h3>



<p class="wp-block-paragraph">Tools that do this well:</p>



<ul class="wp-block-list">
<li><a href="https://fossa.com/">FOSSA</a>—most comprehensive, widely used in enterprise</li>



<li><a href="https://snyk.io/product/open-source-security/">Snyk Open Source</a>—good for dev-team workflows, integrates with GitHub</li>



<li><a href="https://www.blackducksoftware.com/">Black Duck</a>—standard in M&amp;A due diligence</li>
</ul>



<p class="wp-block-paragraph">Each will scan your codebase, flag code that matches known open source libraries, and identify the licenses attached. If you are shipping a commercial product and have never run one of these, you are operating on assumption. The scan takes an afternoon and costs less than the first hour of a copyright dispute.</p>



<h3 class="wp-block-heading">2. Document your human creative contributions as you go</h3>



<p class="wp-block-paragraph">The evidence that establishes meaningful human authorship is the same evidence you already produce in a normal engineering workflow. You just have to keep it deliberately rather than letting it disappear.</p>



<p class="wp-block-paragraph">What to preserve:</p>



<ul class="wp-block-list">
<li>Commit messages that describe what you changed and why, not just what the AI generated. “Restructured Claude’s module architecture, rejected initial state management approach, rewrote error handling from scratch” is evidence. “Add rate limiting module” is not.</li>



<li>Prompt logs. Claude Code and Cursor both retain interaction history. Export or screenshot the sessions where you made significant architectural decisions.</li>



<li>Design documents, ADRs, or any notes that predate the generated code and show you specified the structure before the AI built it.</li>
</ul>



<p class="wp-block-paragraph">The second commit message versus the first is the difference between a defensible authorship claim and a clean “Claude wrote this” record.</p>



<h3 class="wp-block-heading">3. Read the IP clause in your employment contract before you build anything on the side</h3>



<p class="wp-block-paragraph">Open your contract, search for “intellectual property,” “IP assignment,” or “work product,” and read that section carefully. The specific language determines your exposure:</p>



<ul class="wp-block-list">
<li>“Work product created during employment hours” is narrower than “work product created using company resources.”</li>



<li>“Relating to the company’s business” is narrower than “any software development.”</li>



<li>“Company-licensed tools” is the phrase that captures AI coding tools even on personal projects.</li>
</ul>



<p class="wp-block-paragraph">If the clause is broad and you want to build something independently, you have three realistic options: negotiate a written carveout before you start (easier at the start of a new role than mid-employment), use entirely personal tools on entirely personal time on a personal machine, or accept that the claim exists and decide whether the risk is worth it.</p>



<h3 class="wp-block-heading">4. Check which Anthropic plan you are on before shipping for commercial use</h3>



<p class="wp-block-paragraph">Go to <a href="http://anthropic.com/legal" target="_blank" rel="noreferrer noopener">anthropic.com/legal</a> and compare the consumer terms against the commercial terms. The difference that matters:</p>



<ul class="wp-block-list">
<li><strong>Consumer terms (free and Pro plans)</strong>: Anthropic assigns outputs to you, but the IP indemnification is narrower and covers fewer scenarios.</li>



<li><strong>Commercial terms (API and enterprise)</strong>: Anthropic assigns outputs to you and will defend you against copyright infringement claims arising from your authorized use of the service and its outputs.</li>
</ul>



<p class="wp-block-paragraph">If you are shipping AI-assisted code in a commercial product using the free or Pro plan, the indemnification gap is real. The API or enterprise agreement is the appropriate tier. Note that neither indemnification covers a downstream GPL violation from license contamination in your codebase. That is your governance problem to solve with the license scan in action 1.</p>



<h2 class="wp-block-heading">The thing worth sitting with</h2>



<p class="wp-block-paragraph">Anthropic’s own lead engineer publicly stated that his recent contributions to Claude Code were written entirely by the AI, and the leaked codebase that Anthropic issued 8,000 DMCA takedowns to suppress may be predominantly AI-authored. Whether Anthropic’s copyright claims over that codebase are legally valid remains an open question no court has yet resolved.</p>



<p class="wp-block-paragraph">If the company that built the tool cannot cleanly assert copyright over its own AI-assisted code, the question of whether you can is worth taking seriously before it becomes relevant in a transaction, a dispute, or an acquisition conversation. The developer who documents their creative contributions from the start is in a meaningfully different legal position than the one who accepted three thousand lines of Claude output and merged without review, even if both shipped the same product.</p>



<h2 class="wp-block-heading">A note on what this piece covers and what it does not</h2>



<p class="wp-block-paragraph">Three things in it are settled law:</p>



<ul class="wp-block-list">
<li>Works lacking human authorship are uncopyrightable,</li>



<li>The work-for-hire doctrine applies regardless of how code was generated.</li>



<li>Verbatim copying of GPL-licensed code violates the license.</li>
</ul>



<p class="wp-block-paragraph">Two things are emerging consensus without definitive court rulings yet:</p>



<ul class="wp-block-list">
<li>How much human direction is enough to establish meaningful authorship in an agentic workflow</li>



<li>Whether AI output that reproduces training data patterns counts as verbatim copying</li>
</ul>



<p class="wp-block-paragraph">One thing is genuine speculation:</p>



<ul class="wp-block-list">
<li>Whether any of this will be litigated at scale in the near term</li>
</ul>



<p class="wp-block-paragraph">Most code copyright claims never reach court. The place where the unsettled questions become concrete today is M&amp;A due diligence and institutional fundraising, where acquirers and investors are already asking these questions as a condition of closing.</p>



<p class="wp-block-paragraph">If neither of those applies to your situation right now, the four actions above are still worth doing, but the urgency is lower than the piece might imply.</p>



<h3 class="wp-block-heading">Further reading</h3>



<p class="wp-block-paragraph">1. <a href="https://www.copyright.gov/ai/" target="_blank" rel="noreferrer noopener">US Copyright Office—Copyright and Artificial Intelligence (Part 2: Copyrightability)</a><br>The primary regulatory source on what qualifies as meaningful human authorship in AI-assisted works. Part 2 covers the specific tests the Office applies when reviewing AI-generated content registrations. Essential if you want to understand exactly where the legal line sits.</p>



<p class="wp-block-paragraph">2. <a href="https://fingfx.thomsonreuters.com/gfx/legaldocs/gdpzybblovw/STABILITY%20AI%20LAWSUIT.pdf" target="_blank" rel="noreferrer noopener">Andersen v. Stability AI, Midjourney, DeviantArt—Ninth Circuit docket</a><br>The foundational case on AI training data and copyright infringement, currently shaping how courts think about what AI models learn and reproduce. Relevant to the GPL contamination question in a way most developers have not connected yet.</p>



<p class="wp-block-paragraph">3. <a href="https://githubcopilotlitigation.com/" target="_blank" rel="noreferrer noopener">Doe v. GitHub, Inc.—Ninth Circuit appeal</a><br>The live litigation on whether Copilot reproduces licensed code without attribution. Track this one: The Ninth Circuit decision will set the standard that determines whether AI-generated code carrying open source patterns constitutes copyright infringement.</p>



<p class="wp-block-paragraph">4. <a href="https://github.blog/2021-11-15-why-github-copilot-does-not-infringe-copyright/" target="_blank" rel="noreferrer noopener">GitHub—Copilot and copyright: What you need to know</a><br>GitHub’s own legal position on why Copilot outputs are not infringing. Worth reading as a counterpoint: Understanding the argument they make helps you understand where it is strong and where it has limits, particularly on the GPL training data question.</p>



<p class="wp-block-paragraph">5. <a href="https://fossa.com/learn/open-source-licenses" target="_blank" rel="noreferrer noopener">FOSSA—Understanding open source license obligations</a><br>A developer-friendly reference to how copyleft obligations actually work in practice: what triggers the source disclosure requirement, what constitutes a derivative work, and how the GPL, LGPL, and AGPL differ in their reach. The clearest plain-language guide available on this topic.</p>



<p class="wp-block-paragraph">6. <a href="https://www.anthropic.com/legal" target="_blank" rel="noreferrer noopener">Anthropic—Usage Policy and Terms of Service</a><br>The actual document that determines your IP rights and indemnification scope when you use Claude commercially. Read sections 7 and 8 specifically: output ownership and IP indemnification. The difference between the consumer and commercial terms is stated plainly and takes 10 minutes to understand.</p>



<p class="wp-block-paragraph"><em>I write about legal architecture for AI products at </em><a href="https://legallayer.substack.com/" target="_blank" rel="noreferrer noopener">Legal Layer</a><em>. This piece is informational and does not constitute legal advice.</em></p>
]]></content:encoded>
							<wfw:commentRss>https://www.oreilly.com/radar/who-owns-the-code-claude-wrote/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>This Week in AI: The Next-Gen Recommendation Experience</title>
		<link>https://www.oreilly.com/radar/this-week-in-ai-the-next-gen-recommendation-experience/</link>
				<pubDate>Fri, 12 Jun 2026 14:18:19 +0000</pubDate>
					<dc:creator><![CDATA[Michelle Smith]]></dc:creator>
						<category><![CDATA[AI & ML]]></category>
		<category><![CDATA[Commentary]]></category>

		<guid isPermaLink="false">https://www.oreilly.com/radar/?p=18909</guid>

		
					<media:content 
				url="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/05/0642572383770_This_Week_in_AI_Cover-scaled.jpg" 
				medium="image" 
				type="image/jpeg" 
				width="2560" 
				height="2560" 
			/>

			<media:thumbnail 
				url="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/05/0642572383770_This_Week_in_AI_Cover-160x160.jpg" 
				width="160" 
				height="160" 
			/>
		
				<custom:subtitle><![CDATA[Plus responsible AI and why a conversational agent doesn’t count as a true sales agent]]></custom:subtitle>
		
				<description><![CDATA[This week Miguel Fierro, a former Microsoft principal researcher who recently founded his own company, RecoMind, joined data and AI evangelist Christina Stathopoulos to talk about the state of recommendation systems. Christina also ran through the latest AI news she&#8217;s been watching, from Anthropic&#8217;s continued rise to responsible AI, announcements from Google’s I/O 2026 conference, [&#8230;]]]></description>
								<content:encoded><![CDATA[
<p class="wp-block-paragraph">This week Miguel Fierro, a former Microsoft principal researcher who recently founded his own company, <a href="https://recomind.io/" target="_blank" rel="noreferrer noopener">RecoMind</a>, joined data and AI evangelist Christina Stathopoulos to talk about the state of recommendation systems. Christina also ran through the latest AI news she&#8217;s been watching, from Anthropic&#8217;s continued rise to responsible AI, announcements from Google’s I/O 2026 conference, and (continuing the discussion from last week) the growing backlash against tokenmaxxing as a productivity metric. Here are three takeaways from the conversation.</p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe loading="lazy" title="This Week in AI with Christina Stathopoulos and Miguel Fierro" width="500" height="281" src="https://www.youtube.com/embed/apTfbIR-U24?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<h2 class="wp-block-heading"><strong>Recommendation systems are a bigger deal than most companies realize</strong></h2>



<p class="wp-block-paragraph">Miguel has spent the better part of a decade building recommendation systems for enterprise customers at Microsoft, and he thinks most companies are leaving a lot on the table by not paying closer attention to recommendations. Amazon generates roughly 35% of its revenue through recommendations. Netflix attributes 75% of content consumption to them. Best Buy credits recommendations with 24% of revenue. TikTok&#8217;s entire user experience is a recommendation engine. And yet many large retailers he worked with at Microsoft weren&#8217;t investing seriously in the area, often because they weren&#8217;t tracking the value it was generating.</p>



<p class="wp-block-paragraph">The gap between the top tier and everyone else is wide and getting wider. The most advanced systems today treat user behavior as a sequence prediction problem, similar to how large language models predict the next token. Rather than just encoding clicks, they encode all user actions into embeddings, run sequences through those representations, and use huge 1.5 trillion-parameter models to predict what a user will want next. That&#8217;s not something a mid-tier retailer can replicate today, but it signals where the field is heading.</p>



<p class="wp-block-paragraph">Even if you don’t work in a top well-resourced company, you should still pay attention to the convergence of search and recommendations into a single personalized retrieval layer and the early application of foundation models to recommendation problems. Netflix has built what Miquel described as the <a href="https://netflixtechblog.medium.com/integrating-netflixs-foundation-model-into-personalization-applications-cf176b5860eb" target="_blank" rel="noreferrer noopener">only published foundation model</a> in this space; Meta is rumored to be developing one as well. The barrier is data, particularly for smaller organizations. Unlike text, behavioral interaction data isn&#8217;t publicly available, so building at that scale requires both proprietary datasets and serious compute.</p>



<p class="wp-block-paragraph">If you want to get your hands on state-of-the-art implementations, including knowledge graph-based approaches, without starting from scratch, Miguel suggested the <a href="https://github.com/recommenders-team/recommenders" target="_blank" rel="noreferrer noopener">open source Recommenders library</a>, originally developed at Microsoft and now housed under the Linux Foundation, as a practical entry point.</p>



<h2 class="wp-block-heading"><strong>The agent hype has a recommender-shaped hole in it</strong></h2>



<p class="wp-block-paragraph">Miguel drew a distinction between true sales agents and what most companies offer today, which are usually just conversational agents. A conversational agent responds to what you say. An agentic sales system understands a customer, anticipates what they want, and surfaces the right product or offer at the right moment—and that requires a recommendation system baked in.</p>



<p class="wp-block-paragraph">If your &#8220;agent&#8221; is a chatbot with access to a knowledge base, it&#8217;s not doing recommendation. Recommendation systems need training data, a retrieval layer, and a personalization model, none of which you get for free from a foundation model API. A language model can answer questions about a product catalog, but it can’t offer up personalized recommendations unless it also has a model of the customer&#8217;s preferences, history, and likely next action. Most companies don’t have the infrastructure in place to make that possible. . .yet.</p>



<h2 class="wp-block-heading"><strong>The responsible AI conversation has left the research community</strong></h2>



<p class="wp-block-paragraph">What’s notable about the responsible AI conversation right now is the range of institutions offering their perspective. Anthropic, alongside announcing a funding round pushing its valuation toward $1 trillion, urged a <a href="https://www.reuters.com/business/anthropic-says-ai-labs-need-coordinated-plan-halt-development-if-risks-rise-2026-06-04/" target="_blank" rel="noreferrer noopener">global pause on AI development</a> tied to the risk of recursive self-improvement: systems that can design and develop their own successors. The Future of Life Institute published <em>The Better Path for AI</em>, a framework arguing for <a href="https://betterpath.ai/" target="_blank" rel="noreferrer noopener">capability development oriented toward human benefit</a> rather than human replacement. And the pope issued a <a href="https://www.vatican.va/content/leo-xiv/en/encyclicals/documents/20260515-magnifica-humanitas.html" target="_blank" rel="noreferrer noopener">formal encyclical focused on AI</a> and the common good.</p>



<p class="wp-block-paragraph">None of these institutions is making the same argument, but the convergence of their attention matters. Responsible AI used to be a specialized conversation happening largely within research labs and a small set of policy organizations. It&#8217;s now a topic where major AI companies, religious institutions, and civil society groups are all staking out public positions in the same news cycle.</p>



<p class="wp-block-paragraph">For the technical community, this creates both pressure and opportunity. &#8220;We&#8217;re thinking about safety&#8221; is no longer a sufficient posture; external scrutiny is intensifying from directions that don&#8217;t share the field&#8217;s assumptions or vocabulary. But the broader conversation creates real demand for practitioners who can translate between what responsible AI actually requires in practice and what policymakers, executives, and institutions are trying to figure out. That translation work is increasingly where the field needs people.</p>



<h2 class="wp-block-heading"><strong>What&#8217;s next</strong></h2>



<p class="wp-block-paragraph">Join us Monday morning for the <a href="https://www.oreilly.com/live/this-week-in-ai.html" target="_blank" rel="noreferrer noopener">next episode of <em>This Week in AI</em></a>, where YK Sugi and John Lindquist will break down the massive structural and financial shifts reshaping the technology industry. (They’ll also chat about the recent release of Claude Fable 5.) And on July 23, Christina will be hosting the <a href="https://www.oreilly.com/live/ai-superstream-ai-harnesses.html" target="_blank" rel="noreferrer noopener">AI Superstream on AI harnesses</a>, a four-hour event focused on agentic AI and the frameworks practitioners need to move from models to agents. Both are free to attend. <a href="https://www.oreilly.com/live/free.html" target="_blank" rel="noreferrer noopener">Register now</a> to save your seat.</p>



<p class="wp-block-paragraph">For deeper reading on topics covered this week, Christina recommended three titles available on the O&#8217;Reilly learning platform: <a href="https://learning.oreilly.com/library/view/hands-on-llm-serving/9798341621480/" target="_blank" rel="noreferrer noopener"><em>Hands-On LLM Serving and Optimization</em></a>, <em><a href="https://learning.oreilly.com/library/view/hands-on-rag-for/9798341621701/" target="_blank" rel="noreferrer noopener">Hands-On RAG for Production</a></em>, and <em><a href="https://learning.oreilly.com/library/view/large-language-models/9798341622517/" target="_blank" rel="noreferrer noopener">Large Language Models: The Hard Parts</a></em>. Not a member? <a href="https://www.oreilly.com/start-trial/?type=individual" target="_blank" rel="noreferrer noopener">Sign up for a free 10-day trial</a> to check them out.</p>



<p class="wp-block-paragraph">We’ll continue to publish our takeaways here on Radar each Friday and share full episodes on <a href="https://www.youtube.com/watch?v=g4cfjz5AKxY&amp;list=PL055Epbe6d5bJEhT7_ZzOeJZ6gPyUzYpS" target="_blank" rel="noreferrer noopener">YouTube</a>, <a href="https://open.spotify.com/show/033kJS2BG1teGunxmtsU1r" target="_blank" rel="noreferrer noopener">Spotify</a>, <a href="https://podcasts.apple.com/us/podcast/this-week-in-ai/id1896798047" target="_blank" rel="noreferrer noopener">Apple</a>, or wherever you get your podcasts.</p>
]]></content:encoded>
										</item>
		<item>
		<title>Generative AI in the Real World: Agentic Systems Fundamentals with Maarten Grootendorst</title>
		<link>https://www.oreilly.com/radar/podcast/generative-ai-in-the-real-world-agentic-systems-fundamentals-with-maarten-grootendorst/</link>
				<comments>https://www.oreilly.com/radar/podcast/generative-ai-in-the-real-world-agentic-systems-fundamentals-with-maarten-grootendorst/#respond</comments>
				<pubDate>Thu, 11 Jun 2026 17:58:23 +0000</pubDate>
					<dc:creator><![CDATA[Ben Lorica and Maarten Grootendorst]]></dc:creator>
						<category><![CDATA[Generative AI in the Real World]]></category>
		<category><![CDATA[Podcast]]></category>

		<guid isPermaLink="false">https://www.oreilly.com/radar/?post_type=podcast&#038;p=18898</guid>

		
					<media:content 
				url="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2024/01/Podcast_Cover_GenAI_in_the_Real_World-scaled.png" 
				medium="image" 
				type="image/png" 
				width="2560" 
				height="2560" 
			/>

			<media:thumbnail 
				url="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2024/01/Podcast_Cover_GenAI_in_the_Real_World-160x160.png" 
				width="160" 
				height="160" 
			/>
		
		
				<description><![CDATA[BERTopic creator and Google DeepMind developer relations engineer Maarten Grootendorst has spent years helping practitioners build intuition for how AI systems actually work—not just how to prompt them. Maarten joined Ben Lorica to cover the enduring relevance of embeddings and topic models in an LLM-dominated world, his hot take that agents are essentially just an [&#8230;]]]></description>
								<content:encoded><![CDATA[
<p class="wp-block-paragraph">BERTopic creator and Google DeepMind developer relations engineer Maarten Grootendorst has spent years helping practitioners build intuition for how AI systems actually work—not just how to prompt them. Maarten joined Ben Lorica to cover the enduring relevance of embeddings and topic models in an LLM-dominated world, his hot take that agents are essentially just an “LLM in a for loop with some tools, some memory, and perhaps some guardrails,&#8221; and what separates genuine agentic behavior from a well-constructed pipeline. They also get into the practical trade-offs between open weight and proprietary models, the future of state space models and attention, and why Maarten worries that a generation of builders shipping code they can&#8217;t read may be storing up technical debt they can&#8217;t repay. &#8220;If you don&#8217;t really know how an LLM works,&#8221; he says, &#8220;that intuition [about how to use it effectively] is much more difficult to develop.&#8221;</p>



<p class="wp-block-paragraph">About the <em>Generative AI in the Real World</em> podcast: In 2023, ChatGPT put AI on everyone’s agenda. In 2026, the challenge will be turning those agendas into reality. In <em>Generative AI in the Real World</em>, Ben Lorica interviews leaders who are building with AI. Learn from their experience to help put AI to work in your enterprise.</p>



<p class="wp-block-paragraph">Check out other episodes of this podcast on the <a href="https://www.oreilly.com/radar/podcast/generative-ai-in-the-real-world-chang-she-on-data-infrastructure-for-ai/#:~:text=on%20the%20O%E2%80%99Reilly%20learning%20platform" target="_blank" rel="noreferrer noopener">O’Reilly learning platform</a> or follow us on <a href="https://www.youtube.com/playlist?list=PL055Epbe6d5YcJUhZbsVW9dlMueIuOxK_" target="_blank" rel="noreferrer noopener">YouTube</a>, <a href="https://open.spotify.com/show/5C9oof8TFkP65lDUcEy5jT" target="_blank" rel="noreferrer noopener">Spotify</a>, <a href="https://podcasts.apple.com/us/podcast/generative-ai-in-the-real-world/id1835476293" target="_blank" rel="noreferrer noopener">Apple</a>, or wherever you get your podcasts.</p>



<h2 class="wp-block-heading">Transcript</h2>



<p class="wp-block-paragraph"><em>This transcript was created with the help of AI and has been lightly edited for clarity.</em></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=50" target="_blank" rel="noreferrer noopener">0.50 </a><br><strong>All right. So today we have Maarten Grootendorst. He is a developer relations engineer at Google DeepMind, and he is also the coauthor of two O&#8217;Reilly books, <em><a href="https://learning.oreilly.com/library/view/hands-on-large-language/9781098150952/" target="_blank" rel="noreferrer noopener">Hands-On Large Language Models</a></em> and <em><a href="https://learning.oreilly.com/library/view/an-illustrated-guide/9798341662681/" target="_blank" rel="noreferrer noopener">An Illustrated Guide to AI</a></em>. And so, Maarten, welcome to the podcast.</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=70" target="_blank" rel="noreferrer noopener">01.10</a><br>Thank you. It&#8217;s wonderful to be here.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=72" target="_blank" rel="noreferrer noopener">01.12</a> <br><strong>So, I had you on the podcast—I was looking at it earlier this morning—August 2022, a few months before ChatGPT was released. </strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=83" target="_blank" rel="noreferrer noopener">01.23</a><br>It&#8217;s been a while. [laughs]</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=85" target="_blank" rel="noreferrer noopener">01.25</a><br><strong>Yeah. Back then, what I wanted to talk to you about was, I was a user of your <a href="https://maartengr.github.io/BERTopic/index.html" target="_blank" rel="noreferrer noopener">BERTopic library</a>. For listeners who are not familiar, BERTopic was kind of a marriage between the transformer approach with topic modeling and Maarten wrote one of the more popular libraries for doing that. Actually, what&#8217;s happened to this whole topic of topic models?</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=118" target="_blank" rel="noreferrer noopener">01.58</a><br>Oh, yeah. I think it&#8217;s still going strong. You mentioned ChatGPT. So a lot of people say, “OK, just use that for topic modeling.” You can. It&#8217;s just very difficult to make sure you get a more structured, standardized output rerun thing, especially if [you have] millions of potential documents. And you can still use that on top of that. It&#8217;s still my baby of sorts, right? I mean, it&#8217;s been four years since we talked, and. . . I love working on that. I don&#8217;t have that much time to do it anymore, but it&#8217;s great.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=156" target="_blank" rel="noreferrer noopener">02.36</a><br><strong>Yeah. So I think one of the things that these large language models have done is kind of, I guess, cast by the wayside some of these earlier approaches for really wading through a lot of text. Unfortunately, I think people, as you mentioned, are trying to prompt their way into a topic model. But I think topic models themselves are still very useful. So one question to you, Maarten. What&#8217;s the level of usage of BERTopic now compared to when we talked?</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=193" target="_blank" rel="noreferrer noopener">03.13</a><br>It&#8217;s only grown since then.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=197" target="_blank" rel="noreferrer noopener">03.17</a><br><strong>Really?</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=198" target="_blank" rel="noreferrer noopener">03.18</a><br>Yeah. It surprised me too. [laughs] I think it&#8217;s because it&#8217;s easy to use. I did some, I think, cool tricks in there, but other than that, I think the main benefit was mostly just a nice user experience. And that helps people use something for a very specific task instead of trying to prompt your way towards something that might or might not work, and you still have to iterate over that. It just works out of the box. It&#8217;s not perfect. Nothing is. It&#8217;s not a free lunch. But yeah, I think that&#8217;s it.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=235" target="_blank" rel="noreferrer noopener">03.55</a><br><strong>One thing that&#8217;s happened, of course, is that this whole area of AI and NLP has gotten so democratized that. . . When we talked, I think the people who were using BERTopic at least had some notion of what NLP was and what text mining was, right? I would imagine now, in your role as a developer relations person, you encounter a lot of people who don&#8217;t come from a data science or ML background. And so they have no clue what topic models are, I would imagine.</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=274" target="_blank" rel="noreferrer noopener">04.34</a><br>Yeah, many don&#8217;t. It&#8217;s very interesting to see because you mentioned NLP and text mining and, well, [they’re] completely outdated terms now for some reason. It&#8217;s all AI. Let&#8217;s just call it AI and be done with it. [laughs] That&#8217;s not necessarily a bad thing, don&#8217;t get me wrong. It&#8217;s just very interesting to see how the field has evolved, but that also means that people don&#8217;t really look towards these “older techniques” that still drive much of the adoption of newer stuff.<br><br>Sometimes it feels like that, you know, AI and LLMs. . . It&#8217;s a hammer and we&#8217;re looking for nails to actually use it instead of, “OK, but we have packages for very specific things, and you can use LLMs on top of that.” You don&#8217;t have to. But it requires a bit of education on that end, because like you mentioned, a lot of people new to the field, you have to explain, “What are embeddings? What is clustering?” It&#8217;s also very interesting to see that even something like that needs to be explained a little bit in more detail. It&#8217;s a nice opportunity for me to explain stuff. I like doing that.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=348" target="_blank" rel="noreferrer noopener">05.48</a><br><strong>And the key here is that because a lot of people are entering this field and building things and they don&#8217;t necessarily know the prior art, so to speak, it seems like they might be leaving a lot of things on the table. Right? So in terms of, here&#8217;s my text or my data, I am just going to prompt and I think that I got everything out of it, but that&#8217;s not really the case for the most part.</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=384" target="_blank" rel="noreferrer noopener">06.24</a><br>No. Definitely not. There&#8217;s so many things that you can do with these systems, whether it&#8217;s on the LLM side or the agentic side or the topic modeling side. If you just know a little bit more on what&#8217;s going on under the hood then that helps you understand “When do I prompt? When do I not prompt? What&#8217;s going wrong?” That feeling, that intuition. You don&#8217;t just get it with building. Building’s very important, but if you don&#8217;t really know how an LLM works, that intuition is much more difficult to develop.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=419" target="_blank" rel="noreferrer noopener">06.59</a><br><strong>Which brings me to your two books, which are fantastic, which I think go a long way into helping people get that foundation. But let&#8217;s face it, a lot of people, Maarten. . . So let&#8217;s take your earlier book with Jay [Alammar], which is <em>Hands-On Large Language Models</em>. A lot of people may say, “I don&#8217;t have time to read this whole book.” So for someone who is a developer, doesn&#8217;t have a data science or ML background, what would be the most important concepts for large language models? Drill down on these three or four concepts that will set you up for success.</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=469" target="_blank" rel="noreferrer noopener">07.49 </a><br>From the top of my head, those are chapters two and three. So buy the book now. [laughs] I&#8217;m just kidding. Tokens. Super underappreciated.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=483" target="_blank" rel="noreferrer noopener">08.03</a><br><strong>Which now is a big topic because, as I joke, the CFO has now become the CTO, the chief token officer.</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=491" target="_blank" rel="noreferrer noopener">08.11</a><br>I didn&#8217;t know that one. That&#8217;s amazing. I&#8217;m gonna use it. But, yeah, tokens are now the thing, right? It&#8217;s what LLMs use to see the world, so to say—to interpret the world. And it&#8217;s how they communicate with the world. So it&#8217;s really important to know what tokens are. It helps you get into the realm of embeddings, which I still think is super fundamental to so many things we do.<br><br>And the second part is kind of an obvious one, but the attention mechanism, “Oh, wow. Why are these things so strong? What makes them so special?” Attention is an obvious one. We have other things like Mamba, recurrent neural networks, but it all starts from attention. So if you&#8217;re completely new to this field, those two. Yeah.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=538" target="_blank" rel="noreferrer noopener">08.58</a> <br><strong>Let&#8217;s take the topic of embeddings. I think at least that topic, Maarten, some people have had to play around with it, right? Because when LLMs first came online, the “Hello, World!” example was RAG, and one of the knobs that people were tuning was embedding, obviously chunking, so the information extraction, the search and retrieval—they&#8217;re all important. But one thing that people immediately tried to play around with was embeddings because they could go to places like Hugging Face: <br>Hey, let me try these four different embeddings.” Do you find that embeddings have a special place in that more people play around with embeddings and have some rudimentary understanding of embeddings?</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=590" target="_blank" rel="noreferrer noopener">09.50</a> <br>I have a sweet spot for embeddings because it&#8217;s the main part of BERTopic. But I think it&#8217;s so fundamental to so many things that we do in this field. Even things like RAG—which some people think is outdated. It actually isn&#8217;t. It&#8217;s very much alive and still kicking—runs on embeddings and understanding how they work will also help you understand how LLMs work. And it can be used in so many different ways. </p>



<p class="wp-block-paragraph">Sometimes we&#8217;re looking for bigger embedding models, more contextualized information. Great. [They] have their own purposes. And there are now certain parties focusing a little bit more on these static embeddings that are super fast and quick, like the old school embeddings that we used to have, and now in a new form that can be used in conjunction with coding agents to quickly search through repos and find the information that they&#8217;re looking for. Much of what we do is still search, and search revolves in big part on embeddings. And it&#8217;s just nice when you have text that you have one numerical representation for it—just that gives you so many opportunities to do so many cool things.&nbsp;.&nbsp;.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=678" target="_blank" rel="noreferrer noopener">11.18</a><br><strong>So when you&#8217;re trying to convince someone, Maarten, that “Hey, you should learn more about embeddings, because they&#8217;re important,” is there a canonical example that you use to say, “Hey, look, if you just understood embeddings and you made this one decision, look at the change in your application.” Is there a canonical example that you go to?</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=700" target="_blank" rel="noreferrer noopener">11.40</a><br>Oh, yeah, I love the question, but I don&#8217;t think I have an answer to that. Because, OK, so I&#8217;m a psychologist and I really like to say “it depends on,” and here it kind of depends on the application that you&#8217;re running, obviously. Contextualized versus noncontextualized embeddings is a very interesting example because the contextualized ones are generally larger. But there&#8217;s larger transformer-like models that require a lot of compute to run. So you can see the latency actually appearing in your search engines. Or if you connect your coding agent to one of those, it slows down because, you know, it needs to wait for the search compared to the faster static ones, for instance, like Model2Vec and stuff like that, which are tremendously fast. So amazing for those use cases, not that performance because they&#8217;re way smaller, obviously. And it&#8217;s these use cases where the building does get you a lot of intuition about when to use what instead of relaying that decision only to an agent. You&#8217;re still the one that needs to have the feeling, that gut feeling, to say this works better for my use case.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=703" target="_blank" rel="noreferrer noopener">13.03</a><br><strong>But I would say the reality is that people will go to some leaderboard.</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=789" target="_blank" rel="noreferrer noopener">13.09 </a><br>Yeah. That&#8217;s just the way it is.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=793" target="_blank" rel="noreferrer noopener">13.13</a><br><strong>So there we go. OK. So in this leaderboard here are the top 10. In this top 10, there&#8217;s some that look larger than the others. So I&#8217;ll try three or four of varying sizes. Is that a fair characterization of what normally happens?</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=812" target="_blank" rel="noreferrer noopener">13.32</a><br>Yeah that&#8217;s even what I always did. Just you know, top of the leaderboard, pick one or two. But then as you are more experienced with picking one, what about multilinguality? I&#8217;m Dutch. There aren&#8217;t that many very good Dutch embedding models—big problem there. There are things like matryoshka embeddings, where they&#8217;re embedding one embedding model, but they generate embeddings of different sizes for different purposes, which is also very interesting. So there&#8217;s all these types of small decisions and nuances that you can make. And we now have instruction-tuned embeddings, where you prefix it with an instruction that you want an embedding for clustering or for classification or for what have you. And then you suddenly see the nuances in selecting something.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=867" target="_blank" rel="noreferrer noopener">14.27</a><br><strong>So on the attention mechanism, again, I will play the role of someone who has no time. I don&#8217;t have time to read the chapter, Maarten. What are one to three things I should know about the attention mechanism?</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=884" target="_blank" rel="noreferrer noopener">14.44</a> <br>I think the most important thing about the attention mechanism is it contextualizes information. That&#8217;s by far the most important thing. When you look at the world before attention and after, it&#8217;s a little bit less black-and-white, obviously, but it puts stuff into context. You know, if you have the word “bank,” is it the bank of a river or a financial bank? And as we talk now with each other, there&#8217;s a lot of contextual stuff going on. You need to interpret what I&#8217;m saying, because if you only focus on what I say, you don&#8217;t know that that was actually a question beforehand that drives my answer. And I think that&#8217;s what makes attention so special. It tries to look at the entire thing instead of individual tokens or words.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=934" target="_blank" rel="noreferrer noopener">15.34</a><br><strong>Playing devil&#8217;s advocate, so you just explained it to me. Why do I have to learn more than that? [laughs]</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=940" target="_blank" rel="noreferrer noopener">15.40</a><br>Always learn more. [laughs]</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=944" target="_blank" rel="noreferrer noopener">15.44</a><br><strong>Yeah, yeah, yeah. So you mentioned Mamba and the state space models. There was some excitement around them. So maybe give our listeners a high-level description of what these state space models are and what their current status is in the wild in terms of actual practical usage.</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=968" target="_blank" rel="noreferrer noopener">16.08</a> <br>State space models are a completely different way of approaching this attention mechanism, right? It almost does away with it and replaces it with something that is much, much faster. It&#8217;s a very complex and highly technical subject, so I don&#8217;t want to go too into that because it&#8217;s really confusing. [laughs]</p>



<p class="wp-block-paragraph">So what you see happening is that people replace attention mechanisms. So you have a decoder and LLM, and it has several stacks of attention mechanism normally. What you can do is you can remove half of them with the very quick state space models that help speed up the inference—because that&#8217;s what we&#8217;re mostly bound now by, is inference speeds. People want more, more tokens. So it needs to be faster. So it&#8217;s, it&#8217;s a way to make it quicker.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=1033" target="_blank" rel="noreferrer noopener">17.13</a><br><strong>Yeah. And so what is the actual implementation or adoption of state space models right now?</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=1041" target="_blank" rel="noreferrer noopener">17.21</a><br>Mostly hybrid models. Models, stats, interleave the attention blocks, the decoder blocks with Mamba blocks as a way to make it faster, where some do it with, for example, local attention and global attention—one is more compute-intensive than others. Mamba is a way to do something similar, as a way to speed up that inference.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=1071" target="_blank" rel="noreferrer noopener">17.51</a><br><strong>Your latest book is about agents: <em>An Illustrated Guide to AI Agents</em>. Before we dive in, in your mind, what makes a system truly agentic? In other words, before we started bandying around the word “agents,” people were using the term “robotic process automation” or something like that. So in your mind, what makes a system agentic?</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=1102" target="_blank" rel="noreferrer noopener">18.22 </a><br>That&#8217;s actually been one of the more complex topics for us to actually describe, because the field has been changing so quickly. And what is fundamentally an agent when they change it every two months? It&#8217;s a little bit of a hot take, but I really do think that an agent is an LLM in a for loop with some tools, some memory, and perhaps some guardrails. And that really is essentially all it boils down to at its base.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=1135" target="_blank" rel="noreferrer noopener">18.55</a><br><strong>You just described the harness basically. The hot term right now is harness engineering. So what is the real progress and what is just marketing when it comes to agents?</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=1159" target="_blank" rel="noreferrer noopener">19.19 </a><br>Yeah, I agree very much with what you imply here because agents sound so cool, and they are cool, but the moment you give an LLM complete freedom, no constraints, just go off and do your stuff, it will fail horribly, horribly, horribly. Agents still need. . . And we can call them guardrails, but you can call them something else. They need direction. They need to be constrained a little bit in the things that they do. So yes, agents, there&#8217;s a lot of hype around that. I&#8217;m not a big fan of hype. It is what it is. But there are a lot of cool use cases for it because there&#8217;s a reason why coding agents are now the big thing. I&#8217;m using them myself daily because they make my life easier. But when we look at other use cases, we&#8217;re so early in AI progress. Yeah, coding works very nicely. But to ask an agent to book a vacation for me. Yeah. No.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=1235" target="_blank" rel="noreferrer noopener">20.35</a><br><strong>It seems like that example of “I want to go on a trip. This trip will involve staying in five countries. And I want you to pick the best hotel for every country.” always was kind of the demo even during the robotic process automation. And as you alluded to, I don&#8217;t think we can do it quite yet. So here&#8217;s another family of agents, Maarten, that a lot of people are using now: deep research agents. Would you consider deep research an agent?</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=1275" target="_blank" rel="noreferrer noopener">21.15</a><br>Maybe. It kind of depends on how it&#8217;s implemented. It depends. I&#8217;m sorry. I&#8217;m going to do that a couple of times, but. . . You can make it very structured, where you say, “OK, do the search on the archive, read the abstracts, make a summary. That&#8217;s it.” That&#8217;s not really. . .</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=1298" target="_blank" rel="noreferrer noopener">21.38</a><br><strong>It fits into your description in that you’re prompting an LLM. The LLM goes on a for loop where it uses as tools a search index, a knowledge graph. . .</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=1313" target="_blank" rel="noreferrer noopener">21.53</a><br>Fair enough. Yeah. It makes the decision on its own when to use a tool, why to use a tool. Whereas you can also put it in a pipeline where you specifically say, “I always want you to do steps one, two, and three.” And an agent might decide to say, “OK, I&#8217;m going to do step 3, 3, 1, 2, 1, 3.” Decide on its own when and where to use specific tools. I think that&#8217;s maybe the best distinction you can make on what is and what isn&#8217;t an agent.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=1346" target="_blank" rel="noreferrer noopener">22.26</a><br><strong>And then I guess it depends on the implementation, as you mentioned. But memory could also fill a role there, especially. . . Let&#8217;s say I&#8217;m using only one service—Google or Perplexity. Maybe it remembers over time what my preferences are. I don&#8217;t know if they actually implement it that way. But there&#8217;s potentially that aspect.</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=1373" target="_blank" rel="noreferrer noopener">22.53</a><br>So how we phrase it in the book at least, we say, “OK, an agent is a reasoning LLM that has access to planning, tools, and memory,” because there&#8217;s no such thing as an agent that goes off and does three steps of something only to forget what the previous steps were. So I think memory is maybe a little bit underappreciated in the realm of agents, because imagine it has to go through an entire codebase and translate it from Python to C++ or Rust or what have you. It&#8217;s a very common example of things people want to do. That requires hundreds of steps to do, because it&#8217;s potentially a large codebase. How does it remember what it did when it did what, what the current state is, what what&#8217;s changed, etc., etc.? And you can write that in a Markdown file. That&#8217;s nice, but it also needs to understand, “OK, what&#8217;s the trajectory that I went through?” And you can do a lot of cool stuff with that trajectory, because that&#8217;s essentially the memory of an agent.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=1442" target="_blank" rel="noreferrer noopener">24.02</a><br><strong>In your role in developer relations, I assume you talk to a lot of people who work in different companies. We&#8217;ve mentioned coding agents; we mentioned deep research. So what are some of the more common agents that people are building? They could be internal or external facing. So what are some of the more common agent types, I guess, that people are building?</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=1469" target="_blank" rel="noreferrer noopener">24.29</a><br>Aside from the obvious, it depends on the industry. I do see coding agents actually being done quite a bit internally. Just trying to see how they can prevent data from being leaked elsewhere. Because a lot of processes now are very privacy sensitive. I came from healthcare before I joined DeepMind. And what you see in these kinds of fields is that, especially in Europe. . .</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=1506" target="_blank" rel="noreferrer noopener">25.06</a><br><strong>I imagine if you&#8217;re in finance in a hedge fund. . .</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=1509" target="_blank" rel="noreferrer noopener">25.09</a><br>So yeah, same. . . And these are situations wherein people focus a lot on privacy and making sure that everything&#8217;s constrained within their environments. And you see a lot of people playing around with LLMs and then using harnesses—can be Hermes but also [taking] a more foundational agent and build[ing] stuff around that. Or the larger organizations that, well, just use whatever cloud offering there is and use an agent there. We&#8217;re so at the beginning of all of this. [laughs]</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=1550" target="_blank" rel="noreferrer noopener">25.50</a><br><strong>For me, the area where I see it being used—and this is not going to be a surprise to our listeners—is still the technical team bucket, which would be DevOps, data engineering, platform engineering. . . They&#8217;re building agents to help them do the work. But you might be interacting with a large website, and in the background, there&#8217;s a bunch of agents doing a lot of heavy lifting, moving data around for you to get the answer you want or whatever, or internal processes. But DevOps, I think they&#8217;re starting to build their own agents. I think, data engineering for pipelines, they&#8217;re building their own agents. I would imagine the people in security teams are also building agents because they have to go through lots of log files and. . .</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=1615" target="_blank" rel="noreferrer noopener">26.55</a><br>A question for you then: Are they building agents, as in, you know, fully an agent, or are they building skills? Because I&#8217;ve seen a lot of people more focusing on creating skills and giving that to whatever agent is available. Or do you also see a lot of people actually building agents from scratch?</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=1637" target="_blank" rel="noreferrer noopener">27.17</a><br><strong>I think internally there are people who are building what we would consider agents in the sense that it would do a huge chunk of their normal work and they interact with it with prompting, but maybe they don&#8217;t consider it completely autonomous. So in the sense that many people who use coding agents, at least, the ones who know how to code, as you might still test and read some of the code, right?</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=1670" target="_blank" rel="noreferrer noopener">27.50</a><br>Sometimes. Sometimes. [laughs]</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=1672" target="_blank" rel="noreferrer noopener">27.52</a><br><strong>Our listeners may be sharp, but there&#8217;s huge cohorts of people using coding agents who don&#8217;t know how to code or who are building websites and web applications. So in the data, in the DevOps, in the data engineering field, the kinds of agents they&#8217;re building are somewhat similar to the coding agents in that they&#8217;re doing a lot of the work, but they still have guardrails. I would say they&#8217;re still human-in-the-loop. Now, there&#8217;s also agents in the nontechnical fields, but they&#8217;re a little more. . . Maybe to your point, maybe they can be better described as skills, for example, in marketing or sales. Internally at some of these companies, they&#8217;re building things to help these teams be more independent from IT.</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=1741" target="_blank" rel="noreferrer noopener">29.01</a><br>So yeah, you see mostly and we can call them skills, but we can also call them workflows or pipelines or just prompts. . .</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=1750" target="_blank" rel="noreferrer noopener">29.10</a><br><strong>Imagine you&#8217;re a marketing analyst at a big Fortune 500 company. And your job used to be to manage a bunch of ad campaigns and online campaigns. That was very manual, and so now you can automate a lot of that work. And then you might still have a dashboard where you can kind of see what&#8217;s going on. But the things that used to drive you crazy, now you can focus on other things.</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=1786" target="_blank" rel="noreferrer noopener">29.46</a><br>But I am curious about the long-term effects of all of this, especially when, as you mentioned, a lot of people code without knowing how to code. I think that&#8217;s fun for a while but in the long term, stuff breaks and you don’t know where to start.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=1801" target="_blank" rel="noreferrer noopener">30.01</a><br><strong>I don&#8217;t know about you, but I&#8217;ve come across people who literally don&#8217;t know how to code, who built a website, starting to have customers. Customers will file support questions or they say, “This part of your website doesn&#8217;t quite work.” Since they don&#8217;t know how to code, they go back to the same coding agent: “Hey, fix this.” The coding agent says I fixed it. They go back to the customer: “It&#8217;s fixed.” The customer goes, “It&#8217;s not fixed.” And so then this is when they start going “I need to hire someone to actually. . . Because now it actually needs to be fixed. And the holding agent can&#8217;t fix it.” So there are obviously dangers to going kind of completely wild on these technologies.</strong></p>



<p class="wp-block-paragraph"><strong>So open weights versus proprietary. This might be a sensitive topic to you because you have Gemini, but you guys also have Gemma.</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=1869" target="_blank" rel="noreferrer noopener">31.09</a><br>I work on Gemma. Ask me everything about Gemma. [laughs]</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=1872" target="_blank" rel="noreferrer noopener">31.12</a><br><strong>[laughs] In your work—or not in your work, but in your day-to-day life, talking to friends, traveling, in your dev rel hat, what is a level of interest in open weights?</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=1887" target="_blank" rel="noreferrer noopener">31.27</a><br>Oh, a lot, yeah. That&#8217;s for the most part because I&#8217;m in Europe. And Europe loves to say, “OK, we want to own things. We don&#8217;t want to push it over to someone else.” So there&#8217;s a lot of interest for open weight models. It&#8217;s way more than I initially thought because there was quite a big performance gap when ChatGPT came out, 3.5. But now they&#8217;re closing in. These models are extremely capable. You can run them on MacBooks. I mean, when Claude came out, I&#8217;ve seen so many threads of people buying Mac Studios just to be able to run whatever local LLM they have. So you see it in every part of the field, whether it&#8217;s very large organizations or very small, finance, healthcare, what have you.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=1945" target="_blank" rel="noreferrer noopener">32.25</a><br><strong>One of the challenges with open weights is open weights is a business decision. And business decisions can be reversed. Meta Llama may no longer produce open weights. Alibaba—kind of mixed signals there. Some of the Chinese open weights providers are starting to send mixed signals. So it&#8217;s one thing to release an open weights model. But as you know, in this environment you have to release models at a regular cadence and that starts getting expensive. So I guess one of the challenges there for our whole community and industry is, you know, where is the steady supply of open weights models going to come from moving forward? Because basically, like I said, it&#8217;s a business decision, and a business decision is going to be reversed.</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=2008" target="_blank" rel="noreferrer noopener">33.28</a><br>No, I agree on that. So in the general sense, that&#8217;s what we see happening. Some organizations stop doing open source, [or] less of it, focus on different things. It&#8217;s understandable in a way, because, you know. . .</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=2025" target="_blank" rel="noreferrer noopener">33.45</a><br><strong>And, you know, one of the obvious advantages of open weights is you can take the weights and run it in your cluster. And so you have control if. . . One of the things that annoys a lot of these enterprise teams is OK, so I&#8217;m really optimized for Claude 4.5. And then, hey, they are deprecating Claude 4.5, you know. So here at least you have control. And I think one of the things that most teams are starting to realize, Maarten, is actually I can use open weights for a lot of things because. . . Let&#8217;s say it&#8217;s so focused, like a simple sentiment analysis or whatever. I don&#8217;t need the most expensive models. And this I can control moving forward. So I think people and teams are discovering, “Hey, while I should be concerned that these open weights models may stop getting released, for some, for many of my tasks, maybe I don&#8217;t need the latest and greatest anyway.”</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=2092" target="_blank" rel="noreferrer noopener">34.52</a><br>That can be the case. Yeah, because these models are very capable. I think there will always be a steady supply of open weight models. If we look at the status of the field now, many. . . Obviously Qwen, they&#8217;re doing an amazing job. Needs to be said. Same with Gemma, they’re also doing well.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=2114" target="_blank" rel="noreferrer noopener">35.14</a><br>T<strong>he Qwen team lost a bunch of people, and I think there&#8217;s some worry that Alibaba may back off from. . .</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=2123" target="_blank" rel="noreferrer noopener">35.23</a><br>I think they will continue. I don&#8217;t know, obviously, but I think it&#8217;s still a very good strategy to do.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=2130" target="_blank" rel="noreferrer noopener">35.30</a><br><strong>And wait, Gemma is not as good as Gemini. [laughs]</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=2133" target="_blank" rel="noreferrer noopener">35.33</a><br>We have good benchmarks. What is this? What is this? [laughs] No, but they serve different audiences. And what we see happening with open weights is you get so much back from giving open weights to the community. And DeepMind is a nice example. But the more labs obviously that have always given a lot to the community, when you do that, you also get a lot back, right? Because if people are super excited about Gemma 4—we released a model two days ago, <a href="https://blog.google/innovation-and-ai/technology/developers-tools/introducing-gemma-4-12b/" target="_blank" rel="noreferrer noopener">12B-1</a>. And you see people using that for a lot of cool use cases. Driving research to create new things that, you know, we might not have thought of. That can be the case. You see Flash, for instance, which is a diffusion-based drafter, super fast, very incredible being used with Gemma 4. That&#8217;s cool. And it&#8217;s not to say that Gemma was the first one that drove that, but open weights in general allow a random person somewhere without access to thousands of GPUs to pretrain a model and still be able to do very cool and interesting research. So as long as I&#8217;m at DeepMind, I&#8217;m gonna make sure we&#8217;re gonna keep doing very cool Gemma stuff.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=2223" target="_blank" rel="noreferrer noopener">37.03</a><br><strong>All right, so let&#8217;s close with a rapid fire round. So for each question, keep your answer under a minute. Question number one. OpenClaw. What says you, Maarten, about this trend around personal agents?</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=2241" target="_blank" rel="noreferrer noopener">37.21</a><br>I love personal agents. They&#8217;re very cool and interesting. And at the same time, I&#8217;m very worried about the security of it. We&#8217;re seeing a lot of people&#8217;s keys being opened up, things that are being deleted that shouldn&#8217;t be deleted. And that&#8217;s because we&#8217;re in very early stages of all of this—just a little bit more time, and then it will be amazing.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=2266" target="_blank" rel="noreferrer noopener">37.46</a><br><strong>Yeah. And run it locally with Gemma. [laughs]</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=2270" target="_blank" rel="noreferrer noopener">37.50</a><br>Yeah, of course. [laughs] I&#8217;m not gonna sell too much. I love Gemma, I&#8217;m selling already too much.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=2277" target="_blank" rel="noreferrer noopener">37.57</a><br><strong>Question number two: reinforcement learning. I&#8217;m a big fan. I always push out a post once a year at least, where I say it&#8217;s just around the corner. Now it seems like there&#8217;s a bit of a comeback with reinforcement, fine-tuning. Are you paying attention to reinforcement learning?</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=2301" target="_blank" rel="noreferrer noopener">38.21</a><br>A lot. I have a couple of colleagues, and we started something called the <a href="https://www.ragpack.ai/" target="_blank" rel="noreferrer noopener">RAG Pack</a> with some bigger influencers, like Jay Allamar and Josh Starmer from StatQuest. And we did a course on reinforcement quite recently. It&#8217;s such a cool technology. It&#8217;s the technique that makes LLMs the way they are today. And there&#8217;s still a lot of new things coming up in that field to make them faster, more capable, multituning trajectories. Yeah, it&#8217;s the whole thing.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=2334" target="_blank" rel="noreferrer noopener">38.54</a><br><strong>Third question: scaling loss. So Anthropic in particular is big on scaling loss: bigger models, more data, that&#8217;s the road to better and better models. So what&#8217;s your feeling right now about scaling loss.</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=2351" target="_blank" rel="noreferrer noopener">39.11</a><br>They change quickly. We started with regular “more parameters, better model.” Then we switched to reasoning, where we said “longer reasoning, better model.” And now we&#8217;re slowly going towards the “longer trajectories, better model.” You know, more is better. I think they&#8217;re interesting, but they&#8217;re changing now so quickly that I&#8217;m wondering in half a year what the new scaling law and the new nifty thing is going to be.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=2379" target="_blank" rel="noreferrer noopener">39.39</a><br><strong>So in closing, data centers. Data centers are a hot topic in the US. A lot of communities seem to be coalescing around opposing the build-out of data centers. So it&#8217;s a bit of a complicated issue in the sense that, you know, assuming that these AI technologies work and they get adopted, we will need compute in order for people to have access to these technologies. Otherwise, maybe the rich are the only ones who will have access to AI. On the other hand, the data centers themselves, you definitely need local input because, electricity, water, noise. . . And then unlike factories, they don&#8217;t really produce a lot of jobs because how many people do you really need to run a data center with all the DevOps agents now that we talked about? So what&#8217;s going on in data centers in Europe?</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=2443" target="_blank" rel="noreferrer noopener">40.43</a><br>We don&#8217;t like them. I&#8217;m saying we—I&#8217;m Dutch. If I&#8217;m saying for the people of the Netherlands, we don&#8217;t like them generally. And that&#8217;s going to be very interesting moving forward because there&#8217;s still demand for AI. I know there&#8217;s a lot of people that don&#8217;t like it, but at the same time, there&#8217;s still a lot of people using it, and we need to find a way to balance that out. There&#8217;s no way forward otherwise, and I really hope we can focus more on efficiency when it comes to these compute-heavy things. That&#8217;s why I focus so much on Gemma. They&#8217;re small, capable models that you run on your cell phone. That&#8217;s great. Without needing to have these large data centers, aside from training, maybe, but that will always be there. We have to be honest about that. AI is here to stay. We just need to make it more efficient.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=2498" target="_blank" rel="noreferrer noopener">41.38</a><br><strong>And with that, thank you, Maarten. And by the way, closing note about data centers, for our listeners, there&#8217;s a lot of announcements, right? Several gigawatts are being. . . Contracts being signed. But if you really follow what&#8217;s going on, there&#8217;s not a lot of build-out. There&#8217;s not a lot of data centers actually being built in and coming online. So&#8230; Thank you, Maarten.</strong></p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=4FRZtBnZWnQ#t=2527" target="_blank" rel="noreferrer noopener">42.07</a> <br>Thank you.</p>
]]></content:encoded>
							<wfw:commentRss>https://www.oreilly.com/radar/podcast/generative-ai-in-the-real-world-agentic-systems-fundamentals-with-maarten-grootendorst/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>When Context Collapses: Teaching Agents to Detect and Recover from Lost Memory</title>
		<link>https://www.oreilly.com/radar/when-context-collapses-teaching-agents-to-detect-and-recover-from-lost-memory/</link>
				<pubDate>Thu, 11 Jun 2026 10:59:13 +0000</pubDate>
					<dc:creator><![CDATA[Andrew Stellman]]></dc:creator>
						<category><![CDATA[AI & ML]]></category>
		<category><![CDATA[Commentary]]></category>

		<guid isPermaLink="false">https://www.oreilly.com/radar/?p=18901</guid>

		
					<media:content 
				url="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/When-context-collapses.jpg" 
				medium="image" 
				type="image/jpeg" 
				width="2304" 
				height="1792" 
			/>

			<media:thumbnail 
				url="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/When-context-collapses-160x160.jpg" 
				width="160" 
				height="160" 
			/>
		
				<custom:subtitle><![CDATA[Or, how I learned to stop worrying about compaction and love the file system]]></custom:subtitle>
		
				<description><![CDATA[This is the eighth article in a series on agentic engineering and AI-driven development.&#160;Read part one&#160;here, part two&#160;here, part three&#160;here, part four&#160;here, part five&#160;here, part six&#160;here, and part seven here. &#8220;640K ought to be enough for anybody.&#8221;—Bill Gates (allegedly) If you&#8217;re building AI agents that do complex, multistep work, you&#8217;re going to run into context [&#8230;]]]></description>
								<content:encoded><![CDATA[
<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph"><em>This is the eighth article in a series on agentic engineering and AI-driven development.&nbsp;Read part one&nbsp;<a href="https://www.oreilly.com/radar/the-accidental-orchestrator/" target="_blank" rel="noreferrer noopener">here</a>, part two&nbsp;<a href="https://www.oreilly.com/radar/keep-deterministic-work-deterministic/" target="_blank" rel="noreferrer noopener">here</a>, part three&nbsp;<a href="https://www.oreilly.com/radar/the-toolkit-pattern/" target="_blank" rel="noreferrer noopener">here</a>, part four&nbsp;<a href="https://www.oreilly.com/radar/ai-is-writing-our-code-faster-than-we-can-verify-it/" target="_blank" rel="noreferrer noopener">here</a>, part five&nbsp;<a href="https://www.oreilly.com/radar/ai-code-review-only-catches-half-of-your-bugs/" target="_blank" rel="noreferrer noopener">here</a></em>, <em> part six&nbsp;<a href="https://www.oreilly.com/radar/why-doesnt-anyone-teach-developers-about-context-management/" target="_blank" rel="noreferrer noopener">here</a>, and part seven <a href="https://www.oreilly.com/radar/your-ai-agent-already-forgot-half-of-what-you-told-it/" target="_blank" rel="noreferrer noopener">here</a>.</em></p>
</blockquote>



<p class="wp-block-paragraph"><em>&#8220;640K ought to be enough for anybody.&#8221;—Bill Gates (allegedly)</em></p>



<p class="wp-block-paragraph">If you&#8217;re building AI agents that do complex, multistep work, you&#8217;re going to run into context loss. The agent&#8217;s working memory fills up, older information gets silently dropped or compressed, and the agent keeps going without realizing it&#8217;s forgotten something. This article, the third in my Radar article trilogy about context management, walks through a pattern I&#8217;ve been refining for detecting and recovering from that problem, which I call the <strong>externalize-recognize-rehydrate pattern</strong> (or <strong>ERR</strong>, which I think is actually a pretty good acronym for an error recovery pattern): save your agent&#8217;s state to files on disk, detect when context has degraded, and reload from those files to recover. The individual techniques are standard practice in agent and skill engineering—checkpointing, progress files, state verification—but the real power comes from combining them into a coherent workflow that you can use live or build into your agents. I&#8217;ll walk through each step with specific prompts you can adapt for your own agents and coding sessions.</p>



<p class="wp-block-paragraph">Which brings me to memory. Gates has said on multiple occasions that he never actually said that quote at the top of this article, but it endures because it captures one of the core limitations of that era, one that people struggled with constantly, in a way that we can laugh about now. Around that time I was using a 286 with 1 MB of RAM. That&#8217;s megabytes, not gigabytes. MS-DOS 3.3 gave me 640K of conventional memory plus 384K of upper memory, and I spent a lot of time figuring out how to use every bit of it. I configured memory managers, loaded device drivers high, used (and wrote!) terminate-and-stay-resident programs that moved themselves out of conventional memory to free up space, and generally treated memory as a resource that required active, deliberate engineering. There was a lot I wanted to do that didn&#8217;t fit into 640K, and like most people at the time, I went to some lengths to compensate for the memory limitations.</p>



<p class="wp-block-paragraph">We&#8217;re at the 640K stage of AI development. The context window is the new RAM ceiling. Most of today&#8217;s models give you somewhere between 200K and 2M tokens of working memory (and, like memory in the late 1980s and early 1990s, those numbers are growing all the time), and if you&#8217;re building agents that do complex multistep work, you will hit that ceiling. When you do, the AI starts compacting: compressing or dropping older parts of the conversation to make room. And just like running out of conventional memory on a 286, things stop working right and you&#8217;re not sure why.</p>



<p class="wp-block-paragraph">In 20 years we&#8217;ll be looking back at today&#8217;s puny context windows and wondering how developers in the 2020s managed to get anything done with just a few million tokens. Because none of this is new. In case you don&#8217;t believe me, here&#8217;s a photo of my dad at Princeton in the early 1970s working on an Evans and Sutherland LDS-1 graphics computer, the first commercial vector graphics machine, connected to a PDP-10 mainframe:</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1600" height="1225" src="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-12-1600x1225.png" alt="Keep on truckin" class="wp-image-18902" srcset="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-12-1600x1225.png 1600w, https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-12-300x230.png 300w, https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-12-768x588.png 768w, https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-12-1536x1176.png 1536w, https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-12.png 1964w" sizes="auto, (max-width: 1600px) 100vw, 1600px" /></figure>



<p class="wp-block-paragraph">The actual LDS-1 is in the large cabinet in the background, directly behind the monitor. Sitting next to it, just out of the picture, is an even larger cabinet that holds a memory unit with <em>16K of magnetic core memory</em> (technically 8K words).</p>



<p class="wp-block-paragraph">So you can imagine that just a decade later, 640K in a tiny PC that fit on your desktop seemed extravagant.</p>



<p class="wp-block-paragraph">In the last two articles in this series (“<a href="https://www.oreilly.com/radar/why-doesnt-anyone-teach-developers-about-context-management/" target="_blank" rel="noreferrer noopener">Why Doesn’t Anyone Teach Developers About Context Management?</a>” and “<a href="https://www.oreilly.com/radar/your-ai-agent-already-forgot-half-of-what-you-told-it/" target="_blank" rel="noreferrer noopener">Your AI Agent Already Forgot Half of What You Told It</a>”), I talked about what context is and why context management matters, and I shared practical techniques and prompts for keeping important information in files instead of leaving it in the AI&#8217;s context window. This article gets more technical. I want to build on those strategies and talk about how to build agents that can detect when they&#8217;ve lost context and recover from it on their own.</p>



<h2 class="wp-block-heading"><strong>Brute-forcing my way through context loss</strong></h2>



<p class="wp-block-paragraph">I&#8217;ve been doing this kind of context management for a while now, long before the specific tools I&#8217;m about to describe existed. But a recent crash gave me a clean example of what the process looks like in its most brute-force form.</p>



<p class="wp-block-paragraph">I was working in Copilot with a seven-step plan, going through it one step at a time, having another AI review each step before moving on. Steps one and two went fine. When it came time to do step three and I gave it the prompt, it jumped straight to step four. This kind of thing can be really frustrating, because it seems like an AI smart enough to implement a complex feature in code should be able to (ahem) count to four.</p>



<p class="wp-block-paragraph">The key to not getting frustrated when the AI loses track of steps or can&#8217;t seem to count from prompt to prompt is to remember what it&#8217;s good at and how it remembers things. If the AI you&#8217;re using does that, check the conversation history. You&#8217;ll probably see something like &#8220;summarizing conversation history&#8221; or &#8220;compacting conversation&#8221; somewhere above your last message. That&#8217;s telling you that the AI lost track of where it was because that count was literally purged from its memory.</p>



<p class="wp-block-paragraph">AIs are good at carrying out an instruction. They&#8217;re bad at keeping track of their own state over a long conversation, and the way they manage their memory is a big part of that. This article is about finding ways to build your AI tools so you&#8217;re not relying on them to do the thing they&#8217;re worst at.</p>



<p class="wp-block-paragraph">But compaction isn&#8217;t the only way your AI loses context. A few weeks ago I was deep into a long session with Copilot, working through a multiphase code review. I&#8217;d spent a while building up context with the AI about my codebase and the decisions we&#8217;d made together. I was about to move on to the next phase, and then I got this:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1552" height="964" src="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-13.png" alt="Phase B" class="wp-image-18903" srcset="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-13.png 1552w, https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-13-300x186.png 300w, https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-13-768x477.png 768w, https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/image-13-1536x954.png 1536w" sizes="auto, (max-width: 1552px) 100vw, 1552px" /></figure>



<p class="wp-block-paragraph">The entire context was wiped, which could have been a really frustrating problem, since I had a long history with the session, and it had built up a lot of knowledge about what we were doing. This turned out to be a bug in Opus 4.6&#8217;s interaction with Copilot&#8217;s conversation history, and I&#8217;ve seen other people hit the same thing. I was staring at a fresh prompt with nothing in it.</p>



<p class="wp-block-paragraph">So I did something that, in retrospect, is a pretty good brute-force version of what this whole article is about. I recognized the context was gone (hard to miss when the whole conversation disappears). I copied the entire conversation out of Copilot and pasted it into a text file. Then I gave the new session a prompt:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">We were in the middle of a long conversation, then I got an error and the entire context was wiped. I saved a copy of the conversation in #file:chat_history.txt, read it and bring yourself back up to speed.</p>
</blockquote>



<p class="wp-block-paragraph">And it worked! This brought the new session back to where I needed it to be.</p>



<p class="wp-block-paragraph">That simple error and recovery actually outlines a pretty good pattern for dealing with context loss:</p>



<ol class="wp-block-list">
<li><strong>Externalize the state.</strong> Get the important information out of the conversation and into a file on disk, where it won&#8217;t disappear when the context window reshuffles.</li>



<li><strong>Recognize the loss.</strong> Notice that the agent&#8217;s working context has been wiped or degraded, whether that&#8217;s obvious (like a crash) or subtle (like output that quietly stops making sense).</li>



<li><strong>Rehydrate from the file.</strong> Point a new session at that file and let it rebuild its understanding from what&#8217;s written down.</li>
</ol>



<p class="wp-block-paragraph">The individual mechanics are well-documented across cognitive science (cognitive offloading, task resumption), software engineering (the Memento pattern, React hydration), and knowledge management (the SECI model). I&#8217;m not claiming to have invented any of them. But the specific abstraction of these three phases into a unified, named pattern applied to AI context management is, as far as I can tell, new. It&#8217;s synthesis and codification, not invention.</p>



<p class="wp-block-paragraph">In this case I did it with copy and paste, which isn&#8217;t particularly elegant, but it worked for me. But this is a blunt instrument, because a raw conversation dump is both too much and too little: it&#8217;s too much because it&#8217;s full of noise, like tool calls, dead ends, back-and-forth that doesn&#8217;t matter anymore; and it&#8217;s too little because the context that got silently compressed away during the session is already gone. When you build these mechanisms into agents and skills, you can do it in a much more subtle and automated way.</p>



<h2 class="wp-block-heading"><strong>Externalize: Add two layers of state to your agent</strong></h2>



<p class="wp-block-paragraph">The idea behind <strong>externalization</strong>, or periodically saving your agent&#8217;s state, came out of a conversation I was having with an AI assistant while building the <a href="https://github.com/andrewstellman/quality-playbook" target="_blank" rel="noreferrer noopener">Quality Playbook</a>, an open source AI coding skill that runs structured code reviews. The playbook runs a structured code review as a single process, but that process could easily turn into a 15-million-token request if you tried to do it all in one shot. I described in the <a href="https://www.oreilly.com/radar/your-ai-agent-already-forgot-half-of-what-you-told-it/" target="_blank" rel="noreferrer noopener">previous article in this series</a> how I broke it into six phases, and that was only possible because the context for each phase had already been externalized. Each phase reads its inputs from files, does its work, writes its outputs to files, and stops. The next phase picks up from the files, not from whatever the agent remembers. If this sounds like the familiar advice to ask the AI to plan before you ask it to implement, it&#8217;s the same principle applied to context management. Separating each step and persisting the output means you can inspect it, and the next step doesn&#8217;t depend on the agent&#8217;s memory.</p>



<p class="wp-block-paragraph">But what should those files contain? I found that the AI is actually good at figuring that out. At some point I asked the assistant:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">Would it make sense for the agent to record more context in files as it progresses, to make sure nothing is dropped along the way? It should work even if you break it into separate prompts, because the result from each step is persisted. Plus, we can audit its reasoning for debugging and improvement.</p>
</blockquote>



<p class="wp-block-paragraph">That prompt was all it took. The assistant designed the file structure itself: a progress tracker that records which phase is active and what&#8217;s been completed, a JSONL artifact file (JSONL is just a file with a bundle of JSON objects, with one record per line) where each pass appends its output, and a set of brief documents describing the purpose of each phase. You don&#8217;t need to overengineer this. Tell the agent what you&#8217;re trying to preserve and let it figure out the file layout.</p>



<p class="wp-block-paragraph">What emerged falls into two categories that I think of as execution continuity and task continuity:</p>



<ul class="wp-block-list">
<li><strong>Execution continuity</strong> is the state the agent needs to resume work in the middle of a task: what step it&#8217;s on, what it&#8217;s completed, what decisions it&#8217;s made so far. These files change constantly as the agent works.<br></li>



<li><strong>Task continuity</strong> is the broader context that doesn&#8217;t change during execution: what the whole task is about, what success looks like, what the structural constraints are. These files are written once and read at every resumption.</li>
</ul>



<p class="wp-block-paragraph">When an agent needs to resume after suspected compaction, it reads back both layers. The task continuity files anchor it back to what the whole endeavor is about. The execution continuity files put it back in the middle of the work. Together, they give the agent enough information to continue without relying on anything that might have been compacted.</p>



<p class="wp-block-paragraph">The key is that externalization isn&#8217;t something you do once at the beginning of a task. You want the agent saving its state at frequent checkpoints so that if compaction happens mid-run, the most recent checkpoint is close to where the agent was working. Here&#8217;s the kind of instruction I gave the agent for tasks that processed records one at a time:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">Update the progress file after every single record, not in batches. Write the output line first, then update the progress file with the new cursor and a fresh timestamp. If the progress file&#8217;s timestamp falls behind the output file&#8217;s, you&#8217;re batching and that&#8217;s wrong.</p>
</blockquote>



<p class="wp-block-paragraph">The frequency matters because context can compact at any point. If the agent only saves state at the end of a long run, compaction in the middle means losing everything since the start. If it checkpoints after every unit of work, the worst case is losing one unit.</p>



<p class="wp-block-paragraph">Two-layer externalization survives context reshaping, not only outright context loss. Even if the agent&#8217;s context window isn&#8217;t full, if the context has been reorganized or reprioritized (a compression that reshapes without truncating), the agent can reload the external files and know for certain what the ground truth is.</p>



<h2 class="wp-block-heading"><strong>Recognize: Detecting loss from inside the agent</strong></h2>



<p class="wp-block-paragraph">The second step in the pattern is to <strong>recognize</strong> that your agent has lost context, and it turns out to be the hardest part (at least with today&#8217;s AI technology). When the context window fills up, the AI compacts silently, and the agent keeps working without realizing it&#8217;s lost information. The agent can&#8217;t tell you it&#8217;s forgotten something, because it doesn&#8217;t know it forgot. Detecting that change turns out to be a nontrivial problem; I&#8217;ll walk you through an approach that helped me, and keep it general enough so you can do the same thing. The copy-and-paste approach works when the context loss is obvious, like a crash that wipes your whole conversation. But most context loss isn&#8217;t that visible.</p>



<p class="wp-block-paragraph">I described context compaction in the <a href="https://www.oreilly.com/radar/your-ai-agent-already-forgot-half-of-what-you-told-it/" target="_blank" rel="noreferrer noopener">previous article</a>, but it&#8217;s worth restating the core problem from the agent&#8217;s perspective. Different tools handle context overflow differently: Some truncate older messages; some compress conversations into summaries; some use a sliding window. But they all have the same effect. Information disappears from the agent&#8217;s working context, and the agent doesn&#8217;t get notified.</p>



<p class="wp-block-paragraph">This was a challenge when I built the Quality Playbook, because it runs multiple passes over a codebase, each one reading source files, extracting requirements, and checking coverage. Each pass can involve enough work that it fills the context window multiple times over. And when context compacts mid-pass, the agent doesn&#8217;t know it happened. It keeps working, but the output starts silently degrading. So I started building mechanisms for the agent to detect compaction and recover by reading back the files it had written earlier. The patterns that came out of that work are general enough to apply to anyone building agents that need to survive context pressure.</p>



<p class="wp-block-paragraph">From the agent&#8217;s perspective, compaction is seamless. It&#8217;s tracking state, referencing decisions made earlier in the conversation, and then at some point the earlier context is gone. But the agent can&#8217;t tell the difference between &#8220;I never knew that&#8221; and &#8220;I knew it but lost it.&#8221; It tries to reference something and finds nothing, or finds a compressed version that lost the nuance. And because the agent doesn&#8217;t know it lost anything, it doesn&#8217;t know it needs to recover.</p>



<p class="wp-block-paragraph">This invisibility is the core problem. But it turns out you can work around it, and the next two sections walk through how.</p>



<h2 class="wp-block-heading"><strong>Building a detection mechanism</strong></h2>



<p class="wp-block-paragraph">Once you have files on disk, the question is what specifically to check and how to know when something has gone wrong. I landed on a mechanism while building the Quality Playbook&#8217;s requirement extraction pipeline. The playbook processes source documents in multiple passes, and each pass appends its output to a JSONL artifact file. After each unit of work, the agent also writes a progress record to a separate file: what it just finished, what it found, and where it should pick up next.</p>



<p class="wp-block-paragraph">The detection mechanism comes from two rules I gave the agent. The idea is that the progress file tracks a cursor, which is just a position marker that tells the agent which record to process next. If the agent writes a record to the output file but then loses context before updating the progress file, those two files will be out of sync.</p>



<p class="wp-block-paragraph">The agent didn&#8217;t need to understand any of that upfront; I just described the rules in plain language and let it figure out the implementation. The first rule establishes an invariant between the output file and the progress file:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">Cursor advances only after the line is on disk. Write the summary line to the output file first, then update the progress file. The cursor must always equal the index of the next record that still needs to be processed.</p>
</blockquote>



<p class="wp-block-paragraph">The second rule told the agent how to check that invariant on startup:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">On startup, read the progress file. Resume from its cursor value. Verify continuity: the last line in the output file should equal cursor minus one. If not, roll the cursor back to match disk state and report the discrepancy.</p>
</blockquote>



<p class="wp-block-paragraph">If the progress file says the cursor is at record 381, but the last line in the output file is record 379, something happened. The context compacted and the agent lost track of where it was. The divergence between the two files is the signal.</p>



<p class="wp-block-paragraph">This worked because files on disk don&#8217;t change when context compacts. They&#8217;re written once and then read repeatedly. If what the agent thinks it knows doesn&#8217;t match what&#8217;s actually in the files, something shifted in the agent&#8217;s memory, not on disk. I ended up folding this check into a preamble that every session started with:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">If this session has experienced auto-compaction, re-read the pass specification from disk. Do not try to reconstruct it from the compacted summary. Read the progress file. Read the last record of the JSONL artifact and confirm its index equals the cursor minus one. If not, roll the cursor back to match disk state. Disk is the source of truth. The conversation is not.</p>
</blockquote>



<p class="wp-block-paragraph">That preamble ran at the top of every session. During one particularly intensive day of pipeline development, I ran over a hundred Claude Code sessions with that exact instruction. Most of them completed without hitting compaction. But the ones that did hit it recovered cleanly, because the preamble told the agent exactly what to check and exactly what to do when the check failed.</p>



<p class="wp-block-paragraph">The specific prompts I used are tied to the Quality Playbook&#8217;s file structure, but the technique generalizes. If you&#8217;re building any agent that does multistep work, you can adapt the same approach. Here&#8217;s a version you could drop into a session preamble or an agent&#8217;s system prompt:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">Before continuing any task, read your progress file and your most recent output file. Compare them: does the progress file say you&#8217;ve completed work that isn&#8217;t reflected in the output? If so, trust the output file, roll back your progress to match, and note the discrepancy. Do not rely on what you remember from the conversation. The files on disk are the source of truth.</p>
</blockquote>



<p class="wp-block-paragraph">The wording doesn&#8217;t have to be precise. What matters is the structure: tell the agent where to look, what to compare, and which source to trust when they disagree.</p>



<h2 class="wp-block-heading"><strong>But didn&#8217;t you just say the AI can&#8217;t detect its own compaction?</strong></h2>



<p class="wp-block-paragraph">Right, and it can&#8217;t. What I described above isn&#8217;t the agent detecting compaction. It&#8217;s the agent running a deterministic check against files on disk and finding a discrepancy. The agent doesn&#8217;t need to know that compaction happened. It just needs to notice that two files disagree. Think of the agent as an amnesiac clerk. You don&#8217;t ask the clerk to remember what they did yesterday. You make the clerk check the physical ledger every time they sit down at the desk. If their notes disagree with the ledger, they&#8217;re trained to trust the ledger.</p>



<p class="wp-block-paragraph">If you saw Christopher Nolan&#8217;s breakout movie <em>Memento</em>, you can think of your agent as Leonard Shelby, the character played by Guy Pearce with anterograde amnesia. You couldn&#8217;t ask Leonard to remember what he did yesterday. He had to check his tattoos every time he woke up. If his tattoos disagreed with what he&#8217;s seeing, he trusts the tattoo (which leads to a major plot point, which I won&#8217;t spoil). Again, this isn&#8217;t a new idea either. I mentioned the <a href="https://en.wikipedia.org/wiki/Memento_pattern" target="_blank" rel="noreferrer noopener">Memento pattern</a> earlier, which is literally named after this movie.</p>



<p class="wp-block-paragraph">This is a classic distributed systems technique. In double-entry bookkeeping, you maintain two independent records of the same transaction and reconcile them regularly. If they disagree, you investigate. You don&#8217;t need to know why they diverged; the divergence itself is the signal. A two-phase commit works the same way: write the data first, then update the record that says the data was written. If you find data without a matching record, or a record without matching data, something went wrong between the two phases.</p>



<p class="wp-block-paragraph">That&#8217;s exactly what the cursor invariant does. The agent writes the output line first, then updates the progress file. If those two files are out of sync, something happened between the two writes. The agent doesn&#8217;t detect compaction. It detects a broken invariant, and it&#8217;s been told that when the invariant breaks, the files on disk win.</p>



<p class="wp-block-paragraph">Three things make this work. First, the check is purely deterministic: read two files, compare two numbers, act on the result. There&#8217;s no reasoning involved, no judgment call about whether the agent &#8220;feels&#8221; like it lost context. I wrote about this principle in “<a href="https://www.oreilly.com/radar/keep-deterministic-work-deterministic/" target="_blank" rel="noreferrer noopener">Keep Deterministic Work Deterministic</a>”; you never want an AI making decisions that a file comparison can make for it. Second, the files on disk don&#8217;t change when context compacts. They&#8217;re the stable reference point that the agent&#8217;s memory gets checked against. Third, the instruction to run the check lives in the system prompt or preamble, which is generally preserved even when conversation context gets compacted. The check survives the thing it&#8217;s designed to detect.</p>



<h2 class="wp-block-heading"><strong>Rehydrate: Reading back the state</strong></h2>



<p class="wp-block-paragraph"><strong>Rehydration</strong> is the process of reading back externalized state and rebuilding the agent&#8217;s working context. Once the agent detects compaction (or, more specifically and accurately, has enough evidence from the filesystem that compaction occurred), the recovery step is to read back the externalized files and rebuild. For the Quality Playbook, rehydration meant:</p>



<ol class="wp-block-list">
<li>Read the phase brief to re-anchor the purpose of this pass</li>



<li>Read the progress file to know which unit is active and what&#8217;s been completed</li>



<li>Read the tail of the JSONL artifact to confirm the last successfully written record</li>



<li>Recompute the next unit of work from those files</li>
</ol>



<p class="wp-block-paragraph">This is different from just continuing without detection. Without detection, the agent tries to pick up where it left off and hopes it still has enough context. With detection, the agent knows something happened and deliberately reloads state before continuing.</p>



<p class="wp-block-paragraph">You can make the rehydration process itself auditable. Instead of silently reading the files and resuming, have the agent write down what it learned:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">Read the progress file and the JSONL artifact. Write a summary of what you learned: what pass is running, what unit is active, what the cursor position is, and how many requirements have been extracted so far. Then continue from there.</p>
</blockquote>



<p class="wp-block-paragraph">Writing a rehydration summary serves two purposes. It gives you visibility into what the agent understood and whether it rehydrated correctly. And it forces the agent to process the external files explicitly rather than just loading them into context. Explicit processing is more reliable than silent loading because the agent has to commit to an interpretation, and you can read that interpretation and catch mistakes.</p>



<p class="wp-block-paragraph">You can adapt this approach to any agent workflow where work happens in steps. The specific files and cursor values are particular to my pipeline, but the underlying technique is general: have the agent write its progress to a file after each step, and check that file against its output at the start of every session. And this advice isn&#8217;t just for writing agents or skills. Even in a live session with Claude Code, Cursor, or Copilot, you can tell the agent to periodically write a summary of what it&#8217;s done and what it plans to do next to a file on disk. If the session crashes or the context gets long enough to compact, you can point a new session at that file and pick up where you left off. The key is getting the state out of the conversation and onto disk before you need it.</p>



<h2 class="wp-block-heading"><strong>Context management is an architectural concern</strong></h2>



<p class="wp-block-paragraph">Every technique I&#8217;ve described in these articles comes down to the same principle: Important information shouldn&#8217;t live only in the agent&#8217;s context window. The previous articles covered how to put that information on disk. This one covers how to make the agent aware of its own limitations so it can recover when context pressure gets too high.</p>



<p class="wp-block-paragraph">An agent that can detect its own degradation and correct for it is fundamentally more reliable than one that just keeps going. When the agent knows how to stop, check itself against ground truth, and reload what it lost, context pressure becomes a recoverable event instead of a slow, silent failure.</p>



<p class="wp-block-paragraph">This concludes my mini-series trilogy of articles about context management. The first article in this series was about understanding what context is and why it disappears. The second was about getting important information out of the conversation and onto disk before you need it. This one is about closing the loop: making the agent aware of its own limitations so it can detect degradation and recover from it. Together, they add up to treating context as an engineering problem rather than something you hope works out.</p>



<p class="wp-block-paragraph">These are still early days. Context windows will get larger, compaction will get smarter, and some of the workarounds in this article will eventually be unnecessary. But the underlying principle won&#8217;t change: If your agent&#8217;s ability to do its job depends on information, that information needs to live somewhere more durable than working memory. That was true for my dad&#8217;s 32KB core memory at Princeton, it was true for my 640K of conventional RAM, and it&#8217;s true for today&#8217;s 200K-token context windows.</p>



<p class="wp-block-paragraph"><em>The <a href="https://github.com/andrewstellman/quality-playbook" target="_blank" rel="noreferrer noopener">Quality Playbook</a> and <a href="https://github.com/andrewstellman/octobatch" target="_blank" rel="noreferrer noopener">Octobatch</a> are open source projects where these techniques are used in production. Both are built using AI-driven development and available for exploration if you want to see how this looks in practice.</em></p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p class="wp-block-paragraph"><em>Disclosure: Aspects of the approach described in this article are the subject of US Provisional Patent Application No. 64/044,178, filed April 20, 2026, by the author. The open source Quality Playbook project (Apache 2.0) includes a patent grant to users of that project under the terms of the Apache 2.0 license.</em></p>
]]></content:encoded>
										</item>
		<item>
		<title>The PM&#8217;s Playbook for Shipping AI Features That Actually Work in Production</title>
		<link>https://www.oreilly.com/radar/the-pms-playbook-for-shipping-ai-features-that-actually-work-in-production/</link>
				<pubDate>Wed, 10 Jun 2026 10:55:56 +0000</pubDate>
					<dc:creator><![CDATA[Gaurav Savla]]></dc:creator>
						<category><![CDATA[AI & ML]]></category>
		<category><![CDATA[Commentary]]></category>

		<guid isPermaLink="false">https://www.oreilly.com/radar/?p=18892</guid>

		
					<media:content 
				url="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/The-PMs-playbook-for-shipping-AI-features-that-actually-work-in-production.jpg" 
				medium="image" 
				type="image/jpeg" 
				width="2304" 
				height="1792" 
			/>

			<media:thumbnail 
				url="https://www.oreilly.com/radar/wp-content/uploads/sites/3/2026/06/The-PMs-playbook-for-shipping-AI-features-that-actually-work-in-production-160x160.jpg" 
				width="160" 
				height="160" 
			/>
		
		
				<description><![CDATA[The demo to production Death Valley If you&#8217;ve worked on an AI feature, you know the feeling. You start building something that you are excited about, set launch timelines. The model spits out a perfect response, the prototype works magically, and everybody in the room is mentally calculating how big this product will be when [&#8230;]]]></description>
								<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>The demo to production Death Valley</strong></h2>



<p class="wp-block-paragraph">If you&#8217;ve worked on an AI feature, you know the feeling. You start building something that you are excited about, set launch timelines. The model spits out a perfect response, the prototype works magically, and everybody in the room is mentally calculating how big this product will be when we launch. I&#8217;ve been in that room a lot many times and it&#8217;s fun.</p>



<p class="wp-block-paragraph">Then you try to test before you ship.</p>



<p class="wp-block-paragraph">Latency spikes to 10 seconds on mobile. The model starts hallucinating on edge cases that happen to represent 15% of actual user queries. Your A/B test shows no statistically significant engagement lift because the variance in AI outputs makes traditional hypothesis testing basically meaningless. The safety team flags 340 failure cases in the first week, and you’re now debugging nondeterministic cases that fail in creative, novel ways every single day.</p>



<p class="wp-block-paragraph">Most often than not, it&#8217;s not a model problem but an engineering discipline problem. Shipping an AI product is very different from traditional software. I&#8217;ve figured this out the hard way. This playbook shares my learnings.</p>



<h2 class="wp-block-heading"><strong>Latency budgets</strong></h2>



<p class="wp-block-paragraph">Every AI feature comes with a latency tax. Large language model inference takes time. We&#8217;re talking 500 milliseconds to 5 or even 50 seconds depending on model size, input length, and infrastructure setup. For consumer products where people expect sub-200-millisecond interactions, this is a hard constraint you have to design around.</p>



<p class="wp-block-paragraph">The mistake I see most often is teams measuring only p50 latency. A feature with 800 milliseconds p50 sounds fine until you discover the p90 is 15 seconds. That means 10 in every 100 users sit there waiting for 15+ seconds. At scale, that&#8217;s thousands of terrible experiences per day.</p>



<p class="wp-block-paragraph">The way I think about it is you define your latency budget by interaction type, not globally: <strong>Synchronous interactions</strong>, where the user is staring at a spinner, need to resolve under 1 second.<strong> Progressive interactions</strong>,<strong> </strong>where output streams token by token, need first token in under 500 milliseconds and full response under 5 seconds. <strong>Asynchronous interactions</strong>, where the user keeps doing other stuff, can take up to 20 seconds with a progress indicator.</p>



<p class="wp-block-paragraph">You also need to measure cold starts separately. The first request after a model loads into memory can be 10 times slower than subsequent requests, and if your traffic is bursty, cold starts will disproportionately punish your most engaged users arriving during peak hours.</p>



<p class="wp-block-paragraph">Besides, you also need to budget for the full pipeline, not just inference. A typical AI feature pipeline including input preprocessing (tokenization, context assembly, and prompt construction), model inference, output postprocessing (parsing, formatting, safety filtering, etc.), and a full response delivery adds up. Optimizing inference while ignoring the rest is like tuning your engine while driving on flat tires.</p>



<p class="wp-block-paragraph">Lastly, use streaming aggressively for generative features. Pushing tokens to the user as they&#8217;re generated instead of waiting for the full response changes how users perceive latency.&nbsp; A four-second response that starts appearing at 300 milliseconds feels dramatically faster than one that pops in all at once. Perception is reality when it comes to user experience.</p>



<h2 class="wp-block-heading"><strong>Designing fallbacks</strong></h2>



<p class="wp-block-paragraph">Traditional software fails in boring, predictable ways. AI features fail in novel, unpredictable, and occasionally creative ways. I once saw a model respond to a product recommendation query with a poem about loneliness. Your fallback strategy needs to be considerably more sophisticated than a try/catch block.</p>



<p class="wp-block-paragraph">I think about fallbacks as a hierarchy. First, model fallback: When your primary model fails, drop to a simpler, faster, and more reliable model. Most failure cases get handled without the user ever knowing. Second, cache fallback: For queries similar to stuff you&#8217;ve seen before, serve a cached response. Third, template fallback: When generation fails completely, fall back to prewritten templates. Degraded beats dead every time. Fourth, graceful omission: Sometimes the best fallback is to simply not show the AI feature at all rather than showing a broken version.</p>



<p class="wp-block-paragraph">The design principle underneath all of this is that users should never encounter an unhandled AI failure. Every failure mode maps to a specific level, and transitions between levels should be invisible whenever you can manage it.</p>



<h2 class="wp-block-heading"><strong>Quality measurement</strong></h2>



<p class="wp-block-paragraph">Quality in traditional software is binary. The button works or it doesn&#8217;t. AI feature quality is continuous and subjective, and it changes depending on context. I&#8217;ve landed on a four-layer quality pyramid.</p>



<p class="wp-block-paragraph">The foundation is safety, and it&#8217;s nonnegotiable. Does the output contain harmful content, PII, or made-up facts? This layer is binary, and you measure it with automated classifiers running against 100% of outputs.</p>



<p class="wp-block-paragraph">The second layer is factual correctness, which is domain specific. Is the output actually right? For a coding assistant that means generated code compiles and passes tests. For a writing tool it means grammatical, stylistically appropriate output. You measure this with domain specific evaluation suites.</p>



<p class="wp-block-paragraph">The third layer is usefulness, and it&#8217;s user centered. Did the person actually benefit? Track acceptance rate, edit distance, time to task completion, and repeat usage. This is where traditional product metrics meet AI specific ones.</p>



<p class="wp-block-paragraph">The fourth layer is delight, which is experimental. Does the output feel good? Hardest to measure but often most important for adoption. Sometimes the numbers say the feature works but users&#8217; guts say it doesn&#8217;t. This layer catches that gap.</p>



<h2 class="wp-block-heading"><strong>A/B testing AI features</strong></h2>



<p class="wp-block-paragraph">A/B testing AI features is fundamentally harder than traditional features because AI outputs are nondeterministic. The same user doing the same thing twice might get different outputs, introducing variance that traditional frameworks weren&#8217;t built to handle.</p>



<p class="wp-block-paragraph">The core challenge is that intratreatment variance inflates the sample size you need for statistical significance, often by three to five times. If you&#8217;re running your AI experiment with normal sample size assumptions, you&#8217;re probably looking at noise and calling it signal.</p>



<p class="wp-block-paragraph">Then there&#8217;s the metric selection problem. A chatbot generating entertaining but factually wrong responses might show amazing engagement numbers while actively misleading users. You have to measure engagement and quality together. &#8220;Engaged interactions where quality score exceeds threshold&#8221; is more meaningful than raw engagement alone.</p>



<p class="wp-block-paragraph">The temporal problem matters too. AI feature value changes over time as users learn how to work with it. Short experiments will underestimate long-term value if there&#8217;s a learning curve, or overestimate it if there&#8217;s a novelty bump.</p>



<p class="wp-block-paragraph">My practical guidance: budget two to three times more time and traffic for AI experiments than traditional ones. Lean on Bayesian methods as they handle high variance better. And always pair quantitative tests with qualitative research. Ten user interviews will surface failure modes that no amount of statistical analysis will catch.</p>



<h2 class="wp-block-heading"><strong>Model drift monitoring</strong></h2>



<p class="wp-block-paragraph">Model drift is the slow, invisible rot of AI output quality over time, and there are multiple culprits.</p>



<p class="wp-block-paragraph">Data drift happens because the world changes and user behavior evolves. A model trained on 2024 data performs worse on 2026 queries referencing new concepts, slang, and cultural moments.</p>



<p class="wp-block-paragraph">Provider drift happens because third-party APIs change without your consent. <a href="https://www.ciodive.com/news/ChatGPT-OpenAI-GPT4-LLM-behavior-Stanford-UC-Berkeley/688683/" target="_blank" rel="noreferrer noopener">OpenAI acknowledged</a> that GPT-4&#8217;s behavior shifted measurably between March and June 2023, and <a href="https://arxiv.org/abs/2307.09009" target="_blank" rel="noreferrer noopener">Stanford researchers documented significant performance swings</a>. The fix: Pin your model versions so updates happen on your schedule, after your testing.</p>



<p class="wp-block-paragraph">Evaluation drift is the subtlest form. Even your quality metrics can become inadequate and the evaluation criteria that made sense at launch might become inadequate as usage patterns shift and user expectations change. Quarterly reviews of your evaluation suites are essential.</p>



<p class="wp-block-paragraph">At minimum you need daily automated quality evaluations on 1% to 5% of production traffic, weekly analysis of input distribution characteristics, and monthly human evaluation of 100 to 500 examples. Shipping an AI feature without drift monitoring is like deploying a service without alerting. You won&#8217;t know it&#8217;s broken until your users tell you, and by then they&#8217;re angry.</p>



<h2 class="wp-block-heading"><strong>Evaluation frameworks</strong></h2>



<p class="wp-block-paragraph">How do you know if your AI feature is good enough? You need two fundamentally different approaches, and you genuinely need both.</p>



<p class="wp-block-paragraph">Automated evaluation gives you speed. Build a golden dataset of 500 to 2,000 labeled examples, train a classifier or use a capable model as judge, and validate against human judgment quarterly targeting 85% agreement. Automated evals chew through thousands of examples per hour, making them essential for velocity. The pitfall: They miss novel failure modes not in the training data.</p>



<p class="wp-block-paragraph">Human evaluation catches what automation misses. Structure it with five to seven evaluators mixing domain experts and representative users. Use a consistent rubric covering accuracy, helpfulness, tone, completeness, and safety. Run weekly during development, monthly in production. The trade-offs: expensive at $15 to $30 per example, slow with 24 to 72 hour turnaround, and subject to human biases. Manage by rotating evaluators and capping sessions at two hours.</p>



<p class="wp-block-paragraph">The model as judge approach is an increasingly viable middle ground. Judging quality is often easier than generating it, which means a model can reliably evaluate outputs even for tasks where it couldn&#8217;t produce them itself. Use it for high-volume evaluation but always validate against human judgment.</p>



<h2 class="wp-block-heading"><strong>Graceful degradation and prompt engineering</strong></h2>



<p class="wp-block-paragraph">Graceful degradation means when capabilities decrease, the experience gets worse smoothly instead of falling off a cliff. Design for capability levels, not binary states. Define four to five levels with specific behaviors at each. For example, for an AI writing assistant: Level 5 is full capability with real-time suggestions, tone adjustment, and structure recommendations. Level 4 is delayed suggestions appearing after a two- to three-second pause because latency is up. Level 3 is basic suggestions only like grammar and spelling with no style feedback. Each level is a deliberate design decision, not an accident.</p>



<p class="wp-block-paragraph">Make degradation invisible when possible. Users shouldn&#8217;t see a &#8220;broken&#8221; experience. They see a less detailed one. That&#8217;s a huge difference psychologically. However,&nbsp; when the degradation is significant enough that users will notice, proactive communication like &#8220;AI suggestions are temporarily limited&#8221; builds trust infinitely more than silently pushing poor-quality outputs.</p>



<p class="wp-block-paragraph">Prompt engineering in production is software engineering. In production, prompts are code, and they need version control, testing, monitoring, and maintenance. Version controls every prompt. Parameterize prompts, don&#8217;t hardcode context. Production prompts should be templates with clearly defined injection points for user context, system state, and dynamic instructions. This makes them testable because you can inject known inputs and verify outputs, and it makes them maintainable because changing how you handle context shouldn&#8217;t require rewriting the entire prompt from scratch.</p>



<p class="wp-block-paragraph">Test prompts against regression suites. Maintain 200 to 500 test cases covering the full distribution of expected inputs, including edge cases and adversarial inputs. Run the suite against every prompt change before deployment.</p>



<p class="wp-block-paragraph">Monitor prompt performance in production. Track output quality metrics like acceptance rate, user edits, and regeneration requests, segmented by prompt version. When you deploy a new version, compare its production metrics against the previous one for at least 72 hours before calling it stable. This is basically canary deployment for prompts.</p>



<h2 class="wp-block-heading"><strong>Ship it right</strong></h2>



<p class="wp-block-paragraph">These systems aren&#8217;t optional add ons you can bolt on after launch. Every feature I&#8217;ve seen fail was built first with plans to &#8220;add production hardening later.&#8221; Later never comes.</p>



<p class="wp-block-paragraph">AI features are probabilistic and nondeterministic, and they change over time without anyone touching them. Build these systems, staff them properly, and treat them with the same seriousness you&#8217;d give your core infrastructure. The gap between demo and production is wide, but it&#8217;s absolutely crossable if you build the right bridge.</p>



<p class="wp-block-paragraph"><em>Note: The research work pertaining to this article was done in a personal capacity. Views are of my own and do not reflect my employer&#8217;s views in any way.</em></p>
]]></content:encoded>
										</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Object Caching 85/88 objects using Memcached
Page Caching using Disk: Enhanced (Page is feed) 
Minified using Memcached

Served from: www.oreilly.com @ 2026-06-26 21:50:50 by W3 Total Cache
-->