← agentic systems
Agentic · Orchestrator–workers · Cookbook 13 The Python 13_orchestrator_workers.py

The foreman

Four AI workers fix bugs together: a researcher, a coder, a tester and a reviewer. Something has to decide who works next, and in most frameworks that is another large model re-reading the whole conversation on every turn. Here Jev makes that choice in a quarter of a second. It also checks whether the last piece of work was any good, and notices when the team is going round in circles.

Jev: one call per step LLM worker doing the work Done A person

The supervisor's read

Press Play. Each step is one Jev call returning four answers at once.

So far

Decisions
0
supervisor calls
Jev time
0.0s
all decisions
LLM supervisor
0s
same decisions
Done
0
no person
To a person
0
with a reason
Supervisor cost
$0.000
vs $0.00 LLM

Raise the confidence floor to 0.7 and the first bug goes to a person even though it was going fine. Lower the step budget and the flaky test is stopped by the budget before Jev spots the loop. Changes apply from the next decision.

The code · lines this step ran are highlighted


    

Tasks

TaskPathOutcome

The numbers are illustrative, not measured: 0.25s and about $0.0001 per Jev call; an LLM supervisor at about 4s and $0.01 per call, more as the transcript grows. ← 12 · Four specialists, one verdict · Next: 14 · Passing the customer on →