concepts
Execution Path Triage
- updated
- reading time
- 10 min read
The Problem
A coding agent with access to multi-agent orchestration tends to use it. Every task starts to look like a reason for parallel research, a delegated build, and a verification fan-out, even when the right move is a direct answer or a ten-line edit. The cost does not show up as a failure; it shows up as tokens, time, and review load spent on paths that a moment of triage would have ruled out.
The measured case behind this doc: one run that defaulted to the heaviest workflow used about 11.75M tokens across 317 agents and produced no diff. Research and verification accounted for 94% of the agents and 86% of the output. Picking the right path, which is usually a leaner one, is the largest cost lever in the system.
The same habit shows up in smaller choices: polling by hand instead of scheduling a check, reading twenty files inline instead of asking one scoped subagent, or asking the human what a memory store already knows.
The Pattern
Put a near-free gate in the main loop before any non-trivial task. The gate does not spawn a subagent to classify the work; classifying with a subagent costs more than most mistakes it would prevent. It asks two questions, in order, and the human picks the answer.
Question 1: Which stage?
Match the task to the discipline that fits where it is in its life. Work that is already specified, or is not engineering work, matches nothing and goes straight to the engine question.
| Situation | Discipline |
|---|---|
| Fuzzy idea | An interview that grills the plan |
| Design question that needs something runnable | A throwaway prototype |
| Multi-session build | A spec, then agent-ready tickets |
| Something broken, failing, or slow | A diagnosis loop |
| Concrete behavior to build test-first | Test-driven development |
| Module shape, or where a seam goes | Module design |
| Fuzzy terminology, or a decision worth keeping | Domain modeling and a decision record |
| First-principles derivation, strategy, or red-team | A stateless specialist oracle query |
| A merge, rebase, or cherry-pick stopped | Conflict resolution from hunks, not full files |
Question 2: Which engine?
| Signal in the task | Engine |
|---|---|
| A question or conversation, no tools needed | just-answer |
| Hard math/physics derivation, mechanism design, or adversarial critique | stateless oracle |
| Multi-source research, no code change | research |
| Needs read-only investigation, then a plan the human approves | plan first |
| Well-specified single-surface change, a small ticket | direct build |
| Multi-file build across disjoint surfaces | delegated build |
| Many independent workers across repos, the browser, or workspace ops | native swarm |
| A finished diff | review |
A stateless oracle query invokes a deep-reasoning specialist model in a zero-tool, single-turn window with only the relevant context slices attached. Stripping tool and MCP schemas plus compliance boilerplate avoids re-billing 100k+ context tokens on every shell call and keeps the specialist focused on exact derivations, variable bounds, and falsifiable tests rather than hedging. Use a council instead when independent disagreement across providers is worth the extra cost.
A delegated build isolates the implementer in a fresh context and hands the finished diff to separate verifier contexts that never saw the implementer’s reasoning, with a stateless adversarial oracle available on demand for high-stakes forks. By default this stays inside one model family (for example, an isolated same-vendor workflow); cross-vendor delegation to Codex over a supervised channel remains available as an explicit opt-in when second-vendor review is requested. Any client can run the gate; the question is the same across clients, only the invocation syntax differs.
A native swarm hands wide, shallow work to a client whose coordinator posts tasks to a shared board and whose workers claim and report on them. It fits cross-repository sweeps, status checks, cleanups, browser work, and workspace or cloud-console operations. Workers that edit get their own worktrees or run serially, and a worker that finds deep single-repository engineering hands it back to the primary builder as a delegated build. See Native Swarms.
The engine split
The engine table answers “what kind of work is this”; the engine split answers “which client runs that kind”. It is set from usage data, not preference, and revisited when the data moves. The current split is two primaries and one standby:
| Lane | Client |
|---|---|
| Deep single-repo builds, orchestration, delegated builds | Primary builder |
| First-principles derivation, strategy, adversarial red-team | Stateless oracle (same vendor as the builder) |
| Native swarms, cross-repo ops, browser, workspace and cloud | Swarm client |
| Cross-vendor verification and the council’s outside seat | Second vendor, on request |
The split moved once already, and the data moved it. Two days after the second vendor became opt-in its daily session count fell to zero and stayed there; over the following two days the swarm client ran 54 conversations, and 22 of its 56 most recent ones used the native swarm board. The concrete clients behind each lane are in the README’s dated stack block.
The presentation
The gate shows the top two or three candidate paths, ranked, with the recommendation first. Each carries a one-line reason it fits and a rough cost. A candidate can be a stage discipline, an engine, or one followed by the other. One option is always present: print the command, don’t run it, which shows the exact invocation for the chosen path and stops so the human can run it themselves. In a client with a structured question UI the options are selectable; otherwise they are a numbered list.
The heavy path never runs without the human’s pick. When two paths are close, the gate recommends the leaner one and says why.
Flow rules
- Keep the interview, the spec, and the tickets in one unbroken context window, so the tickets build on the conversation and not on a summary of it.
- Implement each ticket from a fresh context, working from the ticket alone.
- Tickets produced by the spec stage are already agent-ready. Hand each one straight to a build engine with its full text (identifier, acceptance criteria, allowed paths, verification command). Do not re-spec or re-triage it.
- A question that conversation cannot settle goes to a prototype, and the answer comes back to the thread.
Phase Boundaries
A phase is a chunk of work inside a session: the interview, the build, the QA. Decide what to do with the context at the gap between two phases, never mid-phase. Ask these in order; the first yes wins.
- Continue. Does the next phase need this one verbatim, or does it still fit in the window? Continuing costs nothing and loses nothing, so rule it out first. Interview to build is the standard yes.
- Clear. Is everything here disposable for what comes next? Clearing is the cheapest move, but it is one-way: the reasons behind the work go with it.
- Handoff. Is the work traveling to the other engine, another repo, or a later session? Write a handoff to the memory adapter and a seed for the next session. See Handoffs and Continuity.
- Subagent. Is the next task scoped tightly enough to run unattended? Give it its own window and take back a report. Automated review is the standard case.
- Compact. Otherwise compact, with an instruction that names what the next phase needs. It is the fallback, not the first reach: every earlier question is cheaper or more precise.
Clearing and compacting belong to the human. The agent recommends the move and stops; it runs a handoff or a subagent itself.
Reach For / Not
Beyond the gate, a short table of defaults covers the situations where habit picks the wrong tool. It was derived from an audit of actual agent sessions, not written in advance.
| Situation | Reach for | Not |
|---|---|---|
| Recurring check while working | A session-scoped loop | Polling by hand |
| Recurring job, no live steering | A scheduled routine | Doing it when remembered |
| Hard derivation or red-team | A stateless zero-tool oracle | Running a 2x model on bash |
| Answer spread across many files | An explore subagent | Reading them all inline |
| Build with independent parts | An isolated delegated build | One long serial session |
| Fan-out across repos or systems | A native swarm | A hand-built worker bus |
| Parallel agents that edit files | Separate worktrees, or serialize | Two writers, one tree |
| Costly-if-wrong decision | A council | One model’s opinion |
| A branch is done | Code review, then behavior check | Ad hoc checking |
| Cleanup PR about to open | A simplification pass | The first working version |
| Session ending with open work | A handoff, one next action | A quiet trail-off |
| Resuming after a gap | One anchor noun up front | A bare “what’s next” |
| Where did this leave off? | Query the memory adapter first | Human as memory bus |
| Has this turn finished? | Ask the runner by turn id | Reading timestamps or logs |
Hard rules
- Environment-visible claims require observation. A claim about what a screen, terminal, UI, or IDE shows needs a screenshot or an equivalent check before “done”. This is the one verification class with a record of false successes.
- Ask the system that owns the state. Continuity lives in the memory adapter; query it before claiming ignorance. Live execution lives in the runner; query it with the exact task or turn id. Memory activity is supporting evidence, not a completion or health signal. When implementation finishes, track the reviewers instead.
- End substantial sessions with a breadcrumb. A handoff with the branch, the dirty state, and the next useful action. A resume anchored on a handoff starts quickly; a resume that has to reconstruct the state from git history does not.
- Loop or schedule, never babysit. A loop recurs while the human is working and ends with the session. A schedule recurs whether or not anyone is there. Polling by hand is neither.
Retirement cadence
The table is re-audited on a cadence. A tool that gets a written trigger rule and still has zero uses two weeks later has either the wrong trigger or no remaining job. Fix the trigger or take the tool off the active surface. A row nobody uses is noise that every agent still has to read.
An engine change starts the clock too. The cross-vendor engine went opt-in on 2026-11-16, so the tools built mainly to drive it joined an existing watch item on a list due for review on 2026-11-30: the multi-project fleet, the shell-supervised worker bus behind supervised delegation, and a launcher that sprays queued tasks into parallel sessions. The usage data made the call early, on 2026-11-21: the fleet, the leanest cross-vendor build skill, and the spray launcher had zero real uses since the switch and were archived as reference. The worker bus stayed, because it is the only transport for the opt-in path and zero use under an opt-in rule is the rule working, not a dead tool. The cross-vendor council seat stays regardless. Count real invocations, not mentions: skill lists in system prompts make every tool look busy to a naive grep.
Work Modes
Triage picks the path; the work mode picks the ceremony around it. There are three, selected per task and carried into handoffs, compaction summaries, and delegate prompts.
- Prototype (the default): work autonomously through the smallest useful end-to-end slice, make routine reversible decisions without asking, verify changed behavior through its real user path, and give progress updates at milestones. No extra human checkpoints.
- SDLC: make the plan and acceptance criteria reviewable before implementation, implement in verifiable slices, have a fresh reviewer assess the actual diff, then present the result for a delivery checkpoint. A general wish to move fast is not approval of an unseen result.
- Explore: keep code repositories read-only while synthesizing from first principles (physics,
strategy, architecture). Parameterize unmeasured inputs explicitly with bounds and falsifiable
bench tests rather than hedging or scaffolding unasked repos, services, or dashboards. Distill
conclusions into durable notes and decision records, and switch to
prototypeorsdlconly when an idea is explicitly promoted to a build.
Anti-rabbit-hole gate and queue backpressure
Two guardrails keep autonomous momentum from turning into unreviewed inventory:
- Anti-rabbit-hole gate. When a side-quest or new tool idea surfaces mid-task, present a two-option gate (park to the backlog and finish the current objective first, or promote to an active slice now) instead of immediately building the tangent.
- Queue backpressure. Unattended background pipelines carry an explicit ready-backlog ceiling. When prepared items awaiting human review or submission reach the ceiling, background generation pauses automatically while high-priority inbound responses and explicit human picks stay live.
None of the modes grant permissions, waive required checks, or relax the shared operating policy. The fleet’s PLAN mode is the same idea as the SDLC plan gate, applied per project; see Fleet Execution.
How To Apply It
Run the gate before any task that might reach for a multi-agent build, and before any task the human asks “what’s the best way to do this?” about. Keep the gate in the main loop. Present ranked options with the print-only option included and wait for the pick.
Write the stage and engine tables in terms of the disciplines and engines the installed clients actually provide, and keep one table for every client rather than one per client. Start the Reach For / Not table from an audit of real sessions, not from a wish list, and put a two-week retirement check on the calendar when a row is added: if a tool or skill gets zero uses two weeks after receiving an explicit trigger rule, fix the trigger or take it off the active surface.
State the work mode once when it changes, and pass it explicitly to every delegate.
Failure Modes
A gate that spawns a classifier subagent costs more than the mistakes it prevents. A gate that runs the heavy path without a pick is not a gate. Re-triaging tickets that are already agent-ready repeats work and drifts from the spec. Compacting as the first reach, instead of the last, throws away context that continuing or a handoff would have kept. A playbook written from intuition instead of usage fills up with rows that never fire, and without a retirement cadence it only grows. A work mode treated as a permission switch ends up waiving a check it was never allowed to touch.
Related
- Supervised Delegation: the channel a delegated build runs over.
- Council Review: the path for decisions that are costly if wrong.
- Handoffs and Continuity: what a phase-boundary handoff writes.
- Native Swarms: board-coordinated fan-out and the isolation rule.
isolated-workflow: the default delegated build.- One Policy, Three Clients: the shared rules every client triages under.
- Fleet Execution: PLAN, DO, and FULL_AUTO across several projects.
- Codex from Claude: the delegated-build workflow.