In this article (5 min read)
This is the first entry in the AI Agent Manager Diaries. Instead of talking about how agents “could” work, here is how they actually run in my studio, including the mistakes that cost me time and money.
What my agents do
In my studio, AI agents handle a big chunk of the coding work across several products. Here is the flow:
- A task lands on the board (from a client, a teammate or me).
- A dispatcher checks the board every hour and claims new tasks.
- A router picks an agent and a model based on task risk.
- The agent gets its own isolated copy of the repo, its own test database and its own ports.
- After coding, a second, independent agent reviews the work, runs tests and checks behaviour.
- The change goes through an automated quality gate.
- A PR is opened with a live test environment, test accounts and a check script.
- I make the final call. I reply “yes”, “fix: …” or “no”, and the system comes back with the update.
The main rule: an agent never deploys to production on its own. It gets everything ready, and a human decides.
Decision 1: matching models to tasks
At first every task went to the top model. It worked, but it was pricey and burned through quotas fast. Now the router picks a model by the impact of a mistake, not perceived difficulty:
| Task type | Executor |
|---|---|
| Copy, small fixes, simple edits | Fast, cheap model |
| Auth, permissions, migrations, APIs, SQL, security | Stronger model |
| Architecture and tough debugging | Top model |
If a cheaper agent gets stuck, the task escalates in the same workspace without starting over or looping on the same profile.
Lesson: choosing a model is a cost and risk call, just like deciding who on your team gets which task.
Decision 2: how often to check the board
At first the dispatcher checked the board every 5 minutes. That was 288 runs a day, burning through one tool's quota before the workday even started. Switching to hourly did not slow delivery at all because tasks wait for human sign-off anyway.
I also moved reading and updating tasks to a plain API call instead of using an LLM. Same outcome, zero tokens.
Lesson: not every step needs a model. The cheapest token is the one you never send.
Decision 3: how many agents at once
I let three agents run side by side. Each ran tests, a browser and a database. The server ran out of RAM and started killing processes mid-run. Now the cap is two active agents at a time, and the rest queue up.
Lesson: agents have real server costs. Scaling is not just about buying more seats.
Decision 4: what “done” actually means
An agent saying “done” proves nothing. Every change goes through:
- typecheck and lint,
- existing tests for the touched area,
- for behaviour changes: a script that reproduces the real case on a live preview,
- for data writes: a full save in the UI and confirmation after reload.
Each check gets at most three tries. After that, the agent must stop tweaking the test and report what is wrong: product bug, bad assertion or environment issue. Otherwise agents can waste hours “fixing” tests instead of flagging a real bug.
Decision 5: measure before changing rules
After 107 tasks I checked where time actually went. About three quarters of verification time was spent on repeated browser tests. Plain unit tests took under a minute and caught the real regressions.
I changed the rules: browser checks only when UI behaviour changes. Another review showed roughly 30% of the codebase was tests, and some protected nothing at all. The new rule is simple: a test should fail when behaviour breaks, not on every harmless refactor.
Lesson: agents optimise for whatever you ask. If you do not measure, you pay for busywork.
Decision 6: context costs money too
Attaching every external tool (ads, analytics, search, tasks) added around 42,000 tokens to every session, even for fixing a typo. Now those tools stay off by default and load only when a task actually needs them.
How I monitor the system
Every morning at 8:00 I get a short report: what shipped, what failed, what escalated and what rule tweaks the system suggests. The report changes nothing by itself. I approve or reject every suggestion. I can also tag results as accepted, needs fixes or rejected so the history stays useful.
Every 20 minutes a cleanup job clears finished workspaces, test databases and ports, but only if everything is pushed and idle. An automated cleanup that can wipe active work is worse than clutter.
What this means for your business
You do not need coding agents for these rules to apply. Any business agent (customer enquiries, documents or marketing) needs the same five basics:
- Clear limits: what it does alone and what needs sign-off.
- A model matched to risk and budget.
- Independent checks instead of trusting “done”.
- Tracking where time and money go.
- A short report for the human who owns the outcome.
That is AgentOps. For more on the role itself, see The AI agent manager: who keeps an eye on AI agents in your company?.
Frequently asked questions
What is AgentOps?
AgentOps is the day-to-day running of AI agents: assigning tasks, picking models, running checks, watching costs and reporting results to a human decision-maker.
Can AI agents deploy changes on their own?
Not in my setup. An agent prepares the change, a live preview and a test script, and a human always decides whether to merge.
How do you cut AI agent costs?
Match the model to task risk, move plain data tasks to regular APIs, trim unused tools from context and track where time actually goes.


