All Episodes

May 22, 2026 • 22 mins

Claude Code workflows, enterprise Codex deployments, and rising token costs all point to the same lesson: coding agents need operating systems, not just better prompts. Alex and Sam dig into /workflows, on-prem Codex, CI for agents, and the new decision fatigue of choosing where each task should run.

Listen
Watch
Mark as Played
Transcript

Episode Transcript

Available transcripts are automatically generated. Complete accuracy is not guaranteed.
(00:00):
You know, usually when we talk about writing software, there's,
there's this expectation of justabsolute control.
Like you lay the foundation, youwrite the function, the compiler
reads the syntax and the machineexecutes it exactly as written.
It's it's entirely rigid, you know, pass or fail, clean,
visible, and you can track literally every single

(00:21):
dependency. Yeah, it's completely
deterministic. I mean, you put X in, you get Y
out every single time. And we like our logic to be
predictable because, well, that predictability is what actually
makes debugging and, you know, scaling systems possible in the
first place. But then you step into this
rapidly shifting world of AI coding agents, and suddenly that

(00:42):
compiler feels a little more like a Ouija board.
Oh. Absolutely.
It's a completely different paradigm.
We're looking at an engineering landscape right now that is
moving away from strict deterministic rule following and
moving toward managing basicallyunpredictable intelligence.
Which is terrifying for a lot ofengineers, honestly.
Right, and that unpredictabilityis exactly why enterprise teams

(01:03):
are fundamentally changing how they deploy, manage and actually
pay for AI coding assistance in their day-to-day infrastructure.
O welcome to this Dee dive. Today we are moving way past the
hype of justice. You know, chatting with a bot.
Yeah, the chatbot phase is kind of over for serious teams.
Exactly. And if you've been looking at
the sheer volume of tools dropping every single week, the

(01:26):
new models, the new IDE extensions, all these wraers,
and wondering how any of this actually integrates into a real
professional workflow without, you know, breaking everything,
we are going to build a clear framework for what actually
works right now. Because a lot of it doesn't work
out-of-the-box, not at an enterprise scale.
No, it really doesn't. And I think the biggest shift
across the board, the overarching mission of our deep

(01:47):
dive today is looking at how we are abandoning spontaneous
conversational questions and forcing these tools into highly
structured systems. That shift from the spontaneous
to the structured. It really crystallizes when you
look at the roll out of Cloud Code's new workflows feature.
Oh yeah, the slash workflows. Right workflows.

(02:08):
This represents A profound change in how developers
actually interact with large language models, because I mean,
for the longest time interactingwith an AI for coding was
essentially just a prompt habit.A prompt habit.
Yeah, right. You open a chat window, you
meticulously type out a specificset of instructions, you wait
for the code, you review it, andyou paste it into your IDE.

(02:30):
And you just do that over and over again.
Treating the AI as like an incredibly fast but highly
forgetful junior developer. Exactly, it has amnesia every
time you close the window. OK, let's unpack this, because
that prompt habit is essentiallylike manually compiling your
code via the command line every single time you make a change.

(02:51):
Oh, that's a great way to put it.
Like you're typing out all the flags and paths from memory.
You know what you want to do, the machine is totally capable
doing it, but you are still forced to physically type out
the manual execution instructions every single time.
It's like writing out a recipe by hand every time you want to
bake a cake. Yeah, which is just exhausting,
right? But what Claude Code is doing
with workflows is taking that repetitive action and turning it

(03:14):
into a product primitive. It's like graduating from that
manual recipe writing to having a programmable smart oven where
you literally just hit a button.Hit a button and walk away.
And what's fascinating here is that standardizing these AI
tasks as primitives is completely crucial for the
industry right now because of scale, consistency, and

(03:36):
honestly, cognitive load. Cognitive load is huge.
Right, because when an AI task is just a prompt habit, it
relies entirely on the individual developers memory and
their specific skill at writing that prompt on like a Tuesday
afternoon. When they're probably already
tired. Exactly.
If they are tired or if they skip a crucial detail about the
architecture, the prompt is sloppy.

(03:57):
And because the input is non deterministic, that sloppy
prompt yields completely unpredictable output.
The roll of the dice. But when you lock that behavior
into a product, a primitive, like a defined workflow file
that sits right in your repository, you drastically
reduce that cost talkative load.The developer doesn't have to
reinvent the prompt, they just invoke the workflow.

