Skip to content

[A2A] CLI Integration (serve, discover, connect, ask, delegate) #334

Closed as not planned

Description

@tamirdresher

Overview

Extend Squad CLI with commands for cross-repo squad interaction: discover, connect, ask, delegate, broadcast.

Reference

New CLI Commands

squad serve

Start A2A server mode

  • Flags: --port (default: auto), --network (opt-in), --registry (local|network)
  • Behavior: Register in discovery, serve A2A endpoints, heartbeat loop

squad discover

List all discovered squads

  • Output: Table with repo, port, status, capabilities
  • Filter: --local, --network, --repo (pattern match)

squad connect [squad-name]

Establish connection to a squad

  • Interactive: Select from discovered squads if name not provided
  • Validation: Check health endpoint, test query
  • Output: Connection details, available capabilities

squad ask [squad-name] [query]

Query another squad

  • Examples: squad ask backend "API versioning strategy"
  • Output: Decision documents, research, or response
  • Flags: --format (text|json), --scope (architecture|security|...)

squad delegate [squad-name] [title]

Delegate a task to another squad

  • Interactive prompt for description, priority
  • Creates issue in target repo via A2A
  • Output: Task ID, tracking link

squad broadcast [message]

Send message to all discovered squads

  • Use cases: Breaking changes, security alerts
  • Output: Delivery status per squad
  • Flags: --scope (local|network)

squad health

Check health of squads

  • Flags: --all (check all discovered), --squad (specific)
  • Output: Status, latency, last seen

User Experience

  • Zero-config for local discovery
  • Intuitive command names
  • Rich terminal output (colors, tables)
  • Error messages with suggestions
  • Progressive disclosure (simple → advanced)

Deliverables

  • CLI command implementations (src/cli/a2a-commands.ts)
  • Interactive prompts (inquirer.js)
  • Terminal output formatting (chalk, cli-table)
  • Help documentation for each command
  • Man pages / --help text
  • Example workflows
  • Integration tests

Success Criteria

  • All commands working end-to-end
  • Help text clear and comprehensive
  • Error handling graceful
  • Performance: Commands respond <1s
  • User testing: 5/5 users complete workflow without docs

Timeline

3 weeks

Activity

  1. 9 remaining items

  2. github-actions commented on Mar 13, 2026

    @github-actions
    Contributor

    📋 Assigned to Flight (Lead)

    Issue: #334 — [A2A] CLI Integration (serve, discover, connect, ask, delegate)

    Flight will pick this up in the next Copilot session.

    For Copilot coding agent: If enabled, this issue will be worked automatically.
    Otherwise, start a Copilot session and say:
    Flight, work on issue #334

  3. github-actions commented on Mar 13, 2026

    @github-actions
    Contributor

    📋 Assigned to EECOM (Core Dev)

    Issue: #334 — [A2A] CLI Integration (serve, discover, connect, ask, delegate)

    EECOM will pick this up in the next Copilot session.

    For Copilot coding agent: If enabled, this issue will be worked automatically.
    Otherwise, start a Copilot session and say:
    EECOM, work on issue #334

  4. deleted a comment from github-actions on Mar 18, 2026
  5. deleted a comment from github-actions on Mar 18, 2026
  6. diberry commented on Mar 31, 2026

    @diberry
    Contributor

    🔄 Ralph status: A2A — CLI integration. Part of #332-#336 suite. No PR. Long-term backlog.

  7. bradygaster commented on Apr 12, 2026

    @bradygaster
    Collaborator

    Part of the shelved A2A initiative. CLI integration for A2A needs careful design — we'll revisit when we're ready to tackle agent-to-agent communication deliberately. Thanks @tamirdresher!

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

    go:needs-researchNeeds investigationpriority:p2Next sprintshelvedParked — revisit when conditions changesquadSquad triage inbox — Lead will assign to a membertype:spikeResearch/investigation — produces a plan, not code

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions