copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

Custom Agent is sub agent?

Open showpune opened this issue 2 months ago • 1 comments

Congratulations on the latest version of Copilot CLI the custom agent is supported. I would like to clarify: is the custom agent a sub-agent? Can the custom agent run in a separate context isolated from the main agent?

showpune avatar Oct 29 '25 06:10 showpune

Hey @showpune!

Right now you can use an agent in a top level context using --agent or /agent, or you can use it during inference in what might be comparable to a sub agent in other tools, which have their own context windows. You will know the latter is happening when the custom agent name appears as a top level entry in the timeline, and a new timeline is indented. Only the final message from the LLM is bubbled up to the outer context, for example:

Image

There's still a lot (!) of improvements for us to ship (I'll be creating a bunch of issues this repo for visibility over the next few days) but we wanted to get it out into the preview for people start playing with. Hope it solves some of your issues, and look forward to your feedback.

williammartin avatar Oct 29 '25 10:10 williammartin