gage is an open-source tool for securely handing off tasks between AI agents, designed to address trust and security issues in agent communication. It achieves this through three core components: signed sealed directory bundles, a user-controlled contact list, and a reading framework.
Purpose: When passing files, prompts, and decisions between AI agents, ensure that the recipient can verify the sender's identity and prevent prompt injection attacks.
Main capabilities:
- Signed directory bundles: Package files, prompts, and decisions into a signed sealed directory that can be transferred through existing channels such as shared folders, git, and email.
- Contact list and confirmation: Users confirm contact keys by comparing four word pairs (a 64-bit fingerprint), recording the confirmation status. Unconfirmed keys can still be used but are clearly marked.
- Reading framework: Before the receiving agent reads anything, it is told that this is data from an identified party and carries no authority; for senders that cannot be attributed, the content is withheld rather than annotated.
- Anti-injection measures: Fence markers using random nonces, key-as-identity, trust computed by the recipient, payload digest verification, and more.
- LAN discovery: Discover each other on the local network without a server via gage lan, limited to sending by confirmed contacts.
- MCP integration: Provide the Model Context Protocol over stdio via gage mcp, allowing agents to call gage tools.
- Viewer: gage ui provides a graphical interface.
Usage:
- After installation, run gage lan on each machine to start LAN discovery.
- Send files using the two words in the contact list.
- Use gage add to add a contact and print the word pairs, and confirm the fingerprint with the other party through another channel.
- Use gage open to open a directory bundle and view the framework and verdict results.
- Agents can call it via MCP, for example claude mcp add gage -- gage mcp.
Applicable scenarios:
- Task handoffs between agents, such as Claude passing a task to Codex.
- Sharing project status among colleagues.
- Agent communication that requires verifying the sender's identity and preventing prompt injection.
Limitations:
- The framework is text and cannot force language models to comply.
- It does not prevent attacks through channels such as web pages, pull requests, issue trackers, email, and package registries.
- It is not a transport protocol, registry, or identity provider, and currently does not support the A2A protocol.
- Key loss may make recovery impossible, exceptnon-enabled encrypted export.
- LAN sending is limited to confirmed contacts.
For more details, please refer to the specification, threat model, and limitations in the project documentation.