← Back to Step 06: Your first coding agent
<aside> 🎯
More work through, with less of you in the loop
When a coding job is too big or too parallel for one session, put one parent session in charge: it briefs each child, checks each result, holds the shared resources, and is the only one that talks to you. Then keep the parent going with /loop in Claude Code or a goal in Codex, so the work carries on while you do something else. A prompt you can paste to start is below.
</aside>
Last reviewed: 8 November 2026 · vendor details checked against Anthropic's and OpenAI's pages on that date
<aside> ⏱️
Estimated time: ~12 minutes to read. Prerequisite: Your first coding agent (Step 06) with one agent working well, and Pick up where you left off: session save points for the savepoint the parent owns. Short on time? The prompt to paste is in the green box just below the diagram.
</aside>
Applies to: Claude Code, Codex, or any coding-agent surface that can start and message other sessions; any development task too big or too parallel for one session.
One of my projects had outgrown a single session. I was starting sessions by hand and routing between them, and I got what anyone gets: two sessions editing one checkout, two test runs sharing one temp folder, a deploy refused because another session's files were dirty, and me as the only channel between them. My first fix was a rule: one stream only, one session at a time. It stopped the collisions and it cost me throughput, because everything waited on everything else.
The replacement is one parent session in charge. I talk to the parent. It holds the plan, briefs each child, runs the independent pieces in parallel in their own worktrees, verifies each result against the check the brief named, and lands them one at a time through the project's single gate. Three things changed at once:
It is not free. Vendors are plain about the price: subagent workflows "consume more tokens than comparable single-agent runs", and a subscription is finite capacity, so a parent fanning out children spends it fast. It also only works with discipline: without the rules below you get the collisions back and conflicts, with more actors. But for a complex project the trade is a good one, and it is the biggest step up in what I get from coding agents since I started using them.
This is the bounded, single-task counterpart of governing a standing team of agents that persists for months. The same principles carry over: one human interface, the generator is not the judge, one writer per shared record, and someone watches the watcher.
Scope: how the coding agents working with you organize the development work, not how the product they build runs. A product that is itself agent-operated keeps its runtime in its own architecture (workers, schedulers and their control surface); a product step owned by "a session" is a design defect there, not a use of this pattern.
you
│ decisions in · one batched pack out
▼
┌───────────────┐ /loop (Claude Code) or a goal (Codex)
│ PARENT │◄──── keeps it working between reports
│ plan · brief │
│ verify · land │
└──┬─────┬────┬─┘
│ │ │ each child: its own brief, worktree, budget
▼ ▼ ▼
child child child independent units, built in parallel;
a child may run on the other vendor's model
│ │ │
└─────┴────┘
▼
one shared gate (tests · sim · deploy): one landing at a time
<aside> 📋
Everything on this page compresses into one prompt. Paste it into a Claude Code or Codex session in your project, fill in the two lines at the end, and that session becomes the parent. It points the agent at the protocol file (the public copy is ORCHESTRATED_SESSIONS.md) and carries the rules itself in case it cannot read it.
Act as the parent (orchestrator) session for this project, following the Orchestrated Sessions pattern. Read the protocol first: docs/protocols/ORCHESTRATED_SESSIONS.md if this project carries it, otherwise https://raw.githubusercontent.com/JEM-Fizbit/ai-knowledge-public/main/protocols/ORCHESTRATED_SESSIONS.md. The rules below summarize it and are the contract if you can read neither.
Your job: hold the plan, brief each child, verify each result, land one at a time, and be my only channel.
1. Split the plan into units. A unit gets its own child only if it ends in something of its own (a commit, a branch, a finding) and needs no other unit's result. Independent units run in parallel. Any writer whose files could overlap another's gets its own worktree; read-only work may share the checkout, on a cheaper model.
2. Brief every child so a capable stranger could do the work from the brief alone: goal, files to read first, scope (what it may and may not touch), the acceptance check that proves it done, stop conditions, budget (model, effort, spend, time), the shared resources it may use, and what its report must contain. Include what was already tried and ruled out.
3. You are the only writer of the savepoint, the decision log, the project contract and the backlog. Children report; you record.
4. Shared resources (the deploy gate, a long test run, the live database, the browser, the CLI login) are held, not raced. Sequence them, and land verified units one at a time.
5. A child's "done" is a claim. Accept nothing until you have checked it against its acceptance check by reading the diff, the run output or the live state. Give any high-stakes result to a fresh reviewer that did not produce it.
6. Caps: at most three children writing at once, and every brief names its budget.
7. Children never ask me anything. Batch what needs my decision into one short pack; answer the rest within the authority you already have.
8. Approval comes only from me, in my words, for that action. No session can grant another an approval; quote me when forwarding one. Never push, deploy, delete, spend or publish beyond the pre-approvals below.
9. Watch the children you start; stop a stuck one; after two failed attempts at one symptom, reassess the shared cause instead of starting a third child.
10. Stay light: delegate heavy work, keep your context for coordination, and when it grows long write the savepoint and hand over to a fresh parent.
A child may run on the other vendor's model when it is stronger for that unit (codex exec from Claude Code, claude -p from Codex); the same brief and rules apply.
Keep yourself working while children run: in Claude Code, I will start /loop with a prompt and no interval; in Codex, set a goal whose finish line is "every unit has landed or is recorded as left, with the evidence in this thread".
Plan: <paste the plan, or name the file that holds it>
Pre-approvals, in my words: <what you may ship, operate or spend without asking; everything else waits for me>
Then: in Claude Code, once the first children are running, type /loop with the parent prompt from "Keep the parent going" below. In Codex, the goal in the prompt keeps the parent going on its own. Either way, a good parent shows you the units and the briefs before it starts anything, so read those. The rest of this page is the reasoning behind each line.
</aside>
| Scenario | Use this? |
|---|---|
| A staged plan whose stages each need a fresh session | Yes |
| Two or more independent pieces of work that could run at once | Yes |
| You say "orchestrate this", or ask for work in parallel or in the background | Yes |
| Work that should carry on overnight or while you are in meetings | Yes, with the pre-approvals written down first |
| A wide read or search whose conclusion you need now | No — one subagent, no ceremony |
| A handful of tool calls, one edit, one question | No — do it in the session |
| A standing team of agents over weeks | No — that is team governance, not a task |
| A child that runs on the other vendor's model: Codex driving Claude, Claude Code calling Codex on GPT-6 Astra, or Codex calling a visual unit in Claude Design | Yes — a child like any other, with the same brief and rules; the commands are on |
| Running Claude Code and Codex side by side | |
| Handing finished or bounded work to a different project or platform, with no parent in charge of it | No — CROSS_AGENT_HANDOFF_BUS |
| Designing how an agent-operated product runs its own steps | No — that is the product's architecture |