Skip to content

Subagent messages are sent to main chat instead of subagent chat, breaking flow #2294

Closed

Description

@ak127a

When invoking a subagent, if it performs an action, the resulting message is not sent in the subagent chat. Instead, it appears in the main chat, disrupting the intended conversational flow.

Activity

  1. github-actions commented on Aug 28, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. ak127a commented on Aug 28, 2025

    @ak127a
    Author

    Looks like I should be using a primary agent and not a subagent.. closing the issue

  3. reopened this on Aug 28, 2025
  4. reopened this on Aug 28, 2025
  5. ak127a commented on Aug 28, 2025

    @ak127a
    Author

    Just realised I have a few of these setup and cycling them TAB isn't gonna be easy..
    Any way to directly invoke an agent?

  6. rekram1-node commented on Aug 28, 2025

    @rekram1-node
    Collaborator

    @ak127a just do an "@" reference to agent

    ex: agent is called docs-agent

    type into input:

    @docs-agent please write docs on redis

  7. rekram1-node commented on Aug 28, 2025

    @rekram1-node
    Collaborator

    you can also use the /agents slash command to open a dialog to select your primary agent from instead of tabbing

  8. ak127a commented on Aug 29, 2025

    @ak127a
    Author

    @ only lists the subagents, not the primary agents.

  9. rekram1-node commented on Aug 29, 2025

    @rekram1-node
    Collaborator

    you can make an agent be both if you want to do that, but a primary agent is one that you specifically talk to, a subagent is one that the primary agent can call

  10. rekram1-node commented on Aug 29, 2025

    @rekram1-node
    Collaborator

    you could also write slash commands for your agents and trigger them that way

  11. gimbo commented on Oct 1, 2025

    @gimbo

    ... but a primary agent is one that you specifically talk to, a subagent is one that the primary agent can call

    @rekram1-node — I think the docs aren't clear on this point. In particular, in the Subagents section of the Agents page we have:

    Subagents are specialized assistants that primary agents can invoke for specific tasks. You can also manually invoke them by @ mentioning them in your messages.

    My initial reading of that final sentence was that I could directly interact with a subagent, but AFAICS that's not the case (and your comment suggests that too).

    E.g. if I do this:

    @general What is your name?
    

    I might (from the docs) expect that question to be answered by the general agent (subagent), perhaps replying with its model name, or agent name. In fact, it seems it's handled by whatever primary agent is active. (As it happens, when I did it, it triggered a task for the general agent, but that's different to directly interacting with the subagent, and the primary agent seems to have still been involved in the interaction.)

  12. rekram1-node commented on Oct 1, 2025

    @rekram1-node
    Collaborator

    yes u are correct in your understanding, it does still involve the primary agent we should probably be more clear on that…

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions