Protocol v1 (Legacy)

Agent Protocol v1 is the legacy protocol for agent communication. It remains fully supported for backwards compatibility with existing agents.

Documentation

PageDescription
Protocol SpecificationWire protocol and message formats
Events & HooksRequest lifecycle events agents can handle
Building AgentsHow to create your own agent
Transport ProtocolsUnix sockets and gRPC connectivity
Agent RegistryOfficial and community agents

When to Use v1

Use Protocol v1 if you:

  • Have existing agents built on v1
  • Need simple request-response patterns
  • Don’t require connection pooling or cancellation

Migrating to v2

For new deployments, consider Protocol v2 which offers:

  • Connection pooling with load balancing
  • Request cancellation
  • Reverse connections (NAT traversal)
  • Enhanced observability with Prometheus metrics

See the Migration Guide for details on upgrading.