Adapting the Interface, Not the Model: Runtime Harness Adaptation for Deterministic LLM Agents

Tianshi Xu, Huifeng Wen, Meng Li
5/21/2026
35 citations
cs.AI

Official code: Tianshi-Xu/Life-Harness (227 stars, Python, MIT, last commit 2026-10-13).

Abstract

LLM agents are shaped not only by their language models, but also by the runtime harness that mediates observation, tool use, action execution, feedback interpretation, and trajectory control. While existing agent adaptation methods mainly update model parameters, many failures in deterministic, rule-governed domains stem from mismatches at the model--environment interface.

Show full abstract

We propose Life-Harness, a lifecycle-aware runtime harness that improves frozen LLM agents without changing model weights or evaluation environments. Life-Harness evolves from training trajectories by converting recurring interaction failures into reusable interventions across environment contracts, procedural skills, action realization, and trajectory regulation, and remains fixed for evaluation on unseen tasks. We evaluate Life-Harness across eight environments from AgentBench, $τ$-bench, $τ^2$-bench, and AppWorld using 18 open-weight backbones, and further test three frontier models on seven environments. With Qwen3-4B-Instruct, Life-Harness exceeds Meta-Harness and AHE by 28.7 and 7.5 percentage points in mean accuracy across the seven shared environments, respectively, while using 8.5\% and 68.4\% fewer optimization tokens. The evolved harnesses also benefit GPT 5.5, Opus 4.8, and Gemini 3.1 Pro, yielding an average accuracy gain of 3.5 percentage points. Code is available at https://github.com/Tianshi-Xu/Life-Harness.

View on arXivView PDF

Code Implementations(1)

MIT

Offical implementation of "Life-Harness"

22716Python, ShellMay 21, 20261 months agoMIT

Similar Papers

Cite this paper

@article{xu2026adapting,
  title  = {Adapting the Interface, Not the Model: Runtime Harness Adaptation for Deterministic LLM Agents},
  author = {Tianshi Xu and Huifeng Wen and Meng Li},
  year   = {2026},
  eprint = {2605.22166},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.22166v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.22166.svg)](https://codeofpaper.com/paper/2605.22166)

Discussion