The challenge
Separate cron jobs for each agent meant failures went unnoticed, costs were only seen after the fact, and there was no single place to see what was running or to stop it.
What we built
- 01
Register
Each agent is registered with its jobs, schedule, autonomy level and daily budget.
- 02
Schedule
Every five minutes the supervisor starts any job that is due.
- 03
Diagnose
When a job fails, an AI model reads the failed run's log and names the cause: a rate limit, a timeout, an expired login, a quality check that refused the output, or a bug.
- 04
Fix or escalate
It picks a remedy from a list the code allows for that cause: retry now, retry after a short wait, run the job's fallback, or skip today. An expired login or a code bug cannot be fixed by retrying, so it goes to the owner's phone with the diagnosis and a suggested fix.
- 05
Enforce budgets
Spending is read from each agent's own metering, and paid work pauses at the daily cap.
- 06
Stop on command
A kill switch stops one agent or all of them instantly.
- 07
Show the fleet
A live graph shows the supervisor, every agent, and every job with its last and next run.
Guardrails
- The supervisor never edits an agent's code or rules. It schedules, measures, diagnoses and stops.
- The AI chooses only from remedies the code allows for that cause. It cannot raise a budget, add attempts or invent a new action, and if it is unavailable the fixed rule (retry once, then alert) applies.
- Every decision is logged with its cause, evidence and remedy, and diagnosis itself has a daily call cap.
- Costs are measured from real usage, not estimated.
- Low-cost, customer-facing work, like replying to a comment, can be exempt from the budget pause.
Results
- Every agent on one schedule with one budget system and one off switch.
- Transient failures fix themselves, and the owner hears about them as a one-line note.
- A human is called only for what retrying cannot fix, and arrives with the cause and a suggested fix instead of a bare error.
What we learned
Under the hood
More case studies
Want agents like these in your business?
Book a free 30-minute AI audit. We'll find the one workflow worth automating first, and what it would cost to run each month.