Skip to content

feat: multi-agent A2A — sessions_list/history/send/spawn tools #8948

@bugmaker2

Description

@bugmaker2

Background

OpenClaw implements Agent-to-Agent (A2A) communication via session tools:

  • sessions_list — discover active sessions and their metadata
  • sessions_history — fetch transcript logs for any session
  • sessions_send — message another session with optional reply-back
  • sessions_spawn — spawn a new sub-agent session with configurable model, workspace

This enables coordination: one agent can delegate to another, check status of other agents, share context between agents.

Hermes Agent has delegate_task for spawning sub-agents, but:

  • No sessions_list to discover active sessions
  • No sessions_history to fetch another session's transcript
  • No sessions_send to message a running agent
  • Sessions are not persistent/addressable by ID

Proposal

Add A2A session tools:

  1. sessions_list: Returns all active sessions with metadata (platform, model, last activity)
  2. sessions_history: Fetch messages from a specific session by ID
  3. sessions_send: Send a message to another active session; receive a reply
  4. sessions_spawn (already exists as delegate_task, but could be enhanced with persistence)

References

  • OpenClaw: docs/concepts/session-tool

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havecomp/agentCore agent loop, run_agent.py, prompt buildertool/delegateSubagent delegationtype/featureNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions