27.7 How today's tools realize it
- Approved by
- Panaversity ·
Reference. How today's products realize the chapter's ideas. Skim it now, and come back when you choose a runtime or port the orchestrator.
In everyday life. You are choosing between three firms to organize a family wedding. At the first, a printed program fixes every step of the day. At the second, a planner decides each next step as the day goes. At the third, nobody has told you which it is. So you ask all three the same questions. Who decides what happens next? When something needs my word, how am I asked? And if I name no limit, what is the limit? In this concept, the firms are three kinds of product, and the questions are the ones your table of steps asks.
What you will learn. You practice this in Lab 27, Task 4.
- How sure is each claim?
- In each product, who decides the next step?
- How is a person asked, and what is the limit if you set none?
- What must stay true on any runtime?
Why it matters. Every product on this page can run several agents on one job. They differ in who decides the next step, in what a helper sees when it starts, and in what stops a run when the builder set nothing. Where a product's pages give no answer, this page says so.
At work. It is Wednesday, May 5, 2027. Your docs/architecture.md has a column for who decides each step of Dave Kowalski's review, and a review's budget is $1.00. Lab 27 ends with a port: the orchestrator again, on the OpenAI Agents SDK. First you need to know which decisions that SDK hands to the model, and which limits it sets when you set none.
How sure is each claim?
The Claude, OpenAI and OpenCode facts are documented. One number comes from an SDK's source. A few lines are ones this book already prints, with their own dates.
| Label | Means |
|---|---|
| Documented | Read on the product owner's own pages on November 30, 2026. A fact with no label is documented |
| From the source | Read on November 30, 2026 in the product's own code repository, because its published page does not give the value |
| From an earlier chapter | A line this book already prints, with that chapter's own date. It was not read again for this page |
| Not yet tested | Not yet tried in a lab run. That is true of every fact on this page today |
In each product, who decides the next step?
In most products here the model can decide to hand work to a helper. In Codex on your own computer, you or a project instruction must ask first. What also differs is what code can keep, and what the helper sees.
Anthropic: the Claude Agent SDK. This is the harness of Chapter 22, and Lab 27's orchestrator runs on it. The model decides the split, among the subagents your code lists, and whether to wait for a report (27.3). How a trace marks a subagent's steps is in 27.6. What a subagent receives is in 26.5.
Anthropic: Claude Code. Claude Code's own table of features has a row named "Who decides what runs next". For subagents the answer is "Claude, turn by turn", and for a workflow it is "The script".1 But that workflow is not this chapter's (27.1). In Claude Code, a dynamic workflow is "a JavaScript script that orchestrates many subagents at once", and "Claude writes the script".1
Anthropic: Claude Managed Agents. This is the hosted runtime of Chapter 23. An agent there can pass work on in three ways. It can use subagents, a dynamic workflow that it writes, or an advisor model that it consults (23.17). Who decides is in 27.5. Each agent runs in its own session thread, which has its own conversation history. All of them share one sandbox, one file system and the session's vault credentials. Vault credentials are each person's tokens, which the platform keeps (23.10). A subagent's thread is also persistent: on a follow-up, it "retains everything from its previous turns".2 The Agent SDK's subagent starts fresh, unless you resume it.
Note
Watch this: multiagent settings in beta. On November 30, 2026, Claude Managed Agents was in beta, behind the header managed-agents-2026-04-01. "Delegation is one level deep, and a session can have at most 25 child threads at a time, idle ones included." Connectors are set for each agent: "each agent definition declares its own servers and tools". Vault credentials "apply to every thread". For a dynamic workflow the page says "set a session budget".2 Check each line again on the day you build.
OpenAI: the Agents SDK. Its page on orchestration opens with this chapter's question: "Which agents run, in what order, and how is the next step decided?" It gives two answers that you can mix: "Allowing the LLM to make decisions" and "Orchestrating via code".3 Inside the first, there are two ways to use a second agent (22.4). With an agent as a tool, "A manager agent keeps control of the conversation and calls specialist agents through Agent.as_tool()."3 That is the match for an orchestrator. With a handoff, the next agent "takes over the conversation, and gets to see the entire previous conversation history", unless you set an input_filter.4 The model sees a handoff as one more tool, with a name such as transfer_to_refund_agent.4 So a handoff with no filter shares the whole context, which is the fault in Lab 27's second broken trace.
OpenAI: the Agents API. The Agents API is OpenAI's hosted service for agents, "in public beta, open to all but still being tested, since September 10, 2026" (from an earlier chapter, 31.13, November 24, 2026). It can run several agents on one job: "Multi-agent lets an agent delegate tasks to subagents. Each subagent has its own context and can work in parallel with the others."5 It is off until you set agent.multi_agent.enabled to true when you create a session. Then "The harness supplies tools to create, message, wait for, and interrupt subagents."5 So the model decides when to use a subagent. Your code decides whether it may, and how many run at once. That number is the setting max_concurrent_subagents: "The default is 6, excluding the coordinator."5 The main agent and its subagents share one file system, because "Creating a subagent does not create another environment."5
OpenAI is retiring Agent Builder, and its own page says "the product is scheduled to shut down on November 30, 2026".6
OpenAI: Codex. In Codex, subagents work in their own threads, inherit the parent's sandbox and return summaries (from an earlier chapter, 12.8, October 30, 2026). Who decides when one starts? On your own computer, you do: "Current local Codex releases spawn agents after a direct request or applicable project or skill instruction."7 A custom agent cannot widen its own access, because custom agents "inherit the parent's permissions, provider, and MCP servers".7 The setting agents.max_concurrent_threads_per_session limits how many subagent threads are open at once. If you leave it unset, "Codex chooses the default", and the page gives no number.7
Open source: OpenCode. OpenCode's page says "Subagents run with fresh context in their own child sessions. They always run in the background".8 That is a helper for coding work. The model decides when to start one. OpenCode shows each subagent's description "to the model choosing which agent to launch".8 Your rules decide which ones it may start: "The parent agent's subagent permissions control which agents it may launch". The subagent then "uses its own configured permissions".8 A subagent's limit is the setting steps, which "sets a positive maximum number of model steps". The page names no default for it.8 To run a subagent safely, write its permission rules first. Every agent starts with a base policy whose first rule allows every action on every resource.9 No page on an open-source product for an orchestrated business worker was read, so this page names none.
How is a person asked, and what is the limit if you set none?
Each product can pause a run for a person. The limits you did not set differ.
| Claude Agent SDK | Claude Managed Agents | OpenAI Agents SDK | |
|---|---|---|---|
| Who decides what runs next | The model, turn by turn, among the subagents your code lists | The model, among the ways you allowed | Your code, or the model: your choice |
| What a helper sees when it starts | Its own prompt and the string the parent passed (26.5) | Its own thread, and the shared sandbox | As a tool: what the manager passes. On a handoff: the whole conversation |
| How a person is asked | Your code answers each tool call (22.5) | A permission policy for each tool (23.8) | The run returns interruptions, and a saved RunState resumes it |
| Turns, if you set none | No limit | The API reference lists no turn limit10 | 10 in TypeScript.11 10 in Python, from the source12 |
| Spend, if you set none | No limit | A budget only when you set one (23.5) | The page on running agents names no spend limit13 |
| How deep, and how many at once | 3 layers and 20 subagents14 | One level, and 25 child threads2 | The pages on orchestration and handoffs name no limit3 |
On the OpenAI Agents SDK, a step that a person decides looks like this: "Tools declare when they need approval, run results surface pending approvals as interruptions, and RunState lets you serialize paused runs and resume them after decisions are made."15 To serialize a run means to save it as data, so it can wait for a person. Past its turn limit, the SDK stops with an error named MaxTurnsExceeded.13 The TypeScript page gives 10 as the default of maxTurns.11 The Python page names the default only as DEFAULT_MAX_TURNS, and the SDK's source sets that name to 10.12 A value read in source code can change with the next release. So Lab 27's port passes max_turns itself and depends on no default.
On Claude Managed Agents, no thread has a turn limit of its own. The API reference for creating a session lists none.10 The stop it gives is the session's budget, and every thread shares it: "there are no per-thread caps".16
Two rows should change a decision. The second tells you whether a helper is isolated when you did nothing. The fourth tells you whether anything stops a loop that never ends.
What must stay true on any runtime?
On every runtime, a stop, a boundary and a check that your code holds are still there when the model decides badly.
27.1 says what each one is. A product's default can change with its next release. A row of docs/architecture.md whose owner you wrote does not.
The operating rule: before you port, read three things on the new runtime's page. They are who decides the next step, what a helper sees, and each default limit. Then set every limit yourself.
Exam note. The developer exam's guide asks you to choose "the orchestrator and subagent decomposition", and "a self-hosted harness or a managed, sandboxed agent runtime". It examines Claude. OpenAI and open source are on this page for practice only.
Do this now. Open the documentation of the agent SDK or coding agent you use most, and give your coding agent this prompt.
Read the page I name about subagents or multiple agents. Make a table with four rows for this product: who decides what runs next, what a helper sees when it starts, how a person is asked before a tool runs, and the limit on turns and on spend when I set none. Quote the page's own sentence for each cell, and write "the page does not say" where it is silent.
Each cell that says "the page does not say" is a limit you set yourself.
Check yourself
Question 1 / 7
0 answered
On the OpenAI Agents SDK, a tool needs a person's approval in the middle of a run. How is the person asked?
Sources
- Orchestrate subagents at scale with dynamic workflows, Claude Code, Anthropic.↑↑2
- Multiagent orchestration, Claude Managed Agents, Anthropic.↑↑2↑3
- Agent orchestration, OpenAI Agents SDK (Python), OpenAI.↑↑2↑3
- Handoffs, OpenAI Agents SDK (Python), OpenAI.↑↑2
- Multi-agent, Agents API, OpenAI.↑↑2↑3↑4
- Agent Builder, OpenAI.↑
- Subagents, ChatGPT and Codex, OpenAI.↑↑2↑3
- Agents, OpenCode.↑↑2↑3↑4
- Permissions, OpenCode.↑
- Create Session, API reference, Claude Managed Agents, Anthropic.↑↑2
- Running agents, OpenAI Agents SDK (TypeScript), OpenAI.↑↑2
- run_config.py, the OpenAI Agents SDK's Python source in its repository, OpenAI.↑↑2
- Running agents, OpenAI Agents SDK (Python), OpenAI.↑↑2
- Subagents in the SDK, Claude Agent SDK, Anthropic.↑
- Human-in-the-loop, OpenAI Agents SDK (Python), OpenAI.↑
- Budgets, Claude Managed Agents, Anthropic.↑
- Owner
- Panaversity