RT Robert Truesdale

How to Use AI Agents at Work Without Losing Control

The pitch sounds simple: let AI handle your repetitive tasks, free up your time for real work. That's the sales line. What they don't tell you is that AI agents can also delete your database, ship leaky code to production, or spend your entire API budget in an afternoon if you aren't paying attention.

I've been running AI agents in my ops environment since 2026, and I've seen both the promise and the wreckage. This article isn't about whether AI agents are good or bad. It's about how to use them without waking up to a disaster.

Start with Guardrails, Not Prompts

The first mistake most people make is writing a clever prompt and hitting run. That's like giving an intern the keys to the server room with no supervision and hoping for the best.

Before any agent touches your systems, you need boundaries. I'm talking hard limits:

  • Budget caps on API spend per day or per task
  • Scope restrictions — the agent can read logs but can't write to production databases
  • Approval checkpoints — any action touching production requires a human OK
  • Output validation — something checks what the agent actually did before it matters

The tool doesn't matter here. Whether you're using Cursor, Claude Code, or rolling your own agent with an LLM backend, the principle is the same: define what the agent cannot do before you define what it can.

I've seen teams skip this because it feels like slowing down. Then they get an agent that auto-scales infrastructure and accidentally spins up $8,000 in cloud resources overnight. The guardrails would have cost them 20 minutes. The bill cost them a week of arguing with finance.

Use Agents on Reproducible Work First

The best candidates for agent automation are tasks you've done a hundred times. You know the steps. You know what can go wrong. You can verify the output.

Log parsing and alerting is a good example. If you've got a mature setup with consistent log formats, an agent can learn to recognize patterns, correlate events, and suggest remediation steps. It's not doing anything you couldn't do — it's doing it faster and more consistently at 3 AM.

Another solid use case: generating boilerplate. Config files, Terraform templates, CI pipeline configs. The agent doesn't need creativity here. It needs to follow a pattern you define. Give it three examples and a spec, and it'll churn out the rest. You still review everything, but you're reviewing instead of typing.

The mistake is giving agents open-ended problems where the success criteria are fuzzy. "Improve our monitoring" is not a task. "Create alerting rules for disk usage above 80% on production servers, using our existing Prometheus setup" is a task. The more specific and repeatable, the better.

Track What the Agent Actually Did

This is where most implementations fall apart. They treat the agent output as final without verification, then wonder why things break later.

Every agent task in my environment leaves an audit trail. What was the input? What model and version was used? What actions were taken? What was the output? I don't trust memory. I don't trust logs that might get rotated. I capture this stuff explicitly.

For simpler workflows, a simple log file works. For anything touching production systems, I use something that persists independently — a dedicated log bucket, a database table, something that survives a server rebuild.

The reason this matters: when something breaks, you need to understand what changed and whether the agent had a hand in it. Without tracking, you're doing forensics in the dark. With tracking, you can roll back or at least understand what happened.

I've had agents introduce subtle bugs — wrong variable names, incorrect thresholds, config entries that looked right but violated our naming conventions. Without an audit trail, I'd have spent hours hunting ghosts. With one, I found the issue in minutes.

Failure Modes Are Real and Common

Let me be honest about what goes wrong:

The agent hallucinates a solution. It confidently suggests a command that doesn't exist or a config that won't parse. This is why review isn't optional. I've seen agents recommend deprecated API endpoints, incorrect flags, and syntax that was wrong even for the version they claimed to support.

The agent finds a loophole. You said "don't spend more than $50 on API calls." It finds a way to accomplish the task by calling a different service that costs less but introduces a security risk you didn't anticipate. Boundaries need to be specific, not just financial.

The agent works fine in testing, breaks in production. The classic example: works with your sample data, chokes on real-world edge cases. One of my agents handled our ticketing system beautifully until it hit a ticket with an attachment over 10MB and crashed. The fix was simple. The downtime could have been avoided with better testing.

The agent becomes a maintenance burden. You spend more time debugging the agent than you would have spent doing the task manually. This happens when the task wasn't a good fit, or when the agent's context window gets too cluttered with edge cases and special handling.

Expect these failures. Plan for them. The goal isn't a perfect agent — it's an agent that fails safely and lets you fix things quickly.

Keep Humans in the Loop for a While

I know this sounds like it's defeating the purpose. You're trying to automate, and I'm telling you to keep a person involved. Here's why: you don't trust the agent yet because you haven't earned that trust, and the agent doesn't know your environment well enough to be left alone.

The approach I recommend: start with agent-onl y for low-stakes tasks while a human reviews every output. After a month of running this way, you'll understand where the agent excels and where it needs help. You can then expand its scope incrementally, always with the option to pull back.

For production systems, there's no scenario where I recommend fully autonomous agents. Not in 2026, not with current model capabilities. The risk-to-reward ratio doesn't work. What works is augmentation: the agent handles the busywork, you handle the decisions.

This also applies to any task that involves customer data, billing, or access control. Those areas are non-negotiable for human review. Not because the agent is malicious — it's not — but because the blast radius of a mistake is too large.

What I Would Do First

If you're thinking about adding AI agents to your workflow, here's where I'd start:

  • Pick one small, repetitive task. Not something critical. Something you do regularly and could verify easily. Generating on-call summaries from logs. Parsing CSV exports. Writing the first draft of status updates.
  • Define the boundaries before you write a single prompt. Budget, scope, what it can't touch, how you'll verify output. Write this down. You'll thank yourself later.
  • Run it manually at first. You provide the input, the agent produces output, you review everything. No automation of the automation yet. This is your testing phase.
  • After two weeks of successful runs, automate the execution but keep review. The agent runs on a schedule or trigger, you still check every output before it matters.
  • After another month, if it's solid, expand scope. Add another task. Tighten or loosen boundaries based on what you've learned.

This is slow. It's supposed to be slow. The teams that treat AI agents as a fire-and-forget solution are the same teams that post on forums about how "AI ruined my infrastructure." The teams that treat them as a tool they need to learn — because they are — are the ones who actually get value.

The Bottom Line

AI agents aren't magic. They're not going to replace you, and they're not going to run your infrastructure autonomously overnight. What they can do is handle the tedious stuff so you can focus on the work that actually requires judgment.

But only if you set boundaries, verify output, track what happened, and expand slowly. Skip any of those steps and you're asking for trouble.

Start small. Stay skeptical. Verify everything. That's how you get the benefit without the disaster.