Can Agent Harnesses and Inference Engines Hear Each Other? The HEAR Protocol for Agentic LLM Serving

Jiaqi Zhao, Haodong Chen, Jitai Hao, Jun Yu and colleagues at Harbin Institute of Technology (Shenzhen) propose HEAR, a bidirectional protocol through which an agent harness tells the inference engine about workflow intent and the engine reports cache state and load back.
Ask this paper
Problem. The harness knows workflow dependencies, context lifecycles and which calls come next. The engine knows request queues, KV-cache residency and memory pressure. Current APIs pass neither view to the other side.
Protocol. HEAR ties messages to requests and contexts, groups them into four semantic categories, and defines each message's force and lifecycle. Coordination policies are separate from the protocol, so different scheduling strategies can use the same contract.
Conversational serving. On SCBench, cache-aware coordination raises prefix reuse from 19.2% to 87.6%, cuts median time-to-first-token from 63.1 to 4.6 seconds, and shortens batch completion from 481 to 224 seconds.
Research agents. Choosing an inference mode per agent role gives 1.23x end-to-end speedup on BrowseComp-Plus (5.69 to 4.62 hours) and 2.45x on DeepResearchBench (5.93 to 2.42 hours) with task quality unchanged.
Abstract
LLM agents increasingly execute complex workflows involving multi-turn reasoning, tool use, and parallel agents. Efficient serving requires decisions that span two layers with complementary information: the agent harness understands workflow dependencies, context lifecycles, and execution objectives, whereas the inference engine observes request queues, KV-cache state, resource pressure, and execution capabilities. Existing interfaces do not systematically connect these views, limiting workflow-aware execution. HEAR, a bidirectional Harness--Engine Pairing protocol for agentic LLM serving. HEAR standardizes how the harness communicates workflow intent and execution requirements and how the engine returns runtime state, capabilities, and outcomes. By separating protocol semantics from optimization policies, HEAR supports diverse coordination strategies without changing workflow or model semantics. We instantiate HEAR for online cache-aware runtime coordination and workload-aware execution-mode selection for agent roles. Across four conversational and research-agent benchmarks under memory-constrained, concurrent serving, HEAR achieves a $1.61\times$ batch speedup and reduces median time-to-first-token by $2.23\times$ on SCBench. Mooncake shows that workflow intent and live engine state provide complementary benefits across load regimes. On BrowseComp-Plus and DeepResearchBench, workload-specific configurations yield $1.23\times$ and $2.45\times$ end-to-end speedups, respectively, without observed task-quality degradation. These results establish HEAR as a reusable coordination substrate for efficient agentic LLM serving.