(04:17):
Which turns the AI from a conversational partner into
actual infrastructure. Yes, precisely.
You're building a system that utilizes the LM as a compute
engine for logic. Rather than just treating it
like a chat buddy, you're givingit a defined job.
It moves from being the subjective art like who writes
the best prompt, to an objectivetool.

(04:39):
And while individual developers are using this to save a ton of
time, the demand for this kind of rigid control is massively
amplified at the enterprise level.
Oh for sure, corporations don't want subjective art in their
deployment pipelines. No, they want defined processes,
which is exactly why Big Tech isfundamentally changing how they
physically deploy these models to their enterprise clients.

(05:00):
The enterprise push, yeah, I mean Open AI was just named a
leader in enterprise coding agents and alongside that they
announced this massive strategicpartnership with Dell to create
hybrid and on premise codecs environments.
And this represents a massive strategic pivot for the whole
industry because for the last several years, I mean, the
prevailing narrative in AI has been entirely cloud centric.

(05:21):
Everything goes to the cloud. Right, Send your code to the
massive API, let the massive compute clusters process it, and
get your answers back. But enterprise teams are now
drawing a really hard line in the sand.
Because they're scared of leaks.That's a big part of it.
They are demanding that these powerful coding agents live
incredibly close to their private code, their proprietary

(05:43):
databases and their existing on premise infrastructure.
But here's where it gets really interesting and I have to push
back a little. Here we have spent the better
part of a decade migrating all these legacy companies to the
cloud. Oh yeah, clawing them away from
their on Prem servers. Exactly, we sold them on
infinite scalability, managed services, all of it.

(06:04):
And now, suddenly heavy on premise hardware, literally
racking Dell servers in corporate basements, is making
this massive comeback specifically for AI.
It's like hiring a brilliant, world renowned consultant,
paying their exorbitant retainerfee, but absolutely refusing to
let them leave the building withyour files because the IP is
just too valuable. That's exactly what it is.

(06:24):
Security and compliance are the obvious factors there.
Right? I mean, banks and healthcare
providers aren't going to just send their core IP over a public
API to open AI servers. Right, the compliance officers
would have a heart attack. Exactly.
But fundamentally, beyond just security, this is about the
physics of data, gravity, and proximity to context.
OK, break that down for U.S. data gravity.

(06:45):
So a coding agent is really onlyas intelligent as the context it
has immediate access to if an enterprise wants an agent to,
say, refactor a massive 20 year old legacy monolithic
application. Which is a nightmare job by the.
Way total nightmare, but that agent needs to understand the
entire code base, the historicaldatabase schemas, the internal

(07:07):
documentation, and all the weirdAPI quirks.
And if you are trying to feed all that context into an LL
context window over a public API, the latency is going to be
just unbearable. It's unworkable.
Not to mention the token limits.I mean you blow through your
limits in 5 minutes. Precisely sending gigabytes of
repository data and internal wikis back and forth over the

(07:29):
public Internet to a cloud modelintroduces massive latency, but
having a localized Codex environment running on dedicated
Dell hardware inside the Cororate firewall means the
agent sits right next to the data.
So the data gravity issue is solved.
Yes, it can ingest massive amounts of local context
instantly. It can query the internal

(07:49):
database schema directly withoutneeding, you know, a secure
tunnel to the outside world. It is fast, it satisfies the
compliance officers and it completely solves the latency
problem. OK, so you bring the hardware in
house, you rack the servers, youpoint the localized codecs model
at your proprietary monolithic code base.
You solve the privacy and the latency problem.

(08:10):
But this introduces a completelynew architectural nightmare
because once you unleash this highly capable non human coder
inside your systems, how do yourexisting highly structured
corporate systems actually handle a non deterministic
worker? And that right there is the
friction sparking the brightest across the industry right now.
Traditional CI. So continuous integration

(08:31):
pipelines were simply not built for coding agents.
They're built for humans. Exactly.
They were built for humans writing deterministic code.
I mean, the historical assumption built into literally
every CI tool is this. A human writes a specific
change, they commit it. The CI pipeline pulls that
commit, runs a battery of automated tests, and if the test

