Harnesses for Inference-Time Alignment over Execution Trajectories
Wang, Boyuan, Li, Bochao, Wang, Minghan, Tao, Yuxin, Kong, Fang
–arXiv.org Artificial Intelligence
Large language model agents have demonstrated impressive capabilities in solving long-horizon interactive tasks involving complex software engineering [Anthropic, 2026, OpenAI, 2026a], scientific discovery [Qu et al., 2026, Jin et al., 2025], and autonomous tool use [Zeng et al., 2026, Team et al., 2025]. A key technique behind is harnessing: a scaffolding strategy that injects human priors into the agent's execution process [OpenAI, 2026b, Trivedy, 2026, Anthropic, 2025]. By decomposing long-horizon tasks into structured sub-goals and providing guidance for intermediate decisions, a harness enables agents to complete complex tasks more reliably in an autonomous manner [Karpathy, 2026, Foundation, 2026, Harbor Framework Team, 2026, Browser Use, 2026]. This success suggests a tempting intuition: more elaborate harnesses should lead to better agents. From this view, harness design becomes a problem of adding structure: finer-grained decomposition, more detailed instructions, and tighter execution constraints [Erdogan et al., 2025, Wang et al., 2025, Dang et al., 2025]. Yet this intuition conflicts with a central lesson from the history of AI [Sutton, 2019]: human-designed structure often helps in the short run, but can limit a system's ability to search, adapt, and scale [Yan et al., 2025, Guo et al., 2025, Silver et al., 2017]. This raises a basic question: What should a harness specify, and what should leave for agent to resolve on its own? To answer this question, we theoretically model how harnesses shape the inference-time trajectories of LLM agents. We separate a harness into two components: workflow, which specifies what the agent should achieve at each stage, and guidance, which biases how the agent acts within that stage.
arXiv.org Artificial Intelligence
May-22-2026