Life-Harness

June 2, 2026 ยท View on GitHub

Life-Harness

Adapting the interface, not the model, for deterministic LLM agents

arXiv Benchmarks Model Backbones Settings Improved Training Free

News

  • 2026/05/24: Released the paper and codebase. The second version of the paper has also been submitted to arXiv, and the code release includes the evolution prompts used to build the harness.

Life-Harness overview

Life-Harness is the code release for "Adapting the Interface, Not the Model: Runtime Harness Adaptation for Deterministic LLM Agents." It targets a practical question: when a frozen LLM agent repeatedly fails in a deterministic environment, can we improve the runtime harness around the agent instead of retraining the model or modifying the environment?

The answer is yes. Life-Harness turns recurring failures into reusable runtime interventions across action realization, environment contracts, trajectory regulation, and procedural skills. The model remains frozen; the benchmark environment remains intact; only the harness interface adapts.

BenchmarksModel backbonesSettings improvedAvg. relative gainTraining-free
718116 / 12688.5%Yes

Why Life-Harness

What changes?What stays fixed?Why it matters
Runtime harness behaviorLLM weightsNo finetuning or model-specific training pipeline
Prompted environment interfaceBenchmark environmentKeeps deterministic evaluation comparable

Results

Across 7 deterministic agent benchmarks and 18 model backbones, Life-Harness improves 116 / 126 model-environment settings, with an 88.5% average relative improvement reported in the paper.

Life-Harness result heatmap

Method

Life-Harness evolves a small set of runtime layers from observed failures, then reuses those layers during evaluation.

Life-Harness method overview

Harness flagPaper layerRuntime role
h2Action Realization LayerHelps convert model decisions into executable environment actions.
h3Environment Contract LayerMakes task and environment constraints explicit at runtime.
h4Trajectory Regulation LayerRegulates multi-step interaction traces to avoid repeated failure patterns.
h5Procedural Skill LayerReuses procedural knowledge distilled from recurring successful recoveries.

When the harness is disabled, these layers are not applied.

Benchmarks

This repository keeps the two benchmark families in separate folders because their environments and dependencies are intentionally different.

SuiteEnvironmentsStart here
AgentBench-style harnessALFWorld, DBBench, OS, WebShopAgentBench/README.md
tau-bench-style harnessAirline, Retail, TelecomTauBench/README.md
Life-harness/
  AgentBench/      # Docker-based AgentBench-style tasks
  TauBench/        # uv-based tau-bench-style tasks
  assets/          # README figures

Quick Start

Clone the repository, then enter the benchmark suite you want to run:

cd Life-harness

# tau-bench-style tasks: Airline, Retail, Telecom
cd TauBench

# AgentBench-style tasks: ALFWorld, DBBench, OS, WebShop
cd ../AgentBench

Each subfolder README contains its own environment setup, evaluation commands, and harness switches. API keys and provider URLs should be configured locally through environment variables or .env files; do not commit them.

Star History

Star History Chart

Citation

If you use this repository, please cite the paper:

@article{xu2026adapting,
  title={Adapting the Interface, Not the Model: Runtime Harness Adaptation for Deterministic LLM Agents},
  author={Xu, Tianshi and Wen, Huifeng and Li, Meng},
  journal={arXiv preprint arXiv:2605.22166},
  year={2026}
}