TRUEFALSETRUEFALSE
[ Trigger Action ]
IF
Prompt submitted

A prompt reaches the router before any model is chosen.

[ True/False Branch ]
Resumed session?

A session that already has a plan skips classification.

Run Agent
Continue with Luna

The worker model picks the plan up where it stopped.

Run Agent P(complex) 0.82 score
Jev classifies the prompt

Answers one typed question: how complex is this request?

True/False Branch
P(complex) ≥ 0.5?

Above the threshold the request needs a planner.

[ Run Agent ]
Plan with Sol

The planner writes the steps before anything is edited.

Run Agent
Answer with Luna

A simple request goes straight to the worker.

Review
First edit succeeded?

Planning ends after the first successful write.

Run Agent
Hand off to Luna

Luna carries out the rest of the plan.

machines-ui