Skip to content

Using Subagents

The main Agent delegates part of the work to subagents and runs it. When a subagent called by the main Agent starts, a subagent tab opens to the right of the chat tab, and the tab shows the agent name. Select the tab to see the request passed to that subagent and its response.

Subagents use the model in Sub Model ID under Agent in Settings (Main Model ID if it is not set).

Use subagents when you want them to handle work such as research, separately from the main Agent. Because one call can run several subagents in parallel, you can also use them when you want the work split up and carried out at the same time.

In the chat, make it clear that you want subagents to be used.

Example request:

Use subagents to look into the files related to the login process in parallel, split between the screen side and the server side. Do not change any files.

The main Agent decides from your request whether to call subagents and which agents to call.

When a subagent starts, a subagent tab opens to the right of the chat tab. Select the tab to see that subagent’s request and response. Select the chat tab to return to the conversation with the main Agent.

The following image shows the same agent called twice in parallel in one call. The tabs are split into two, and the second tab has a number at the end.

The same agent called twice in parallel, with two separate subagent tabs to the right of the chat tab and a number at the end of the second tab

  • When several subagents are called in the parallel or sequential form, each subagent gets its own tab. When the same agent appears for the second time or later in the same call, a number is added at the end of the tab.
  • The tab of a finished subagent closes when a later turn ends without using it.
  • Before a subagent runs commands or writes or edits files, the same confirmation as for the main Agent appears.
  • Subagents run in the foreground. Background runs are not supported.