Skip to content

11 comments

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?

1 points

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)

2 points

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.

2 points
unknown author

Deleted before we saved it.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.