Do sub-agents do the work like run() method being invoked by multiple threads and then finally aggregate the data? Is sub-agent some kind of a different spawn of a copilot session? If you see the process list would it show as many copilot processes as that of the number of sub-agents running?
A subagent is a completely isolated LLM session that does not have the context of the parent session (which is the value)
All the subagent has is the prompt/task given to it by the parent session.
Parent: create report on recent mountain bikes
Subagent 1: use websearch to find recent mountain bikes
Subagent 2: use websearch to find mountain bike reviews.
When subagents are done and return their data they collected the Parent then continues to write the report using those data sources. (This allows rhe parent to focus on writing the report the way you want rather than fill its context with web searches that can be messy)
11 comments
Ok have fun
https://preview.redd.it/8v64sn6pzach1.png?width=640&format=png&auto=webp&s=a29e87a712f1e0b1b8e280c051d3d08626a17e20
where do you live?
And what's the door lock pin
And is P = NP ?
Do sub-agents do the work like run() method being invoked by multiple threads and then finally aggregate the data? Is sub-agent some kind of a different spawn of a copilot session? If you see the process list would it show as many copilot processes as that of the number of sub-agents running?
A subagent is a completely isolated LLM session that does not have the context of the parent session (which is the value)
All the subagent has is the prompt/task given to it by the parent session.
Parent: create report on recent mountain bikes
Subagent 1: use websearch to find recent mountain bikes
Subagent 2: use websearch to find mountain bike reviews.
When subagents are done and return their data they collected the Parent then continues to write the report using those data sources. (This allows rhe parent to focus on writing the report the way you want rather than fill its context with web searches that can be messy)
This is precisely what I use them for.
Is it something where I don't need the additional context but only the results ? Then spawn a sub agent.
Reducing wasting context window is the most important skill for long sessions.
good job
Deleted before we saved it.
Nice video! Well presented.