← All explainers
Explainer

Subagent: One Agent Assigns the Task, Another Returns the Result

4 min read Reviewed
A large machine at a desk sends a card marked 'Task' through a tube to a smaller machine on its own table, beside a pile of papers. A card marked 'Result' comes back toward the desk, where another 'Task' and 'Result' card lie.

Key takeaways

  • A subagent is an AI agent that another agent delegates a specific task to. It does the task and returns a result to the main agent, which keeps coordinating.
  • A subagent can do the long reading so the main conversation doesn't hold it. What its result leaves out may need looking up again.
  • Subagents use tokens of their own, and coordinating them takes time. They fit tasks with a clear boundary and a result that can be checked on its own.
  • Our recommendation: start with a single agent doing the whole task, and run a side-by-side test before relying on delegation.

A task handed over, a result handed back

An AI agent is software that uses an AI model to work through a task, choosing its steps and using tools, such as opening web pages.

A subagent is an AI agent that another agent delegates a specific task to. It carries out that task and returns a result to the main agent, which keeps coordinating the overall task.

Some systems also use the word for an agent that takes over the conversation. Here, it means one that returns a result.

Three shops, three helpers, one answer

Lea asks her AI assistant: “Which of these three online shops has the most generous return policy? By generous I mean the most days to return and free return shipping.” Each shop’s policy runs to many pages.

The main agent writes one task for each shop, such as: “Read Shop B’s return policy. Report the number of days allowed and whether return shipping is free, with the page each comes from.” In this example, each subagent gets its task message plus the standing instructions it was set up with. It doesn’t see Lea’s conversation, though other setups can pass that along too.

A context window is the amount of information a model can work with at once. Each subagent reads its shop’s pages within its own context window, then sends back a short result with page references. The main agent compares the three and answers Lea.

An agent assigns a subagent a task and gets its result. Illustrative example. Lea asks which of three shops gives the most days to return, with free return shipping. A frame labelled Main agent holds three task cards, one for each of Shop A, Shop B and Shop C. An arrow runs from each task card down to its own subagent, under a note that these can work at the same time. Each subagent is a dashed box labelled Subagent A, B or C, with a stack of bars labelled reads pages and, at the bottom, an orange bar labelled Result. An arrow runs from each result down to a second frame, labelled Back in the main agent, which holds three orange rows, Result A, Result B and Result C, each reading days, shipping, page reference, and the line Compares, answers Lea. A note says the dashed box is each subagent's own workspace, its context window, that in this example the pages stay there and short results return to the main agent, and that delegating to just one subagent works too. An agent assigns a subagent a task and gets its result. Illustrative. One request, three tasks. Orange: results sent back to the main agent. Lea: which shop gives the most days to return, with free return shipping? Main agent Task: Shop A Task: Shop B Task: Shop C These can work at the same time: Subagent A reads pages Result Subagent B reads pages Result Subagent C reads pages Result Back in the main agent Result A: days, shipping, page reference Result B: days, shipping, page reference Result C: days, shipping, page reference Compares, answers Lea Dashed box: each subagent's own workspace (its context window). In this example, the pages stay there, and short results return to the main agent. Delegating to just one subagent works too.
One task out to each subagent, one result back to the main agent.

Delegating to a single subagent works too, and subagents can also work one after another. A result can be finished work, too, such as an edited file.

It’s like asking a researcher to look into one question and send back their findings.

What the video shows. The video presents this text in motion, with music and sound effects and no speech.

The video opens on "An agent assigns a subagent a task and gets its result." A card appears with "Lea:" and her question, "Which shop gives the most days to return, with free return shipping?", as the caption reads "Lea asks her AI assistant about three online shops." "Her assistant is an AI agent: software that uses an AI model to work through a task, choosing its steps and using tools." Beside Lea's card, an empty frame labelled "Main agent" draws. "A subagent is an AI agent that another agent, the main agent, delegates a specific task to." "The main agent writes one task for each shop." Three cards type in, one after another, across the top of the frame: "Task: Shop A", "Task: Shop B" and "Task: Shop C". "Each asks for the days allowed and whether return shipping is free, with the page each comes from."

