TOAP: token optimized agent protocol
PDF ↗Trilochan sharma
A measurement-first look at how multi-agent LLM systems should share context. Across 33 real Claude generations, reference-passing (TOAP) and a competent summarizing orchestrator both cut tokens with zero accuracy loss — but summarization actually wins on raw token savings. TOAP earns its place anyway: it's lossless (8/8 vs. 6/8 when a downstream task needs a fact the summary dropped, replicated on two open non-Claude models) and it blocks 40/40 prompt-injection attempts via a capability lattice with zero false positives. A separate KV-cache transfer experiment across seven open models shows up to ~180x prefill speedup, gated by attention architecture.
multi-agent systemsLLM agent communicationcontext engineeringtoken optimizationKV cache reuseprompt injection defense