r/devops • u/Rest_Honest • Jun 25 '26
AI content Stop deploying AI agents like it's 2012
Software engineering spent thirty years building a predictable culture around Git, CI/CD, reproducible builds, and rollbacks.
You check code in, it gets reviewed, you know exactly what's running in production. If something breaks, you find the commit and roll it back.
With agents that entire safety net disappears at runtime. System prompts, dynamic memory contexts, tool permissions half the state is made in a black box. Trying to audit why an agent made a specific decision on a Tuesday afternoon is nearly impossible(NEARLY)
I don't think we can keep deploying AI this way. Agent behavior needs to be treated like a versioned artifact. Prompts, rules, memory all of it should live in Git just like everything else.
Are other engineering teams moving toward declarative, version controlled agent setups or are most people just praying to the machine gods like me
2
u/TheKingInTheNorth Jun 25 '26
This is news? Also look into eval sets. All of the rest of the stuff still applies, but eval is new and mandatory anything reasonably important.
1
u/stobbsm DevOps Jun 25 '26
At my job, I’ve been using clause to write terraform, ansible and packer. My boss wants me to use clause to deploy everything, and doesn’t want me to use “that crap”, in reference to the IaC. I had to send a very frank email explaining that reproduction is at the core of why I was hired.
It’s been a battle everyday, to the point where I don’t know if I’ll have a job once this project is done. When did doing things in a way that people after me can understand a bad thing??
1
u/incomplete_ Jun 25 '26 edited Jun 25 '26
No agents deployed, particularly because I dread the Tuesday agent debug session. I use Claude for many daily tasks but have set up detailed guardrails, constant memory updates and constant git pushes from my root .claude and project ones.
I really don't know what it will take for me to deploy any agent that works in our prod environment... Or staging. Or even dev. The chance of unintentional overspill in to any shared infrastructure is just too much for me.
Granted I'm the only tech person on a state wide project, basically a non profit startup deploying a data science learning platform to small colleges and universities. Ai, agents, etc would really be a force multiplier but I don't have a team to help unfuck something terrible that an agent did. Except, of course, the agent itself.
ETA the important part: I've caught soooooo many dumb errors on basic stuff, which makes me happy that I took the time to get guardrails in place as step zero. And even after months of daily and heavy use, I still end up correcting it multiple times each session. I'm sure that there are better AI "life coaches" out there than me, but this trend just seems to have people assuming that AI will automate without real consequences. Anyways rant off
1
u/gaurav_sherlocks_ai Jun 25 '26
We started treating agent configs like infrastructure-as-code and immediately hit a new problem, the prompt that worked in staging behaves differently in prod because the memory state is different. So now you're versioning the artifact but not the context it runs in. Git solves half the problem.
1
u/percoAi Jun 25 '26
This is the part I keep coming back to too. Code has commits reviews deploy history and rollback. Agents often have prompts memory tool calls and runtime state scattered everywhere.
Feels like the missing layer is not “better agents” only but a way to know what ran why it ran what it touched and how to stop or replay it when something goes wrong.
1
u/Future_AGI Jun 25 '26
Versioning the prompts and rules in Git fixes the "what did we deploy" half, but the other half is the runtime record: what the agent actually saw, which tools it called, and why, on the request that went wrong. We lean on OpenTelemetry traces for that, so every agent run is a span tree you can open up and inspect instead of guessing from logs. The two together, versioned config plus a real trace, are what finally make an agent decision auditable. Are you capturing the runtime side yet, or mostly the config side so far?
1
u/[deleted] Jun 25 '26
[removed] — view removed comment
1
u/[deleted] Jun 25 '26
[removed] — view removed comment