Skip to content
Agentic Levels
Start hereLevelsTracksPromptsAbout
Get my levelGet my level

  • Start hereYour first useful task with AI.
  • Level quiz8 questions. No AI needed.
  • Fluency ScoreYour Level and a score, from your own AI.

  • LevelsThe 11 levels, in order.
  • LessonsShort lessons, filter by level.
  • TracksGuided paths by tool, role or goal.
  • Set up your AI tool
  • Starter packFree files that help AI remember.

  • PromptsReady prompts to copy and adapt.
  • ChatGPT vs Claude vs GeminiPick the right one for the job.
  • How-tos
  • ReferenceCommands for Claude Code, Codex, Antigravity.
  • ResourcesHand-picked reading and tools.

  • Your progress
  • Your next moveAn interview that picks your next skill.
  • Your next lessonsThe next lessons at your level.
  • Updates

  • Pricing
  • About
  • FAQ & Feedback
  • Work with us
  • How we handle your data
Sign inPreferences
AboutPricingHow-tosPromptsStarter packMy stackHow we handle your data

© 2026 Fuentes Studio

PrivacyTermsRefundsAccessibilityAI content policyCredits
yourCouncil
Ready to help
✦

What do you want to understand?

Ask anything about what you're learning.

←Codex Fundamentals
  1. Tracks
  2. ›Codex Fundamentals: Module 5
  3. ›Split work with subagents
7

Level 7 · Lesson 10 of 12 · Free

Split work with subagents

Parallel only when the work can stay independent

After this, you'll be able to split a Codex task into independent subagent jobs and keep approvals, sandbox, and merge decisions under control.

Before you start

Complete Add skills, plugins and computer use without bloat first.

The idea

Subagents help when the work is genuinely parallel. A subagent is a helper Codex starts to do one part of the job. You start them by asking in your prompt, and they work in the app, the terminal version and the IDE extension.

Worked example

Before and after

Before: Use subagents to fix the whole school newsletter site at once (parallel edits can collide). After: Use read-only subagents.

Codex can spawn (start) several at once and collect what they find. That's useful for codebase exploration, independent audits, or a multi-step plan with clean boundaries.

Split TestMove through Split work with subagents, check proof, then fix only the weak part.
yesnorun it again
StartBegin with the real task
Split work with subagentsAfter this, you'll be able to split a Codex task into independent subagent jobs and
1Proof visible?Subagents are used only for independent parts
Ready to useDecide whether one task should use subagents and write the subagent briefs or the
Fix the weak partBreaks when parallel edits conflict because the shared contract was missing

Parallel work needs real isolation. A good subagent task has its own files, its own question, or a read-only exploration goal. A bad one edits the same component, changes the same API contract (the agreed shape of how two parts of the code talk), or needs constant coordination.

Several helpers use your plan's allowance faster. On Plus, the strongest model allows only a few messages per five-hour window, so pick the everyday model for long runs.

Subagents still inherit the current sandbox policy. The same permission boundary applies, and an approval prompt can surface from a helper's conversation you aren't looking at, so check which subagent is asking before you say yes.

Ask: Which helper is asking, and what is its task? In the app, each helper has its own thread you can open to see what it is doing. In the terminal version, the prompt shows the helper's label, and you can open its thread first.

To stop a helper that's going wrong, tell Codex in the main chat: Stop the helper that is [doing X], and close its thread. Then check that no new steps appear in that helper's thread. The main chat should also say it stopped.

Codex comes with three built-in helpers named default, worker and explorer. You can also define your own as small settings files (TOML files) in a .codex/agents folder, and ask Codex to write one for you. A setting called max_concurrent_threads_per_session caps how many run at once, and subagents are on by default.

In Claude Code and Antigravity: Claude Code has built-in Explore (read-only), Plan and General-purpose helpers, each with its own separate memory of the conversation, and you add your own as Markdown files in .claude/agents/ (ask Claude to write one). Antigravity's main agent starts subagents that inherit its permissions and can work in their own worktrees, and /swarm adds named workers plus a checker on Pro and Ultra plans.