(08:54):
pass, the code moves forward. Right, because the pipeline
assumes the input is static and the intent is fully understood
by the human author. But an AI agent isn't static.
No, not at all. You can give an LLM the exact
same task with the exact same temperature settings, and
because of the underlying architecture of the model you
might get 2 slightly different implementations.
Which has to be terrifying for aCI system designed to look for

(09:15):
binary pass or fail conditions based on strict syntax.
Oh it breaks it entirely. The traditional CI breaks down
when the quote UN quote developer might decide to
rewrite a helper function in a completely novel way just
because of a slight variation inthe models output generation.
So when teams start letting agents auto commit code to fix

(09:36):
bugs, they suddenly find themselves in desperate need of
agent aware validation. They need specialized review
processes that don't just check if the code compiles or passes a
basic unit test, but actually verify if the agents logic lines
with the broader architectural intent.
And even more urgently than validation, they need strict
automated cost controls embeddeddirectly into that pipeline

(09:58):
loop. Oh, the cost controls are
critical. Wait, let's look at the
mechanics of that loop. Because if a non deterministic
agent is committing code and theCI is breaking, what does the
agent do? Well, it tries to fix it.
Exactly. It reads the standard error
output from the field CI run, pulls that error into its
context window, generates a new fix and pushes another commit.
And if it fails again, it repeats the process.

(10:20):
Over and over. It's hitting the models API
every single time. That's not just a broken build,
that is a massive compute bill. Yeah, autonomy without
boundaries inevitably leads to runaway costs in an API driven
world. If we connect this to the bigger
picture, think about that autonomous agent trying to fix a
deeply nested dependency issue. Oh boy.

(10:42):
In a fully autonomous unchecked loop, the agent might iterate on
that single bug 50 times in an hour.
Wait, really? 50 times.
Easily. And every single API call, every
token of context it reads to understand the error log and
every token it generates to write the fix costs compute,
right? If you are using a cloud
provider, you were just burning cash.

(11:03):
And if you're using that on premise Dell hardware we talked
about, you are saturating your local GP US and bottlenecking
the rest of the engineering team.
But wait, if the whole point of AI is that it's smart and
autonomous, why are we suddenly needing all these manual budget
caps and stopping conditions? I mean, are we basically giving
the corporate credit card to an overly enthusiastic intern
without a spending limit? That is exactly what we're

(11:25):
doing. If we don't put boundaries in
place, it feels like micromanagement, but it's
actually systems engineering. You have to build boundaries
because large language models donot have an inherent sense of
sunk cost. They don't care about your
budget. They have no concept of money.
Without agent aware infrastructure, a simple syntax
error could consume thousands ofcopilot credits or rack up a

(11:48):
massive token bill before a human manager even receives an
alert. You have to physically engineer
the pipeline to say you get exactly 5 attempts or $20 worth
of compute, and if you haven't solved it by then, terminate the
process and escalate to a human.So the developer on the ground
is suddenly having to rewire their entire CI pipeline just to

(12:08):
catch infinite loop. Yeah, it's a huge.
Burden they have to decide between local models, cloud
models or on Prem hardware. They have to write specific
workflow configurations instead of justice coding the app.
It's no wonder there's a seriousside effect sweeping across
engineering teams right now, which is severe decision
fatigue. Oh, the decision fatigue is very
real. The cognitive load we talked

(12:30):
about minimizing with product primitives, it hasn't entirely
disappeared for everyone. For many, it has just shifted
from writing the syntax to orchestrating all these tools,
right. Stack Overflow recently
published data highlighting a massive spike in decision
fatigue within the developer community.
And I mean, it makes perfect sense just to start a basic

(12:51):
feature ticket. A developer is staring at a
literal buffet of options. A very.
Overwhelming buffet. Right.
Do they use Claude code? Do they use cursor?
Do they spin up a local Llama model to save tokens?
Do they spend the morning writing YAML files to manage the
workflow? And the danger of that decision
fatigue is paralysis. Like if an engineering team
spends 3 weeks evaluating which model has a slightly better

(13:14):
benchmark for Python, they stop actually shipping software.
They get stuck in the tooling phase.
But to cut through that fatigue,we have to look at how real
teams are forcing structure ontothis chaos right now.
In one of the engineering blogs we reviewed for this deep dive,
there were two fantastic examlesof this A developer named Alex

