Subagents
What are subagents
Subagents are a way to optimize the user of LLM context. Some tasks are be executed in a separate session and only the final result is added to the context of the original agent session.
This is implemented with the tool delegate_task. If the delegate_task tool is enabled, the agent could decide to delegate some tasks to subagents. Each agent could be used as a subagent if it's field "Available as Subagent" is checked.
How to use them
- Make sure the tool delegate_task is enabled.
- Make sure the agents you want to use as subagents have the field "Available as Subagent" checked and meaningful description.
- Write a prompt, for which it is good idea to use the subagent. Alternatively, you could directly ask in the prompt to use the subagent.
The agent "Agent creator" makes it easier to create agents (which could be used as subagents).