Start sequential when the contract is still uncertain. Split into parallel work only once a first pass has named the files, the shared types, and the proof.

One finds which files build each page, one finds the tests, and one checks the docs. Bring me their findings, and don't edit anything.

Your own conversation with Codex is the main thread. A reply might start: I'll start three read-only subagents, each with its own question.

Nothing gets edited until I compare their findings. If one asks for approval, I'll tell you which one.

Why it works: the After split the work into independent questions with no shared files. The main thread kept the edits and the final call.

The goal is faster evidence, not more edits happening at once.

Try it (14 min)

Paste this into Codex

Decide whether to use Codex subagents. This time you fill in only two fields; the rest you work out yourself.

Task: [describe task]
Final merge owner: [you, Codex main thread, unknown]

Work out for yourself which parts are independent, which files or agreements they share, which parts can be read-only, and how risky the approvals are.

No task of your own? On the practice folder the honest answer is to stay sequential, because two small files fit in one prompt. Say so, then plan a pretend job big enough to split: a 30-page recipe site to check for broken links, in three read-only batches of ten pages.

Return:
1. Use subagents or stay sequential.
2. Subagent briefs if yes.
3. Shared contract each subagent must respect.
4. Approval rule for inactive subagent prompts.

What a good response looks like

1. Practice folder: stay sequential, since two small files fit in one prompt and helpers would only add cost. The pretend 30-page recipe site: use three read-only helpers. 2. Helper A: check pages 1 to 10 for broken links and list each one. Helper B: pages 11 to 20. Helper C: pages 21 to 30. None edits anything. 3. Shared contract: all three only read, all report in plain words with page names, and none renames or moves a file. 4. Approval rule: if a helper asks to run or write something, I stop, read which helper asked and why, and say no unless it is only a read. The main chat merges the three lists and makes the decision.

Check yours against

  • Subagents are used only for independent parts
  • Shared contracts are named
  • Read-only exploration is preferred when the split is uncertain
  • Approval prompts from subagents are tied back to their source thread
  • Splitting tasks that edit the same file.
  • Letting subagents invent separate API contracts.
  • Approving a command without checking which subagent requested it.
  • Using subagents to avoid making the plan clear.

When this breaks

  • Breaks when parallel edits conflict because the shared contract was missing.
  • Breaks when an inactive subagent approval gets approved without understanding its task.

AI can help with this

Use Codex to help you split a Codex task into independent subagent jobs and keep approvals, sandbox, and merge decisions under control. Start with the exercise prompt and your real input. Ask for one draft, then check it against this proof: Subagents are used only for independent parts. Accept only the version you can verify yourself.

You can now

✓

You can identify independent work

  • ✓You can name shared contracts
  • ✓You can keep approvals tied to the requesting subagent
  • ✓You can keep main-thread ownership of merge decisions

Try it from memory

Pulling this out of your own head now is the part that actually moves it into long-term memory. Re-reading only feels like it does.

Think of a task of yours with two parts that do not depend on each other. Write how you'd split it, the boundary each part gets, and who decides at the end.

One good answer: 'Audit my store theme: one subagent lists slow pages, another lists broken links. Each only reads, no edits. I review both reports in the main thread and decide.' Check yours: if the parts are independent and the main thread keeps the decision, that works.

Key takeaways

Use subagents for independent evidence or isolated work. Stay sequential when the contract is still unclear.

  1. 1Subagents can run specialized work in parallel.
  2. 2They inherit the current sandbox policy.
  3. 3Parallel work needs clear boundaries.
  4. 4Main-thread review still owns the final decision.

Go deeper

  • Codex subagentslearn.chatgpt.com (opens in a new tab) ↗
Up nextSet a goal Codex can finish→

Was this helpful?

Related lessons

Write the handoff between agentsSplit one job into specialist agents
← Back to Codex Fundamentals