arXiv:2610.06597cs.AIOct 2026

Manuscript Offprint

arXiv:2610.06597

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

Jiaqi Zhao, Haodong Chen, Jitai Hao, Wei Zhao, Jinghao Pang, Qiang Huang, Jun Yu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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. We propose 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× batch speedup and reduces median time-to-first-token by 2.23× 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× and 2.45× end-to-end speedups, respectively, without observed task-quality degradation. These results establish HEAR as a reusable coordination substrate for efficient agentic LLM serving.

Email: {zhaojiaqi, chen.haodong, weizhao, jinghaopang}@stu.hit.edu.cn, jitaihao@outlook.com, huangqiang@hit.edu.cn, yujun@hit.edu.cn

Repository: https://anonymous.4open.science/r/hear-3D1E/.

1 Introduction

LLM agents tackle complex tasks through multi-round planning, tool use, and collaboration [27, 28]. Unlike a single generation, these applications execute workflows of interdependent model calls with evolving contexts. An agent harness orchestrates the workflow, maintains context, and manages tool interactions, whereas an inference engine, such as vLLM [11] or SGLang [34], performs model execution, request batching, and KV-cache management. Thus, end-to-end efficiency depends not only on accelerating individual calls, but also on coordinating requests and reusable state across the workflow.

This coordination is difficult because the information needed for execution decisions is split across the two layers. The harness knows request dependencies, context lifecycles, and application objectives, while the engine observes cache residency, request queues, resource pressure, and supported execution modes [4, 20]. Neither view is sufficient in isolation. As illustrated in Figure 1, an engine unaware of future context use may evict KV state immediately before it is needed, forcing costly re-prefilling. Conversely, a harness unaware of cache residency may schedule a cold request before a cache-reusable one, even when both are ready and can be legally reordered. The same information gap affects execution configuration: selecting an appropriate inference mode requires matching harness-visible workload characteristics and objectives with engine-side efficiency, capacity,

Figure

Figure 1 Motivating example. Without workflow intent, the engine may evict KV state shortly before reuse; without KV-residency feedback, the harness may schedule a cold request before an equivalent cache-resident one.

and quality trade-offs. Effective coordination thus requires a bidirectional interface through which both layers can exchange information and carry out joint decisions.

Prior work demonstrates the value of workflow information and runtime feedback for agentic serving [4, 9, 15, 20, 30, 31]. These efforts reveal a more fundamental systems gap: agentic LLM serving lacks a shared control-plane abstraction that connects workflow semantics with runtime execution state. Consequently, individual optimizations must define their own cross-layer signals, control semantics, and operation lifecycles, tightly coupling policies to particular harnesses and inference engines and limiting their portability and composition.

To address this missing abstraction, we introduce HEAR, a bidirectional Harness-Engine pAiRing protocol for agentic LLM serving. HEAR associates each exchange with the relevant request, context version, or serving instance and organizes communication into four semantic categories. The harness provides Execution Description and Intent and Execution Requirements and Control; the engine returns State and Capabilities and Execution Outcomes. HEAR further defines message force and operation lifecycle by distinguishing description from instruction, preference from requirement, observation from guarantee, and acceptance from completion. Coordination policies determine what information to exchange and what actions to take, whereas HEAR defines what those exchanges mean and how they should be handled. The protocol coordinates how requests from an existing workflow are served without changing the workflow's task-selection logic or the model's semantics.

We demonstrate the generality of HEAR through two complementary policies operating at different timescales. Cache-Aware Runtime Coordination is an online policy that combines harness-provided waiting constraints and future-reuse intent with engine-reported KV residency and queue state to coordinate request ordering and cache retention. Role-specific inference configuration is a coarser-grained policy that maps agent roles and their input-output and concurrency characteristics to engine-supported inference modes using measured efficiency, capacity, and quality profiles. The two policies use the same interaction contract to answer distinct execution questions: which ready request should run next and how requests from each workflow role should be executed.

We systematically evaluate HEAR across four conversational and research-agent benchmarks under memory-constrained, concurrent serving. HEAR exposes complementary information that neither layer can exploit alone. On SCBench [13], waiting-protected cache-aware scheduling achieves a 1.61×1.61\times batch speedup while reducing median and P95 time-to-first-token by 2.23×2.23\times and 1.45×1.45\times, respectively. Mooncake [21] shows that future-reuse intent improves cache retention, but must be conditioned on live engine state to remain beneficial under overload. On BrowseComp-Plus [5] and DeepResearchBench [7], workload-specific role configurations deliver 1.23×1.23\times and 2.45×2.45\times end-to-end speedups, respectively, without observed degradation in task quality.

Together, these results show that harness intent and engine feedback are complementary, workload-dependent signals for execution coordination.

Our contributions are summarized as follows:

• We introduce HEAR, a bidirectional Harness-Engine protocol that associates cross-layer exchanges with requests and contexts, organizes them into four semantic categories, and defines their message force and operation lifecycle.

• We instantiate two execution-level coordination policies, online cache-aware runtime coordination and role-specific inference configuration, showing how a common interaction contract supports both runtime scheduling and cache decisions and coarser-grained execution-mode selection.

• Through controlled evaluations on SCBench, Mooncake, BrowseComp-Plus, and DeepResearchBench, we show that combining harness intent with engine state improves conversational-serving efficiency and yields 1.23×−2.45×1.23 \times -2.45 \times end-to-end speedups for research-agent workflows without observed degradation in task quality.

References (30)