NAISS
SUPR
Brittle harness? How harness patches for model-related issues in coding agents affect compatibility with other LLMs
Dnr:

NAISS 2026/4-2272

Type:

NAISS Small

Principal Investigator:

Ngoc Sang Vo

Affiliation:

Blekinge tekniska högskola

Start Date:

2026-11-30

End Date:

2027-12-01

Primary Classification:

10205: Software Engineering

Webpage:

Allocation

Abstract

AI coding agents such as Codex CLI, Gemini CLI, Cline and Qwen Code combine a large language model (LLM) with a harness: the code that builds prompts, exposes tools, parses model output and runs the agent loop. Most of these agents let users choose among many models and providers. When a bug is caused by model behaviour, maintainers cannot change the model, so they change the harness. We call such a change a boundary patch. A boundary patch is written and tested for its target models, yet it runs for every model the agent supports, and it may break the agent for other models. This project is an empirical software engineering study of boundary patches in nine actively maintained open-source coding agents (Codex CLI, Gemini CLI, Qwen Code, OpenHands, opencode, Goose, Kilo Code, Cline and Crush). From 71,880 merged pull requests we have identified 8,030 that fix at least one issue. We (RQ1) build a taxonomy of the strategies maintainers use in boundary patches, (RQ2) measure how often each kind of patch is followed by a new issue at the harness-model boundary, (RQ3) replay each final fix against its target models and a panel of other models to see whether it holds, including for patches whose breaks nobody reported, and (RQ4) derive recommendations for contribution and testing policy in agent repositories. The NAISS allocation is needed for RQ3. For each selected patch we build the agent before and after the fix in a container, reconstruct the triggering scenario from the issue as a replay task with an automatic oracle, and run it with a panel of open-weight LLMs (about 20-30B parameters, plus a few larger models) served locally with vLLM on GPUs. Comparing outcomes before and after the patch, for each model, shows which patch strategies are model-specific and which generalise. Running open-weight models on Arrhenius makes the experiments reproducible and affordable at the scale required (thousands of agent runs), which hosted APIs alone do not allow. The results will be published in a software engineering venue together with a replication package. The applicant is a doctoral student at Blekinge Institute of Technology (BTH), Department of Software Engineering. Supervisors: Nauman bin Ali and Wei Ma, Blekinge Institute of Technology.