Awesome AI AgentsCommunication Protocols

thu-nics/C2C

⭐ 446 Python repository created 2025-10-03

C2C, released as the Python package Rosetta, implements Cache-to-Cache communication between large language models, from an ICLR 2026 paper by a group at Tsinghua University. The premise is that when one model passes information to another as generated text, the transfer is lossy and slow: internal representations are collapsed into tokens and then re-encoded by the receiver. C2C instead takes the key-value cache of a sharer model, passes it through a trained projector called a Fuser, and injects the result into the cache of a receiver model, so the receiver conditions on the sharer latent state directly. The authors report accuracy gains of 8.5 to 10.5 percent over the individual models and 3.0 to 5.0 percent over text-based communication between the same models, with roughly a twofold latency reduction because no intermediate text has to be generated. The repository provides the model wrapper and generation path, training and evaluation extras, inference examples that download published Fuser weights from a Hugging Face collection for supported model pairs such as Qwen3 0.6B with Qwen2.5 0.5B, an interactive chat script and a Gradio demo that shows side-by-side comparison against the base models. Preliminary multi-sharer support fuses caches from several sharer models into one receiver. Setup is a conda environment with Python 3.10 and an editable install, with optional training and evaluation dependency groups. A hosted demo runs on Hugging Face Spaces. The work is relevant to multi-agent and multi-model systems because it targets the communication channel that such systems normally implement as text messages between models, and it is aimed at researchers and engineers studying model collaboration, ensembling and inference efficiency rather than at application developers looking for a ready framework.

https://github.com/thu-nics/C2C

llmkv-cachemodel-communicationmulti-modelsemantic-communicationinference-efficiencyresearchiclrpytorchpython

Also in Communication Protocols

novuhq/novu

Novu is an open-source communication infrastructure that unifies notification delivery across various channels for both products and AI agents, offering a single API for multi-channel messaging, wo...

google-agentic-commerce/AP2

Agent Payments Protocol (AP2) is a project focused on creating a secure and interoperable protocol for AI-driven payments, providing code samples and demos to facilitate development and integration.

a2aproject/a2a-samples

Official sample repository for the Agent2Agent (A2A) protocol, with runnable agent and host implementations in Python, Go, Java, JavaScript and C# built on the official A2A SDKs.

agent-network-protocol/AgentNetworkProtocol

AgentNetworkProtocol (ANP) is an open-source protocol designed to enable secure, decentralized, and efficient communication and collaboration among intelligent agents, aiming to become the HTTP of the Agentic Web era.

universal-tool-calling-protocol/python-utcp

Python reference implementation of the Universal Tool Calling Protocol, a plugin-based standard that lets agents discover and call existing tools directly over HTTP, SSE, CLI and other transports.

google-agentic-commerce/a2a-x402

Specification and reference libraries for the x402 extension to the Agent-to-Agent protocol, letting one agent charge another for a service through on-chain stablecoin payments in a three-message flow.

a2aproject/a2a-java

a2a-java is the official Java SDK for the Agent2Agent protocol, providing client and server modules that expose agentic Java applications over JSON-RPC, gRPC and REST transports.

a2aproject/a2a-go

Go SDK for the Agent2Agent (A2A) protocol that provides client and server libraries for exposing and consuming agents over gRPC, REST and JSON-RPC, together with a CLI for discovery and messaging.