(13:34):
completely overhauled their release triage by converting it
into strict clawed code workflows.
That was a brilliant implementation.
It really was. Instead of an open-ended chat
about what bugs might need fixing, it's a defined
programmatic process. And then another engineer, Sam,
designed an agent intake checklist specifically for a
legacy team to help them on board safely.

(13:56):
Which is so necessary for legacycode.
Yeah, they aren't just giving the AI Open Access to the
repository, they're building a cage around it.
Those case studies highlight theultimate antidote to this
decision fatigue. The best teams aren't endlessly
debating models, they are takingrepeatable tasks and turning
them into strictly checked programmable workflows.
And there is a clear five part framework for constructing this

(14:18):
infrastructure that teams are adopting right now.
It's a real pro tip for anyone listening.
OK, so we're building a deterministic cage around a non
deterministic model. How are these teams actually
constructing this mechanically? Like what is the first step in
the framework? So first you have to define the
scope. This isn't just a verbal
instruction you give to the AI, this is a strict system prompt

(14:40):
embedded in the workflow configuration.
What exactly is this agent allowed to do?
Is it only generating unit testsbased on existing functions, or
does it have permission to actively refactor database
queries? You must programmatically define
the absolute boundaries of its job description.
Second, you set the allowed files.
I assume this is where you minimize the blast radius.

(15:02):
You enforce file level permission so the agent can't
like accidentally rewrite the authentication module when it's
just supposed to be fixing a front end CSS bug.
Exactly. Mechanics wise, you configure
the IDE wrapper or the local script to only expose specific
directories to the LLMS context window.
It literally cannot see the restof the repository.
I'll get smart. It's blind to everything else.

(15:24):
Right then third you establish apest command.
The agent needs a deterministic automated feedback loop to know
if it's non deterministic outputactually succeeded.
In the workflow configuration you define exactly what command
to run, like NPM test or π test.And when that test command runs,
the standard output, the pass orfail the error logs that gets

(15:47):
automatically piped directly back into the LLM is its next
prompt, rather than a human having to sit there and copy
paste it. That is the crucial mechanism,
yes. The system handles the feedback
loop entirely 4th, and this directly addresses our earlier
discussion about the API burn. You enforce a budget cap.
Right, this is where you set thehard limit.
You configure the runner to monitor the token usage of this

(16:08):
specific workflow, and if it hits a predetermined threshold,
say $5, it just kills the process instantly.
Exactly. You literally cut off its API
key access for that run. And finally 5th you define a
clear stopping condition. Beyond just the budget cap.
Like telling it if the test command fares 3 times with the
exact same error code, stop trying to fix it and flag the

(16:28):
pull request for a human to review.
Yes, exactly. Or conversely, a success
condition like if the test command passes and the Lynter
returns 0 warnings, stop generating immediately, commit
the code and submit the pull request.
That makes sense. It prevents the model from over
otimizing or hallucinating extrafeatures once the core task is
actually done O it's SCOE allowed files, test command,

(16:52):
budget cap and stopping condition.
Mechanically enforcing these 5 rules in a YAML file or
dedicated workflow script is howyou turn a chaotic,
unpredictable API call into a reliable enterprise grade
product primitive. So what does this all mean for
you? Listening right now?
Scaring down that dizzying list of tools, Whether it's copilot,

(17:12):
clawed local models, or on Prem codecs, How do you actually
evaluate your text stack using this framework without drowning
in decision fatigue? This brings us to the core
reality check of this entire deep dive.
This raises an important question, right When evaluating
AI tools, the natural human instinct is always to reach for
the most powerful, most capable,most intelligent model available

(17:32):
on the market. Because we want the best.
We assume that the smartest AI with the highest benchmarks will
naturally yield the best resultsfor every single task.
But the reality of enterprise integration is entirely
different. The winning agent setup is not
simply plugging the smartest, most expensive model into every
single step of your development process.

(17:53):
Because that is exactly how you hit those budget caps and burn
through your quarterly compute allowance in a week.
So if throwing the smartest model of the problem isn't the
answer, what is the actual infrastructure strategy?
The most sophisticated enterprise teams are operating
on a completely different principle.
They are focusing on creating the most repeatable workflow

