Skip to main content

Overview

Hexr implements Google’s Agent-to-Agent (A2A) protocol with SPIFFE identity extensions, enabling agents to:
  • Discover other agents via Agent Cards
  • Delegate tasks to specialized agents
  • Fan out work to multiple agents in parallel
  • Pipeline sequential processing across agents

Enable A2A

Add a2a=True to your agent decorator:

Fan-Out Pattern

Send tasks to multiple agents in parallel:

Pipeline Pattern

Chain agents sequentially:

Security

All A2A communication is:
  • mTLS encrypted — using SPIFFE SVIDs
  • Identity verified — each agent’s SPIFFE ID is validated
  • OPA authorized — policies control which agents can communicate
  • Audited — every message is traced via OpenTelemetry
1

Agent A sends task via mTLS

Agent A (coordinator) sends a task to Agent B (researcher) through the Envoy proxy, authenticated with its SPIFFE identity.
2

OPA authorizes the request

Envoy checks with OPA: “Can coordinator communicate with researcher?” OPA returns ALLOW.
3

Task delivered over mTLS

Envoy delivers the task to Agent B over mTLS. Agent B processes it and returns the result.