mech.app

The mech.app newsletter

Agentic AI, minus the noise.

Get practical field notes on AI agents, automation, developer tools and security delivered to your inbox.

No spam. Unsubscribe anytime.

AI Agents

Pilot Protocol: How AI Agents Discover Tools and Each Other Without a Central Registry

A decentralized protocol for agent-to-agent discovery, capability negotiation, and autonomous tool installation. Examining the architecture and trust mo...

Source: news.ycombinator.com
Pilot Protocol: How AI Agents Discover Tools and Each Other Without a Central Registry

Most agent frameworks assume you hardcode tool catalogs or rely on a central registry. Pilot Protocol takes a different approach: agents get network addresses and discover capabilities from each other at runtime. The protocol shipped with 250,000 agents exchanging 2 billion packets per day, many operating without their owners knowing they exist.

This is infrastructure for agent-to-agent communication, not a wrapper around OpenAI function calling. The interesting part is the App Store model where agents autonomously discover, evaluate, and install tools from third-party publishers.

Architecture: Addressing and Discovery

Every agent gets a network address when it installs the protocol (one-line CLI command). The protocol handles three layers:

  • Addressing: Agents become routable endpoints, not just local processes
  • Discovery: Agents query the network for capabilities they need
  • Negotiation: Agents exchange schemas and agree on interaction patterns

The system reports clusters of 10 to 250 agents sharing the same IP, plus individual agents per IP. This suggests both enterprise deployments (multiple agents behind a corporate gateway) and individual installations.

Discovery happens without a central index. When an agent needs a capability, it broadcasts a query or follows referrals from other agents. Publishers list tools in a distributed catalog, and agents pull metadata before deciding to install.

Autonomous Tool Installation

The App Store model is where things get interesting. Agents install tools without human approval:

  1. Agent identifies a capability gap during task execution
  2. Agent queries the network for matching tools
  3. Agent evaluates tool metadata (schema, reputation, cost)
  4. Agent installs and invokes the tool
  5. Agent pays for usage from its own wallet

30,000 tool installs happened in the first two weeks. The protocol reports agents doing “weird stuff” on the network, which likely means emergent behavior: agents discovering tool chains, negotiating with each other, or creating workflows their owners never specified.

Trust and Sandboxing

The trust model has three components:

Sandboxed execution: Tools run in isolated environments with explicit capability grants. An agent can only interact with a tool through the CLI-exposed interface.

Separated wallets: Each agent has its own wallet with spend caps. No human-in-the-loop approval for transactions under the cap. This enables autonomous payments but limits blast radius.

Capability-based access: Tools declare required capabilities upfront. Agents grant or deny based on local policy.

The question from the HN thread is valid: what prevents a malicious tool from advertising capabilities it doesn’t have? The protocol doesn’t appear to have cryptographic capability proofs. Trust likely relies on reputation (which agents installed this tool and didn’t report problems) and post-hoc enforcement (blacklisting bad actors after detection).

Security Boundaries

The sandboxing model creates several boundaries:

BoundaryMechanismFailure Mode
Tool isolationCLI-only interactionTool exploits CLI parsing bugs
Spend limitsPer-day wallet capsAgent installs many cheap tools to drain wallet slowly
Data accessExplicit capability grantsAgent grants overly broad capabilities to complete task
Network trustReputation-based filteringSybil attack floods network with fake positive reviews

The biggest risk is the autonomous installation loop. If an agent can install tools without approval, and tools can request new capabilities, you get privilege escalation by default. The spend cap limits financial damage but doesn’t prevent data exfiltration or resource exhaustion.

Version Negotiation and Schema Evolution

The protocol must handle version skew. Agent A expects tool schema v2, but Agent B only implements v1. Three approaches:

Strict matching: Agent rejects incompatible versions. Simple but brittle. Agents fail tasks because they can’t find compatible tools.

Backward compatibility: Tools maintain multiple schema versions. Increases implementation complexity. Publishers must test against old agent versions indefinitely.

Adapter injection: Protocol provides translation layers between versions. Adds latency and a new failure mode (adapter bugs).

The Show HN post doesn’t specify which approach Pilot uses. Given the “agents do weird stuff” comment, it’s likely permissive (agents attempt to use tools even with version mismatches and handle failures at runtime).

Deployment Shape

The protocol runs as a daemon alongside your agent:

# Installation (one line)
curl -sSL https://pilotprotocol.network/install.sh | sh

# Agent gets an address and starts discovering
pilot start --agent-id my-agent

# Tool publishers register capabilities
pilot publish --tool my-tool --schema tool-schema.json

# Agents query and install autonomously
# (no explicit command, happens during task execution)

The daemon handles:

  • Network communication (2B packets/day across 250k agents)
  • Tool discovery and metadata caching
  • Wallet management and payment routing
  • Capability negotiation and sandboxing

Agents communicate with the daemon over a local socket. The daemon multiplexes connections to other agents and tool publishers.

Observability Gaps

The protocol reports packet volume and install counts but doesn’t expose:

  • Tool invocation traces: Which agent called which tool, with what parameters
  • Failure rates: How often do tool calls fail due to version mismatches or capability denials
  • Cost attribution: Which tools are draining agent wallets
  • Discovery latency: How long does it take an agent to find a suitable tool

Without these metrics, debugging agent behavior is hard. An agent might be slow because it’s searching the network for tools, or because the tools it found are slow, or because it’s retrying failed calls.

The Agentic Economy Claim

The HN thread mentions “the agentic economy is real and it’s coming.” The protocol enables agents to pay each other for services, which is a prerequisite for an agent economy. But several pieces are missing:

  • Pricing discovery: How do agents know if a tool is overpriced?
  • Quality signals: How do agents distinguish good tools from bad ones before installation?
  • Dispute resolution: What happens when a tool takes payment but fails to deliver?

The separated wallet with spend caps is a start, but it’s a defensive mechanism (limit damage) rather than an economic mechanism (optimize value).

Technical Verdict

Use Pilot Protocol when:

  • You’re building multi-agent systems where agents need to discover each other at runtime
  • You want agents to autonomously extend their capabilities without human approval
  • You’re experimenting with agent-to-agent payments and economic interactions
  • You can tolerate agents installing tools you didn’t explicitly approve

Avoid it when:

  • You need deterministic, auditable agent behavior (autonomous tool installation makes this impossible)
  • Your security model requires pre-approval for all tool integrations
  • You’re in a regulated environment where agents must not make financial decisions autonomously
  • You need strong guarantees about data isolation (the sandboxing model is capability-based, not cryptographically enforced)

The protocol is infrastructure for a future where agents operate semi-independently. The risk is that “agents doing weird stuff” becomes “agents doing expensive or dangerous stuff.” The spend cap limits financial exposure, but data leakage and resource exhaustion are harder to cap.