MedicalHarness: A Controlled Evaluation of LLMs and Agent Harnesses on Medical Tasks

Ziqing Wang, Lili Zhao, Kaize Ding
10/5/2026
cs.CL

Official code: REAL-Lab-NU/MedicalHarness (3 stars, Python, last commit 2026-10-15).

Abstract

LLM agents are increasingly built for medical work and scored on clinical benchmarks. Each such score, however, comes from a model running inside an agent harness, the system that controls the loop between the model and its environment.

Show full abstract

An agent's score is therefore a property of a model--harness pair. For medical agents, how much outcomes change with the harness has rarely been measured. Measuring this change, and explaining it, raises two challenges. First, a harness comparison must change nothing but the harness and be repeated across models and kinds of task. Second, comparing whole harnesses leaves their mechanisms bundled together, so it cannot show when an individual mechanism helps. To address these challenges, we present MedicalHarness, a controlled study of models and agent harnesses on medical tasks. We first build MedicalHarnessBench to evaluate agents on $107$ tasks across four domains that each test a different harness capability. Using this benchmark, we run five open-weight models under five agent harnesses, changing only the harness within a comparison, and analyze both outcomes and execution traces. To study individual mechanisms, we build MH-Lab, a controlled harness that switches off context management, planning or tool exposure one at a time within a shared execution loop. We find that the harness and its interaction with the model account for about a quarter of the outcome variance, and that no single harness is best across models and tasks. Code and data are available at https://github.com/REAL-Lab-NU/MedicalHarness.

View on arXivView PDF

Code Implementations(1)

MedicalHarness: A Controlled Evaluation of LLMs and Agent Harnesses on Medical Tasks

30PythonSep 2, 20261 months ago

Similar Papers

Cite this paper

@article{wang2026medicalharness,
  title  = {MedicalHarness: A Controlled Evaluation of LLMs and Agent Harnesses on Medical Tasks},
  author = {Ziqing Wang and Lili Zhao and Kaize Ding},
  year   = {2026},
  eprint = {2610.05778},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.05778v1}
}

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/2610.05778.svg)](https://codeofpaper.com/paper/2610.05778)

Discussion