🤖 AI Summary
Current tool-augmented large language model agents typically treat the tool-calling harness as a fixed engineering component, decoupled from post-training optimization, thereby limiting adaptability to shifts in tasks or tool environments at deployment time. This work is the first to integrate harness design into the post-training optimization process, introducing a harness-aware post-training strategy. We systematically evaluate its effectiveness under both in-distribution and out-of-distribution settings using an extended version of the ALFWorld environment. Experimental results demonstrate that our approach not only significantly improves in-distribution performance but also maintains robustness under substantial tool-environment distribution shifts. In contrast, poorly designed harnesses lead to severe degradation in post-training performance, underscoring the critical role of co-optimizing the harness alongside the agent.
📝 Abstract
Tool-integrated LLM agents are often wrapped within a harness: the scaffolding that determines which tools are exposed, how they are described, and what auxiliary information accompanies each per-step observation. While agents are routinely post-trained, this scaffolding is typically treated as a fixed engineering detail, with design effort limited to the training-free regime. Moreover, existing post-training algorithms assume a static environment, even though tool environments and tasks often shift upon deployment. To address this gap, we extend $\texttt{ALFWorld}$ (i) to treat the harness as a controllable design dimension and (ii) to support evaluation under task and tool environment shifts. Building on this, we systematically analyze how the harness design influences post-training in both in-distribution and out-of-distribution (OOD) settings. We empirically show that harness-aware post-training not only improves in-distribution performance but also enables agents to robustly adapt to OOD settings. Under a harness with minimal design effort, post-training suffers a drastic performance drop under stronger tool environment shifts, further highlighting the importance of harness-aware post-training under such shifts.