Skip to content

Add spawned_id to spawn_agent and allow main agent to resume it #309

Closed

Description

@zikajk

Add smething like spawned_id to subagent which will effectively resume the chat that has been created with another subagent in the session.
And add something like this into description of the spawn_agent tool:
Each agent invocation starts with a fresh context unless you provide spawned_id to resume the same subagent session (which continues with its previous messages and tool outputs). When starting fresh, your prompt should contain a highly detailed task.

To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.

Activity

  1. added theissue type on Feb 16, 2026
  2. changed the issue type fromtoon Feb 16, 2026
  3. ericdallo commented on Feb 23, 2026

    @ericdallo
    Member

    @zikajk that sounds weird to me, why/is that common to want to re-use a subagent in another conversation? we would need to pass all spawned subagents summary + id from other chats as context of the tool description as well right? which sounds dangerous as well.

  4. zikajk commented on Feb 23, 2026

    @zikajk
    MemberAuthor

    @ericdallo Not common :-).
    It’s just that scenario where you ask a question that triggers a second sub-agent, and it ends up re-doing the first one's work instead of picking up where it left off. For example—the explorer runs a huge git diff and finds something. Then you ask again about something specific within that diff. If it will be resumed you might save some tokens and time.
    The idea comes from this - https://code.claude.com/docs/en/sub-agents#resume-subagents

    If we were prioritizing these, I’d give this the lowest points/priority.
    I found it interesting and didn't want to forget it. I’d use it occasionally, but it should only trigger on explicit request, not automatically.

  5. ericdallo commented on Feb 23, 2026

    @ericdallo
    Member

    Ah so it happens in the same chat, got it.
    Ok, makes sense, I think we just need to do some testing and make sure the tool description is not affected negatively

  6. zikajk commented on May 3, 2026

    @zikajk
    MemberAuthor

    Closing this one in favour of discussion here:
    #440

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions