Skip to content

Feature Request: Agent-to-Agent Collaboration #59636

Closed

Description

@FunToHard

What variant of Codex are you using?

codex-cli 0.166.0

What feature would you like to see?

Allow independent agent sessions to communicate and collaborate directly. For example, a Desktop Engineer agent could request a new API endpoint from a Web Engineer agent, exchange requirements, ask clarifying questions, and receive implementation updates without requiring the user to manually relay information between sessions. This would enable more efficient multi-agent workflows, reduce context loss, and improve productivity on cross-functional projects. [Note: This is not about subagent workflows]

Additional information

No response

Activity

  1. added
    enhancement
    on Nov 5, 2026
  2. added
    CLI
    subagent
    on Nov 5, 2026
  3. github-actions commented on Nov 5, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  4. DrPei12 commented on Nov 6, 2026

    @DrPei12

    The distinction from subagents matters here: the Desktop and Web sessions each need to retain their own responsibility and context, rather than one becoming a disposable worker of the other.

    For the API example, I would separate three things:

    • Addressing: a stable recipient/session identity and a request ID, so clarifications and implementation updates return to the same conversation.
    • Delivery: a durable inbox, with an explicit policy for a recipient that is busy, idle, or stopped. Receiving a message should not start two concurrent turns against the same session.
    • Authority: asking another session for an endpoint should not silently expand its file access or approval permissions. The request should carry the API contract and relevant references, rather than require copying both full histories.

    Disclosure: I maintain TeamSwarm. Its current member messaging implementation persists sender/recipient and reply IDs, scopes messages to project branches and work threads, and schedules a continuation when the target thread is no longer active. That is an implementation reference for workspace-managed members, not a way to attach arbitrary existing Codex sessions. Also, a newly scheduled message-response turn is read-only; project changes are routed to the Host for a new assignment. So it does not fully implement the autonomous Desktop/Web workflow requested here.

    Would your intended workflow primarily connect already-running, independently launched Codex sessions, or sessions created together within one project workspace? That distinction seems important for discovery, permissions, and session ownership.

  5. etraut-openai commented on Nov 7, 2026

    @etraut-openai
    Contributor

    (response from codex)

    The Codex TUI already supports sending messages directly between independent threads. For example, in the Desktop Engineer thread, you can ask: “Message the Web Engineer thread and ask what response format the new endpoint will return. Use its reply to implement the desktop client.”

    Codex can find the existing thread by name, send the question, and check for its reply. Each thread keeps its own conversation history, and you don’t have to relay messages between them. This also works in the desktop app.

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

    CLIenhancementsubagent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions