Skip to content

Proposal: Agent Identity + Handoff extensions for agent-to-agent communication (re: #127, #126) #130

Description

@vystartasv

Problem

#127 asks for "AgentID as the identity layer" and #126 explores agent marketplaces. These point to the same root need: agents need cryptographic identity before they can communicate, delegate, or be discovered.

Currently, agent-protocol defines a REST interface but agents have no way to:

  1. Prove who they are (Identity)
  2. Transfer tasks with context between agents (Handoff)

Proposed Solution

Two protocols from Works With Agents (CC BY 4.0, framework-agnostic):

1. Identity Protocol (L2)

Ed25519 keypairs + signed manifests. Maps directly to the AgentID concept in #127:

agent_a = IdentityProtocol.create_agent("researcher-1")
# Posts to agent-protocol endpoint with signed identity header

2. Handoff Protocol (L4)

Task transfer with complete context and verifiable acceptance:

from works_with_agents import HandoffProtocol
handoff = HandoffProtocol.transfer(
    from_agent="researcher-1",
    to_agent="writer-2",
    task={"query": "Summarize this paper", "context": {...}},
    require_acceptance=True
)

For agent marketplaces (#126): Identity + Trust Score (L3) = discover agents, verify identity, check reputation before delegating.

Reference implementations in 6 languages (single-file, zero deps beyond stdlib):
https://github.com/workswithagents/works-with-agents

Specs: https://workswithagents.dev/specs/identity.md + https://workswithagents.dev/specs/handoff.md

Would extensions to agent-protocol implementing Identity + Handoff be welcome? Happy to open a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions