OrchestrationAgent managing agents

Jarvis: the supervisor that diagnoses its own failures

Once a business runs several AI agents, the hard problem stops being any one agent. It becomes keeping all of them on schedule, on budget and stoppable, and fixing what breaks without a person watching. Jarvis does that: the rules live in code, and AI handles the diagnosis.

5 minsupervision cycle
$/dayhard budget per agent
3attempts max per job
1 fileto stop any agent

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

  1. 01

    Register

    Each agent is registered with its jobs, schedule, autonomy level and daily budget.

  2. 02

    Schedule

    Every five minutes the supervisor starts any job that is due.

  3. 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.

  4. 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.

  5. 05

    Enforce budgets

    Spending is read from each agent's own metering, and paid work pauses at the daily cap.

  6. 06

    Stop on command

    A kill switch stops one agent or all of them instantly.

  7. 07

    Show the fleet

    A live graph shows the supervisor, every agent, and every job with its last and next run.

Guardrails

Results

What we learned

Liveness is not health.A process can be running and still doing nothing useful. Jarvis checks results and heartbeats, not just whether something is alive.
Fail closed, but not silent.When a check cannot run, the safe default is to pause and say so, never to carry on quietly.
Rules in code, judgement in the model.Budgets, attempt limits and kill switches are plain code that cannot be argued with. The model only decides which allowed fix fits the failure. That split is what makes it safe to let AI act unattended.
Retrying the unfixable just burns money.An expired login fails the same way every time. Knowing the cause is what lets the system skip straight to a person, or skip the retry entirely.

Under the hood

Python supervisorClaude Haiku diagnosisPer-agent usage meteringPhone alertsFleet dashboard

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.