"In this example, each subagent gets its task message plus the standing instructions it was set up with." Below the frame, three dashed boxes enter, one under each task card, labelled "Subagent A", "Subagent B" and "Subagent C", each with an "Instructions" card already inside. An arrow draws down from each task card to its box, and a copy of the task card appears in the box, above the Instructions card. "A context window is the amount of information a model can work with at once." "Own context window" appears under each box's label. "Each subagent chooses its own steps to finish its task." "It reads its shop's pages within its own context window. These can work at the same time." Short bars stack up in all three boxes at the same time, at a different pace and to a different count in each.

"Then it sends back a short result with page references." From each box in turn, an orange arrow rises into the frame, and a result card with an orange edge appears under its task card: "Result A:", "Result B:" and "Result C:", each reading "days, shipping, page reference". The bars stay in the boxes. "The main agent compares the three and answers Lea." The word "days," is outlined in all three result cards, then "shipping,". An arrow leaves the frame for Lea's side, where a card reads "Answer to Lea".

"Lea then asks whether any shop refunds in cash." A second card on Lea's side reads "Lea:" and "Does any shop refund in cash?". "The results don't say, so the main agent can't answer from those results alone." Each result card is outlined in turn, and "Not in the results" appears under the results. "It can open the cited pages, delegate the new question, or, where the tool allows, send the same subagent a follow-up question." "Delegating to a single subagent works too, and subagents can also work one after another." "Each subagent uses tokens of its own, the small chunks of text models process." "Delegation is a good fit when a task has a clear boundary and its result can be checked and used separately." The picture stays still under these four lines. Then everything fades, and the video ends on the opening line and the A-Eye Level logo.

Where delegation helps, and where it gets in the way

In a handoff, another agent takes over the conversation, while a subagent hands back a result. A tool call such as a weather lookup just retrieves information. A subagent chooses its own steps to finish its task, and some systems even start a subagent the same way they start a tool.

If Lea then asks whether any shop refunds in cash, and the results don’t say, the main agent can’t answer from those results alone. It can open the cited pages, delegate the new question, or, where the tool allows, send the same subagent a follow-up question. A subagent can also miss context nobody gave it.

Delegation can keep the main conversation focused and let independent tasks run at once. The main agent’s context window doesn’t grow, but short results can leave more room in it. Each subagent uses tokens of its own, the small chunks of text models process, and one AI tool maker’s documentation says runs with subagents use more tokens than comparable runs with one agent. Assigning, checking and combining the work take time, too.

Delegation is a good fit when a task has a clear boundary and its result can be checked and used separately. When work needs frequent back-and-forth, shared context or changes to the same material, one agent may be simpler. That’s the case when you polish the opening, examples and ending of one talk: all three hang on the same argument.

The researcher comparison has a limit: whether a subagent can pick up its earlier work later depends on the system you’re using.

Three markets, one comparison

A hypothetical 150-person company is weighing three European markets. Its main agent gives three subagents one market each, the same questions on competitors, regulation and demand, and one report format, with sources for important findings.

It then checks important findings against their sources and checks that the reports rest on comparable assumptions, before drafting a recommendation for a person to review. Otherwise, three reports built on different assumptions could be stapled together as if they matched.

Deciding when a task is worth delegating

Our recommendation: start with a single agent doing the whole task, and delegate a part with a clear scope when that pays off. Some tools delegate on their own, and may let you cap or switch off delegation.

To find out whether it pays off, run one typical task twice: once with a single agent, once with delegation. Compare three things: whether the answer was as good or better, how long it took, and the token use your tool reports for each run. Delegation is worth keeping for that kind of task when the answer is at least as good and it saves time or keeps the main conversation clearer, at a token cost you’d accept. What an AI conversation costs starts with what it carries.

Before your team splits the work

  1. What can we delegate, and what has to stay together?
  2. What must the main agent give each subagent, and what must each subagent return?
  3. What would show that the result was worth the time and the token use?

Questions this explainer gets

Is a subagent the same as handing the conversation to another agent?

In this explainer, no. In a handoff, another agent takes over the conversation. A subagent does a task and returns a result to the agent that delegated it. Some systems use the word for both.

Do subagents always run at the same time?

No. Independent tasks can run at once, which can save time, but subagents can also work one after another.