Patterns · working with agents

One request, several models.

What happens between asking an agent for a change and trusting the result? Different models do different jobs, and none of them marks its own work: one plans, another attacks the plan, cheaper ones execute, and a check proves the outcome before I read a word of the summary.

The flow

One request: who plans, who attacks the plan, who executes, who checks Three lanes. I ask, confirm anything destructive or live, and read the recap. A lead model plans, answers the review and reviews the results; cheaper worker models execute. A separate reviewer model and a verification gate sit between them, with failure paths back to planning and back to execution. if the plan touches more than one file, a repo or a live system sound unsound: re-plan asks first fails: fix, re-run passes 1 I ask a request 2 Lead plans and orchestrates 3 Reviewer another model 4 Lead answers every finding 5 Workers run cheaper models 6 I confirm destructive, live 7 Lead reviews the results 8 Verification proof, not claim 9 I read the recap I DECIDE AN AGENT ACTS A GATE CHECKS
  • I decide
  • An agent acts
  • A gate checks

Numbers match the steps below.

Steps

  1. MeAsk for something

    A request in a coding-agent session. The strongest model is the session default, so it receives the request and acts as the lead.

  2. Lead modelPlans and orchestrates

    Writes the plan and keeps the judgment calls for itself: specs, review of results, anything involving secrets or settings, and live changes. Trivia is not delegated.

  3. ReviewerAttacks the plan before anyone runs it

    Required when the plan touches more than one file, a repository or a live system. A read-only agent on a different model gets the plan and the places it touches, never the lead's conclusions, and returns a verdict (sound, sound with fixes, unsound) with findings ranked by severity.

  4. Lead modelAnswers every finding

    Each finding is fixed, or rejected with a stated reason, before work starts. An unsound verdict sends the plan back to step 2.

  5. Worker modelsExecute from the reviewed plan

    Mid-size models do the work and the smallest run searches and fixed-rubric checks. Each is given an explicit model and effort level, and exact paths or its own working copy, because subagents otherwise inherit the session's.

  6. MeConfirm anything destructive or live

    Destructive operations and live deploys wait for a clear yes. Permanent deletes are mine to run. Read-only work needs no confirmation.

  7. Lead modelReviews the results

    A worker's report is a claim, not a measurement. The lead reads the work against the plan before anything is called done.

  8. VerificationProves it, through the failure path

    Tests, smoke checks and live checks, run in the production shape, with a second vantage point for any claim about a live system. A failure goes back to step 5.

  9. MeRead the recap

    What is now true, what was not verified, and the routing used: which model did which part.

Guardrails

What stops it

Hard stops

  • The reviewer holds only read and search tools: it cannot change what it reviews.
  • A hook refuses a child session started without a named model, so cost and capability are always chosen, never defaulted.
  • No kickoff while a finding is unanswered.

What waits for me

My call

  • Destructive operations, and every permanent delete: the exact command is parked for me to run.
  • Live deploys in an interactive session.
  • Each read of a stored secret, as a biometric prompt.

What happens on failure

Stop, don't loop

  • Two failures of one automation: stop, report the state and side effects, and hand over the manual steps.
  • A failed check returns to execution, never to the recap.
  • "Cannot confirm from here" is reported as unverified, not as false.

The idea

Give each model one job and keep the author from being the judge. The planner never grades its own plan, the executor never grades its own work, and the reviewer cannot edit what it reviews. Routing by cost follows from that: spend the strongest model on judgment, the cheaper ones on execution, and spend a human only on what is destructive or live.

Copied