(18:14):
with the cheapest acceptable escalation path.
The cheapest acceptable escalation path.
I love that O you're effectivelycreating a triage system for
code generation. How does that routing actually
work in practice? Well, it works exactly like a
tiered Technical Support system,but automated via scripts.
OK, walk me through it. So for basic, highly repetitive
tasks within your defined workflow, like syntax checking,

(18:37):
generating boilerplate, or just formatting documentation, your
system defaults to a small, incredibly cheap, incredibly
fast local model. Like something running directly
on the developer. 'S laptop exactly.
It costs almost nothing in compute, but if that small model
fails to define test command, the script automatically catches
the error and escalates the prompt to a mid tier cloud

(18:59):
model. And only if that mid tier model
fails the test command, or if the initial scope requires, you
know, complex architectural reasoning across multiple files,
does this system finally escalate to the heavy expensive
top tier frontier model. Yes, it is entirely about
efficiency and predictability. You are reserving the massive
cognitive power of the most expensive models only for the

(19:19):
problems that actually require it, rather than paying top
dollar to have a front tier model center a division in CSS.
Which perfectly brings us full circle to the concept of the
product primitive. You aren't relying on a genius
but unpredictable black box to do your everyday chores.
You are engineering a reliable, highly structured machine.
You are architecting the workflow, managing the local

(19:42):
versus cloud resources, and actively controlling that
escalation path. You are building a system of
intelligence. The raw intelligence of the
models themselves is honestly becoming a commodity.
The infrastructure you build to harness and constrain that
intelligence is where the actualengineering value lies today.
This has been a massive shift tounpack.

(20:02):
I mean, we started by looking athow the industry is moving away
from those messy individual prompt habits, graduating to
programmatic repeatable workflows.
We explored the enterprise push,understanding the physics and
data gravity that are forcing companies to partner with
hardware giants to pull Codex environments in house, securing
their proprietary data away frompublic AP.

(20:23):
Is right a huge reversal of the cloud trend, Yeah.
We navigated the absolute friction of pushing non
deterministic AI agents through rigid traditional CI pipelines
and how critical it is to engineer automated stopping
conditions to control that massive compute burn.
And finally, we broke down how to beat developer decision
fatigue by enforcing strict scopes, file limits and triage

(20:46):
based escalation paths. The overarching theme here is
that the infrastructure surrounding the AI has become
just as critical, if not more so, than the AI itself.
Exactly. For you listening right now, the
biggest take away to implement in your own repositories this
week is this. Mastering this new landscape
isn't about having the smartest AI on your payroll.
It is about building the most robust, predictable and cost

(21:08):
effective system around whateverAI you happen to use.
And if we look at the trajectoryof this infrastructure, it
leaves us with a rather profoundfinal thought to consider, OK.
Let's hear it. If the ultimate goal of AI
coding integration is creating these highly restricted
workflows, you know, with strictbudget caps, limited file
access, deterministic stopping conditions, and automated triage

(21:30):
that defaults to the cheapest acceptable model, does the
future of software development look less like brainstorming
creatively with a super smart pair programmer and more like
acting as a factory floor manager overseeing an assembly
line of highly specialized, heavily restricted digital
workers? From the Wild West of the
unpredictable compiler, right back to the rigid structure of

(21:51):
an industrial assembly line, theillusion of the creative AI
artner versus the mechanical reality, the digital factory
floor. That is a massive aradigm shift
to Mull over while you're writing those workflow
configurations this week. Thank you so much for joining us
on this Dee dive. We'll catch you next time.
Advertise With Us

Popular Podcasts

Stuff You Should Know
Dateline NBC

Dateline NBC

Current and classic episodes, featuring compelling true-crime mysteries, powerful documentaries and in-depth investigations. Follow now to get the latest episodes of Dateline NBC completely free, or subscribe to Dateline Premium for ad-free listening and exclusive bonus content: DatelinePremium.com

The Bobby Bones Show

The Bobby Bones Show

Listen to 'The Bobby Bones Show' by downloading the daily full replay.

Music, radio and podcasts, all free. Listen online or download the iHeart App.

Connect

© 2026 iHeartMedia, Inc.

  • Help
  • Privacy Policy
  • Terms of Use
  • AdChoicesAd Choices