-
Notifications
You must be signed in to change notification settings - Fork 1
FAQ
ATP (Agent Transport Protocol) is a five-layer protocol stack for multi-agent communication. Think of it as the TCP/IP of AI agents — it provides identity, trust, handshaking, context compression, economic routing, and fault tolerance for agent networks.
No. ATP is a networking protocol for agents. It doesn't include an LLM — it provides the infrastructure that allows agents (powered by any LLM) to communicate, trust each other, and collaborate efficiently.
No. ATP is complementary. MCP handles tool discovery, RAG handles knowledge retrieval, and ATP handles multi-agent networking. You can use all three together. See ATP vs MCP vs RAG for a detailed comparison.
Rust. The entire codebase is ~37,000 lines of Rust plus 308 lines of Protobuf definitions. A Python SDK via PyO3 is also available.
The core protocol, SDK, and benchmarks are solid with 280 tests and zero failures. The gRPC transport layer (atp-transport) is still in stub form and needs to be fleshed out for production networked deployment.
ATP's Layer 3 (Semantic Context Differentials) extracts only the semantically relevant portions of context for each task. It chunks the input, generates embeddings, computes cosine similarity against the task embedding, and keeps only chunks above a relevance threshold. For a typical 50KB context, only ~1.8KB is task-relevant. See Layer 3: Context Compression.
Sub-microsecond. The modified Bellman-Ford algorithm runs in O(k² × |W|) where k is the number of capability-matched agents (~12) and |W| = 10 weight vectors. That's ~1,440 iterations — trivial for modern CPUs.
Ed25519 via the ed25519-dalek crate. Agent identities are W3C DID URIs (did:key:z6Mk...). All interactions can be cryptographically signed and verified.
Yes. All benchmarks use seeded random number generators. Running with --seed 42 produces identical results every time.
Trust is a weighted moving average with exponential time decay. Recent interactions count more, complex tasks (coding γ=1.5) influence trust more than simple tasks (data γ=0.8), and Sybil attacks are mitigated by transitive dampening (α=0.5). See Layer 1: Identity and Trust.
- DraftRefine — cheap agent drafts, specialist refines (40-70% savings)
- Cascade — try cheapest first, escalate on low confidence (30-50% savings)
- ParallelMerge — multiple agents process, merge results
- Ensemble — multiple agents vote on result
- Pipeline — sequential processing chain
See Layer 4: Economic Routing.
Add to your Cargo.toml:
[dependencies]
atp-sdk = { git = "https://github.com/rajamohan1950/AgentTransportProtocol" }fn main() {
atp_sdk::benchmark();
}One line. Zero config. That's it.
Yes. Install with maturin:
cd crates/atp-python && maturin develop --release
python -c "import atp; atp.benchmark()"cargo run --release -p atp-bench -- --agents 50 --tasks 10000 --seed 42Four types: "coding", "analysis", "writing", "data". Each accepts many aliases (e.g., "code", "cg", "codegen" all map to coding). Case-insensitive.
Each layer solves a distinct problem: identity (who are you?), handshake (what can you do?), compression (what context do you need?), routing (who should do what?), fault tolerance (what if something breaks?). The ablation benchmarks prove each layer adds measurable value — removing any one degrades results.
TCP/IP and HTTP handle byte streams between machines. Agent communication requires higher-level abstractions: trust, capabilities, semantic context, economic optimization. ATP operates at the agent level, not the byte level.
Yes. Each layer is a separate Rust crate. You can use atp-identity for trust scoring without any other layer, or atp-context for compression standalone.
gRPC with Protobuf. 8 proto files define the full wire format. See gRPC Service.
See Contributing for detailed instructions. High-priority areas: gRPC transport, integration tests, Python SDK expansion.
Dual MIT / Apache 2.0 — choose whichever you prefer.
Rajamohan Jabbala at AlphaForge AI Labs.
ATP Wiki
Getting Started
Architecture
- Architecture Overview
- Layer 1: Identity and Trust
- Layer 2: Capability Handshake
- Layer 3: Context Compression
- Layer 4: Economic Routing
- Layer 5: Fault Tolerance
Reference
More