Manuscript Offprint
arXiv:2610.32131Pairing Matters: Performance, Failures, and Efficiency in Lightweight Coding Agents
Lu Zhao Christopher M. Poskitt David Lo
School of Computing and Information Systems, Singapore Management University, Singapore
lu.zhao.2023@engd.smu.edu.sg, {cposkitt, davidlo}@smu.edu.sg
Abstract—Self-hosting coding agents is often necessary for software-engineering teams that must keep proprietary code and development traces within controlled infrastructure. Lightweight, open-weight models make such deployment more feasible by reducing hardware requirements, while strong results on repository-level benchmarks demonstrate their potential for demanding coding tasks. Deploying these models as coding agents requires pairing them with an agent harness, making their joint performance a key deployment consideration. Yet existing leaderboards primarily report fixed harness-model configurations rather than controlled comparisons across alternative pairings. To address this gap, we investigate harness-model interactions through a controlled full-factorial evaluation of six open-source harnesses and three lightweight coding models across 100 SWE-bench Verified tasks, producing 1,800 graded runs under common serving, metering, and grading conditions. For the same model, resolution rates differ by up to 44 percentage points across harnesses, while harness rankings change across models. We apply an evidence-based failure taxonomy to 1,100 unsuccessful runs and find substantial differences in failure patterns across harness-model pairings. A model's dominant failure modes under one harness need not dominate under another. Efficiency is similarly dependent on the pairing: even among model-directed loop harnesses, charged tokens per resolved task vary by more than 20-fold. These findings make harness-model selection a central deployment decision for lightweight coding agents. Strong performance with one harness or model does not guarantee similar results with another. We translate these findings into empirically grounded practitioner guidance for pairing selection, token-efficiency assessment, and trajectory-informed harness engineering, and release the complete experimental records and analysis artifacts.
Index Terms—coding-agent performance, harness-model pairing, token efficiency, trajectory-based failure analysis
I. INTRODUCTION
Confidentiality requirements and the need to retain control over proprietary code motivate local or self-hosted deployment of coding agents [1]-[3]. Lightweight, open-weight models lower the hardware barrier to such deployment, bringing it within reach of more modest computing resources [3]. Their appeal extends beyond deployability: recent coding-specialized models demonstrate substantial capability in repository-level issue resolution. The 24B-parameter Devstral Small reports 53.6% resolution on SWE-bench Verified with OpenHands [4], while Qwen3-Coder-Next reports 70.6–71.3% across three harnesses, remaining competitive with substantially larger models despite activating only 3B of its 80B parameters [5]. These results position lightweight models as credible foundations for self-hosted coding agents, combining deployment flexibility with the capability to tackle demanding software-engineering tasks.
Deploying these models as coding agents requires selecting an accompanying harness, which manages repository context, tool access, execution, validation, and patch submission [6]–[9]. The deployment decision therefore concerns a harness–model pairing, not either component alone. Yet existing evaluations offer limited guidance for this choice. Our audit covered 324 submission records across six tracks of the official August 2026 SWE-bench archive [10]. At least 223 reported results using proprietary models, compared with five reporting results for off-the-shelf models with fewer than 100B total parameters paired with established agent harnesses. These five submissions report fixed harness–model configurations, providing little systematic evidence of how changing the harness affects the same lightweight model's performance. Beyond leaderboards, model reports and harness studies typically evaluate only one or a few fixed harness–model configurations [4]–[9]. Although coding-agent performance is increasingly understood as a property of the joint system, the effects of different pairings remain insufficiently characterized. Existing evidence provides limited insight into how pairing choices affect resolution performance, failure mechanisms, and cost, or how these differences can guide pairing selection and adaptation for specific tasks and resource budgets.
We address this gap through a controlled full-factorial study of three lightweight coding models and six open-source harnesses. We pair Qwen3-Coder-Next [11], GLM-4.7-Flash [12], and Devstral-Small [4] with OpenCode [6], OpenHands [7], mini-SWE-agent [8], SWE-agent [9], AutoCodeRover [13], and Agentless [14]. Each of the 18 pairings attempts the same 100 SWE-bench Verified tasks, yielding 1,800 graded runs under common serving, metering, and grading conditions. This design examines how pairing choice shapes resolution accuracy, resolved-task overlap, failure mechanisms, model-call demand, and charged tokens per resolved task. Figure 1 summarizes the study, and Section II details the selection criteria and experimental procedures.
Our results yield three principal insights for deployment. First, harness selection changes the resolution rate of the same coding model by up to 44 percentage points, and harness rankings do not transfer consistently across models. Second, failure mechanisms are pairing-dependent: a harness can attenuate, amplify, or redirect a model's dominant failure
1 Configure
Agent harnesses
6 open-source harnesses
Different execution-control designs
2 Execute and measure
Coding models
3 lightweight models
Locally served open weights
Model-specific serving configurations
Full-factorial evaluation
6 harnesses × 3 models × 100 tasks
1,800 graded runs
Shared conditions
Task set and serving infrastructure
Completion-token threshold
Official grading procedure
Recorded evidence
Model exchanges and token usage
Execution logs, patches, and outcomes
3 Analyse
RQ1 Pairing performance
Resolution-rate variation
Resolved-task overlap
RQ2 Failure mechanisms
Failure profiles by model,
harness, and pairing
RQ3 Pairing efficiency
Model calls per run
Charged tokens per resolved task
Fig. 1. Study design and evidence flow. (1) Configure: select agent harnesses and coding models. (2) Execute and measure: evaluate all 18 pairings on 100 SWE-bench Verified tasks. (3) Analyse: examine pairing performance (RQ1), failure mechanisms (RQ2), and pairing efficiency (RQ3).
tendency. Third, even among model-directed loop harnesses, charged tokens per resolved task vary by more than 20-fold. Practitioners should therefore avoid selecting or dismissing a model based on one harness, or a harness based on one model, and consider the tasks each pairing resolves. Execution budgets should account for expenditure on unsuccessful runs rather than assume that lightweight models are token-efficient, while pairing-specific failure evidence should guide targeted harness improvements.
These findings emerge from three complementary analyses, organized around the following research questions:
• RQ1: Pairing Performance.
How does task-resolution accuracy vary across harness-model pairings, and how do resolved-task sets overlap across models and harnesses?
• RQ2: Failure Mechanisms.
Which failure mechanisms occur in unsuccessful runs, and how do failure profiles vary across models, harnesses, and pairings?
• RQ3: Pairing Efficiency.
How do harness–model pairings differ in model calls per run and charged tokens per resolved task?
By addressing these questions, we provide an empirical foundation for understanding harness–model pairing behaviour and informing the deployment of lightweight coding agents. Our contributions are fourfold:
• A systematic evaluation of lightweight coding-agent pairings. We conduct a full-factorial evaluation of six open-source harnesses and three lightweight coding-specialized models under common self-hosted serving conditions, characterizing variation in resolution performance, resolved-task coverage, and token efficiency.
• An evidence-based analysis of pairing-specific failures. We develop a taxonomy of five behavioural failure mechanisms and apply it to all 1,100 unsuccessful runs, enabling comparisons of failure profiles across models, harnesses, and individual pairings.
• Empirically grounded guidance for pairing-aware deployment. We recommend testing alternative harnesses before ruling out a model, and alternative models before ruling out a harness, using both resolution rate and the tasks resolved on the intended workload to guide selection. We also recommend budgeting against resolved tasks, assessing the token efficiency of lightweight models empirically, and using pairing-specific failure evidence to prioritize improvements to progress control, fault localization, and validation.
• An auditable experimental record. We publicly release records for all 1,800 graded runs, including benchmark grades, available trajectories, candidate patches, and serving telemetry, together with failure labels, configurations, and analysis scripts.
A. Agent Harness Selection
We identified candidate harnesses through SWE-bench submissions, published harness papers, and GitHub searches. Eligibility required a public, version-pinnable implementation supporting headless execution and model substitution through our locally served OpenAI-compatible endpoint. Where needed, lightweight adapters handled harness invocation and connection to our locally served models while preserving each harness's existing interaction workflow.
Among the harnesses meeting these criteria, we selected six to balance research or practitioner adoption with diversity in execution control. At our July 2026 selection cutoff, their repositories had approximately 2,000 to 200,000 GitHub stars; we use these dated counts as indicators of adoption, not quality. Prior work distinguishes workflow-based repair agents
TABLE I EXECUTION-CONTROL PATTERNS AND WORKFLOWS OF THE EVALUATED AGENT HARNESSES.
| Agent harness | Workflow and evaluated configuration |
|---|---|
| Model-directed interaction loops | |
| OpenCode (OC) [6] | Provides structured tools for shell execution, file reading and editing, and repository search. |
| OpenHands (OH) [7] | Uses CodeAct with command execution and file-editing tools in a persistent sandbox. |
| mini-SWE-agent (mini-SWE) [8] | Uses a bash-only interface: the model generates shell commands and receives their execution output. |
| SWE-agent (SA) [9] | Provides an agent–computer interface for repository inspection, code editing, shell execution, and patch submission. |
| Phased retrieval and repair | |
| AutoCodeRover (ACR) [13] | Uses iterative search over classes and methods followed by patch generation. In our evaluated configuration, generated reproduction scripts can execute, but the dedicated regression-test phase is omitted. |
| Fixed repair pipeline | |
| Agentless (A) [14] | Follows a predefined pipeline of localization, repair, and patch validation, without model-directed command execution. In our evaluation, we retain the localization stages, generate a single candidate patch, and omit internal test-based validation. |
from agents with model-directed execution [15]. Drawing on this distinction and the documented designs of the evaluated systems, we group their execution control into model-directed interaction loops, phased retrieval and repair, and a fixed repair pipeline [13], [14]. The selection prioritizes practically relevant and contrasting designs rather than exhaustive coverage. Table I summarizes their execution-control patterns and workflows.
Model-directed interaction loops. OpenCode [6], OpenHands [7], mini-SWE-agent [8], and SWE-agent [9] follow an action–observation loop: the model selects actions using task instructions and harness-provided context, while the harness executes them and returns observations. This cycle continues until completion or a resource limit is reached. Their tool interfaces and execution environments differ, as summarized in Table I.
Phased retrieval and repair. AutoCodeRover uses structure-aware retrieval followed by patch generation [13]. The model directs searches over program elements, such as classes and methods, while the harness controls phase progression and tool availability. In our evaluated configuration, model-generated reproduction scripts can execute, but the dedicated regression-test phase is omitted.
Fixed repair pipeline. Our evaluated Agentless [14] configuration follows predefined localization stages and generates a single candidate patch. The model supplies stage outputs, while the harness controls progression and termination without a model-directed command interface. Internal test-based patch validation is omitted; the resulting patch is assessed by the common SWE-bench grader.
B. Model Selection
We considered coding-specialized open-weight models released during the year preceding our July 2026 selection. Eligibility required 10–100B total parameters and public checkpoints that could be served on a single H100-class GPU under the evaluated serving configurations. Among models meeting these criteria, we selected three based on reported SWE-bench Verified performance, practitioner adoption indicated by Hugging Face download counts recorded at selection, and diversity in architecture, training emphasis, reasoning mode, and tool-use protocol. The selection prioritizes contrasting designs relevant to self-hosted deployment rather than aiming to represent all eligible models.
Qwen3-Coder-Next (Qwen3-Coder). This sparse mixture-of-experts model has 80B total and approximately 3B active parameters. Its training emphasizes long-horizon coding-agent tasks, tool use, and recovery from execution failures [11].
Devstral-Small (Devstral-S). This dense 24B model was developed by Mistral AI and All Hands AI for agentic software engineering [4]. Its development with the OpenHands maintainers motivates comparing its performance under OpenHands with that under other harnesses.
GLM-4.7-Flash (GLM-4.7-F). This mixture-of-experts model has 30B total and approximately 3B active parameters and supports explicit reasoning [12]. We evaluate it with thinking enabled throughout the study, in contrast to the non-thinking configurations of the other two models.
Together, the three models span dense and sparse architectures and differ in agentic training, reasoning modes, and tool-use protocols. These contrasts allow us to examine harness-model pairing behaviour across different model designs, while keeping conclusions scoped to the evaluated models and configurations.
C. Benchmark Selection
To keep the evaluation of all 18 harness–model pairings within our computational budget, we use a fixed subset of 100
TABLE II DISTRIBUTION OF TASKS: SWE-BENCH VERIFIED VS. OUR SUBSET, BY REPOSITORY AND BY THE OFFICIAL DIFFICULTY ANNOTATION.
| Verified | Ours | |
|---|---|---|
| Repository | ||
| astropy/astropy | 22 | 7 |
| django/django | 231 | 33 |
| matplotlib/matplotlib | 34 | 9 |
| mwaskom/seaborn | 2 | 2 |
| pallets/flask | 1 | 1 |
| psf/requests | 8 | 3 |
| pydata/xarray | 22 | 8 |
| pylint-dev/pylint | 10 | 4 |
| pytest-dev/pytest | 19 | 7 |
| scikit-learn/scikit-learn | 32 | 8 |
| sphinx-doc/sphinx | 44 | 7 |
| sympy/sympy | 75 | 11 |
| Difficulty (official annotation) | ||
| <15 min fix | 194 | 35 |
| 15 min - 1 hour | 261 | 56 |
| 1 - 4 hours | 42 | 9 |
| >4 hours | 3 | 0 |
| Total | 500 | 100 |
real-world software-engineering tasks from the 500-task SWE-bench Verified benchmark [16], [17]. Task selection emphasizes repository coverage while incorporating the benchmark's official difficulty categories. We use fixed-seed sampling: initial draws balance allocations across repositories, while subsequent draws allocate quotas across repository–difficulty strata in proportion to the full benchmark. The resulting subset therefore gives smaller repositories greater representation rather than reproducing the full benchmark's repository proportions. Tasks with grading defects identified during screening or execution were excluded and, where required, replaced using documented seeded procedures. Table II summarizes the final subset's repository and difficulty composition.
D. Experimental Runtime
We developed a common experimental runtime that prepares task repositories, invokes harnesses, serves models, and collects outputs across all 18 pairings. Harnesses run headlessly, with Docker-based environments used for task execution. Available workspaces and run outputs are retained regardless of termination status. Section II-E describes the recorded artifacts, efficiency metrics, and grading procedure.
Execution controls. All pairings shared the task set, serving infrastructure, grading procedure, and a cumulative threshold of 262,144 completion tokens per run. Harness-specific limits and timeouts provided additional execution bounds. Starting from native configurations, we adjusted selected limits in response to prolonged runs during evaluation to keep execution computationally tractable. These additional bounds are not directly equivalent across harnesses; our results therefore characterize the evaluated deployment configurations. The released artifact documents the exact settings.
Model serving and hardware. We serve models sequentially through vLLM, keeping each model's serving configuration fixed across harnesses. All harnesses use an OpenAI-compatible interface, with model requests and token usage recorded through the common metering infrastructure. Prefix caching is enabled, with model-specific parsers configured for tool-calling requests. Inference runs on a single NVIDIA H100 NVL GPU, while harnesses execute on a separate CPU host connected through an SSH tunnel.
E. Grading and Metrics
We use a harness-independent measurement protocol to compare resolution performance, trajectory length, and token expenditure across pairings. The common proxy records model exchanges and token usage reported by the serving engine. Execution logs, run metadata, candidate patches, and benchmark grades provide complementary evidence for outcome assessment and failure analysis.
Run and Trajectory. A run is one attempt by a harness–model pairing on one task. Its trajectory is the sequence of model requests and responses, including tool calls and observations represented in those exchanges. For each run, we associate the available trajectory with its execution logs, run metadata, candidate patch, and benchmark grade. The run metadata records termination status, wall-clock duration, and patch availability. Candidate patches are retained for benchmark grading and failure analysis.
The proxy uses a common recording format across harnesses. Its metering records include prompt and completion token counts and, where available, timestamps, latency, time to first token, cached-token counts, and finish reasons.
Trajectory Length in Iterations. A run's trajectory length is the total number of model calls made during that run. Each model request and its corresponding response constitute one iteration. When harness-initiated retries or sub-agent calls generate separate model calls, each such call is counted as a separate, additional iteration.
Token Cost. We calculate a run's charged-token cost by summing the prompt and completion tokens reported by the serving engine across all model calls.
For execution control, we set a shared generation budget of 256K (262,144) completion tokens per run, accumulated across model calls and excluding prompt tokens. This study-specific threshold accommodates the completion-token usage observed in most runs while providing a common safeguard against excessive generation during prolonged or repetitive execution.
Grading and Resolution. Before grading, we filter candidate patches to remove edits to tests, selected configuration files, and auxiliary files such as documentation and temporary scripts. We use the resolution outcomes reported by the official SWE-bench Docker grader [16]. Runs with missing or empty patches are counted as unsuccessful. A pairing's resolution rate is the proportion of its 100 tasks resolved.
TABLE III TASKS RESOLVED (OF 100) PER HARNESS-MODEL PAIRING.
| Harness | Qwen3-Coder | GLM-4.7-F | Devstral-S |
|---|---|---|---|
| OpenCode | 61 | 51 | 44 |
| OpenHands | 63 | 42 | 54 |
| mini-SWE-agent | 57 | 49 | 22 |
| SWE-agent | 22 | 51 | 31 |
| AutoCodeRover | 19 | 28 | 27 |
| Agentless | 39 | 23 | 17 |
| Any harness (union) | 79 | 62 | 64 |
III. RQ1: PAIRING PERFORMANCE
Table III summarizes resolution performance across the 18 harness-model pairings on our 100-task subset. For each model, the Any harness (union) row counts tasks resolved by at least one of the six harnesses. This combined coverage exceeds that of the strongest individual pairing for all three models. For Qwen3-Coder, the union covers 79 tasks, compared with 63 resolved by OpenHands, a gap of 16 tasks. For GLM-4.7-F, the union covers 62 tasks, while OpenCode and SWE-agent tie at 51, leaving a gap of 11. For Devstral-S, the union covers 64 tasks, compared with 54 resolved by OpenHands, a gap of 10.
Even the best-performing harness for each model therefore leaves a substantial number of tasks unresolved, although the same model resolves them with other harnesses. These results show that performance measured under one harness does not fully capture a model's observed task coverage across harnesses, supporting the joint evaluation of model and harness choices.
Finding 1. For the same model, resolution rates differ by 28–44 percentage points across harnesses. A harness that leads with one model does not necessarily lead with another. Even the best-performing harness for each model resolves 10–16 fewer tasks than the combined coverage across all six harnesses.
Figure 2(a) compares the task sets resolved by each harness across the three models. OpenCode has the largest union, covering 71 tasks, and the largest shared core, with 34 tasks resolved under all three models. OpenHands follows closely, with a union of 70 tasks and a shared core of 33. SWE-agent shows less overlap across models: only 7 tasks in its 62-task union are resolved under all three models, while 17 are resolved exclusively with GLM-4.7-F. Model choice therefore affects not only how many tasks a harness resolves, but also which tasks it resolves.
Figure 2(b) compares task coverage across harnesses for each model. Qwen3-Coder achieves the widest combined coverage, with 79 tasks resolved by at least one harness, but only 5 by all six. GLM-4.7-F covers fewer tasks overall, at 62, yet has the largest shared core, with 15 tasks resolved by every harness. Devstral-S covers 64 tasks, including 16 resolved by exactly one harness, indicating that part of its observed coverage depends on the harness selected. These comparisons distinguish breadth of observed coverage from consistency across harnesses: a larger union does not necessarily imply a larger shared core.
(a) Cross-model task overlap by harness

(b) Cross-harness task overlap by coding model

Fig. 2. Resolved-task overlap across harness-model pairings: (a) overlap across models for each harness; (b) overlap across harnesses for each model.
Taken together, these results show comparatively strong consistency in resolved-task coverage across models for OpenCode and OpenHands, and greater consistency in successful outcomes across harnesses for GLM-4.7-F. These tendencies, however, do not imply universal superiority. A model's relative performance depends on the harness, just as a harness's relative performance depends on the model. Component-level strengths can therefore guide selection, but cannot replace evaluation of the intended pairing.
Finding 2. Models and harnesses have distinct strengths in task coverage and resolved-task overlap, but these do not transfer uniformly across pairings. OpenCode and OpenHands share 34 and 33 resolved tasks across all three models, versus 7 for SWE-agent. Across all six harnesses, GLM-4.7-F shares 15 tasks versus Qwen3-Coder's 5, despite Qwen3-Coder's broader combined coverage of 79 versus 62 tasks. Component-level strengths can guide selection, but the model and harness need to be evaluated jointly.
IV. RQ2: FAILURE MECHANISMS
Failure taxonomy. Prior work examines software-engineering agent trajectories through process-centric analysis of phase transitions and inefficiency patterns [18], execution-error analysis [19], thought-action-result patterns [20], and telemetry-grounded diagnosis [21]. Building on these approaches, we
TABLE IV FAILURE TAXONOMY FOR THE 1,100 UNSUCCESSFUL RUNS. REVIEWERS APPLY THE CRITERIA FROM TOP TO BOTTOM AND ASSIGN THE FIRST MATCHING LABEL. DIAGNOSTIC INDICATORS SUPPORT EVIDENCE ASSESSMENT RATHER THAN DETERMINE LABELS AUTOMATICALLY.
| Failure type | Diagnostic indicators | Assignment criterion |
|---|---|---|
| Exchange breakdown | No model traffic; unanswered or unexecutable tool exchange; truncated final exchange; runtime or sandbox failure; completed patch lost or invalidated by the harness. | An identified, unrecovered interaction or environment failure prevents repair completion or valid submission. |
| No-progress loop or budget exhaustion | Repair remains unfinished when execution stalls, repeats ineffective actions, or reaches a step/token limit. | The run ends before the repair attempt is finalized because execution stalls, repeats ineffective actions, or exhausts its step/token budget. |
| Fault mislocalization | No shared files between the actual submitted patch and the benchmark's gold patch. | The submitted patch modifies none of the files modified by the gold patch. |
| Insufficient validation | Success claim about the submitted repair; absent or inadequate checks of the required behaviour; tests altered to accommodate the patch; relevant contradictory results ignored or misreported. | The agent maintains that the submitted repair is successful, but the checks and results available during the run do not adequately support that claim. |
| Wrong or incomplete fix | Finalized repair attempt; file-level overlap between the submitted and gold patches; failed reference tests. | The repair attempt is finalized, but the submitted patch fails the reference tests. The patch modifies at least one file also changed by the gold patch, and none of the preceding criteria applies. |
develop a common run-level taxonomy for comparing pairings, with an emphasis on harness–model interactions, observable execution behaviour, and repair outcomes. We explicitly distinguish exchange breakdowns, where an unrecovered interaction or environment failure prevents repair completion or valid submission, from failures involving execution progress, fault localization, validation, or repair correctness. The categories therefore capture both how the model and harness interact during execution and how the repair attempt progresses and ultimately ends. Table IV defines five mutually exclusive behavioural failure types. Criteria are applied from top to bottom, and each run receives the first matching label.
We applied this taxonomy to all 1,100 unsuccessful runs through a uniform evidence-based review procedure. Automated scripts extracted diagnostic indicators from proxy records, execution trajectories, and submitted patches. For each run, these indicators were assembled into an evidence pack containing the task description, condensed trajectory, final exchange, and patch text. The indicators supported interpretation of the recorded behaviour rather than determining the label automatically.
Two model reviewers, Claude Sonnet 5 and Claude Haiku 4.5, assessed each run through blinded independent review using the same rubric and the ordered criteria in Table IV. During the initial assessment, each reviewer was blinded to existing labels and the other reviewer's ratings. Cases with insufficient evidence underwent evidence enrichment and reassessment before agreement was calculated.
After evidence enrichment and completion of all ratings, the reviewers agreed on 784 of 1,100 runs (Cohen's ). We used unweighted to account for agreement expected from each reviewer's category frequencies [22]. The 316 disagreements underwent a separate adjudication step using Claude Sonnet 5 in fresh contexts. The adjudicator examined both ratings, their rationales, and the recorded evidence, applying the same ordered criteria rather than automatically accepting either reviewer's label. This step produced a final label for all 316 disputed runs.
As an additional quality-control step, Claude Sonnet 5 re-examined 48 cases with matching reviewer ratings in fresh contexts, checking the agreed labels against the recorded evidence and rubric. Of these, 47 labels were retained and one was reassigned to a different failure category. The released artifact documents the reviewer identifiers, prompts, individual ratings, adjudication decisions, and the spot-check correction.
Model-level failure profiles. Figure 3 summarizes the five failure mechanisms across the 1,100 unsuccessful runs. No-progress loops or budget exhaustion form the largest category, with 386 failures (35.1%), followed by wrong or incomplete fixes with 362 (32.9%). The remaining categories comprise insufficient validation with 141 (12.8%), fault mislocalization with 129 (11.7%), and exchange breakdowns with 82 (7.5%). Figure 3(a) aggregates failures by coding model, Figure 3(b) by agent harness, and Figure 3(c) by individual pairing.
The model-level aggregates reveal differences in both failure frequency and composition.
Qwen3-Coder exhibits the clearest concentration in a single mechanism. No-progress loops or budget exhaustion account for 193 of its 339 unsuccessful runs (57%). Exchange break-
(a) Failure types by coding model

(b) Failure types by harness
(c) Failure types by harness-model pairing


Exchange breakdown
No-progress loop/budget
Fault mislocalization
Insufficient validation
Wrong/incomplete fix
Fig. 3. Distribution of five failure types across 1,100 unsuccessful runs, aggregated by (a) coding model, (b) agent harness, and (c) harness-model pairing. Segment widths indicate failure counts; bold numbers at bar ends indicate total unsuccessful runs.
down, fault mislocalization, and insufficient validation are comparatively uncommon, contributing 16, 19, and 18 failures, respectively. Although Qwen3-Coder achieves the highest overall resolution rate among the evaluated models, more than half of its unsuccessful runs end without a finalized repair attempt because execution stalls, repeats ineffective actions, or exhausts its step or token budget. Its strong aggregate performance therefore coexists with a pronounced progress-related failure tendency.
Devstral-S shows a contrasting pattern. No-progress loops or budget exhaustion account for 86 of its 405 failures (21%), while insufficient validation and fault mislocalization account for 82 (20%) and 77 (19%), respectively. Wrong or incomplete fixes form its largest category, with 141 failures (35%). Compared with Qwen3-Coder, its failure profile is less concentrated in progress-related failures, with comparatively greater shares involving localization and validation.
GLM-4.7-F's largest category is wrong or incomplete fix, with 128 of its 356 failures (36%), followed by no-progress loops or budget exhaustion with 107 (30%). Exchange breakdowns, insufficient validation, and fault mislocalization account for 47 (13%), 41 (12%), and 33 (9%), respectively. The two largest categories together account for 66% of its unsuccessful runs.
Beyond resolution accuracy, these failure profiles suggest different priorities for harness engineering. Qwen3-Coder's concentration in no-progress loops or budget exhaustion suggests investigating stronger progress control. Devstral-S's comparatively prominent fault-mislocalization and insufficient-validation failures suggest investigating support for locating faults and checking repairs. For GLM-4.7-F, wrong or incomplete fixes and loop/budget failures together account for two-thirds of unsuccessful runs, suggesting attention to both repair correctness and execution progress.
Finding 3. Coding models exhibit distinct failure profiles that remain visible across harnesses. Qwen3-Coder is dominated by no-progress loops or budget exhaustion (57%). Devstral-S shows a more dispersed profile spanning wrong or incomplete fixes (35%), loops (21%), insufficient validation (20%), and fault mislocalization (19%). GLM-4.7-F is led by wrong or incomplete fixes (36%) and loops (30%). These model-level tendencies recur across harnesses, although their severity varies by pairing.
Agent harness and pairing effects. Figure 3(b) summarizes each harness's failure profile across models, whereas Figure 3(c) separates the individual pairings. Comparing these pairings shows why an aggregate failure tendency cannot be attributed to either component alone.
With Qwen3-Coder, no-progress loops or budget exhaustion account for 95% of unsuccessful SWE-agent runs, compared with 64% under AutoCodeRover, 51% under OpenCode, and 32% under OpenHands. The same mechanism therefore dominates this model's failures under some harnesses but accounts for a much smaller share under others. Qwen3-
TABLE V PROXY-METERED ITERATIONS AND TOKEN EXPENDITURE BY HARNESS-MODEL PAIRING.
| Harness | Qwen3-Coder | GLM-4.7-F | Devstral-S | |||
|---|---|---|---|---|---|---|
| iters | tok/slv | iters | tok/slv | iters | tok/slv | |
| OpenCode | 110 | 26.3 | 65 | 6.9 | 23 | 6.9 |
| OpenHands | 119 | 15.6 | 57 | 5.1 | 39 | 4.3 |
| mini-SWE-agent | 128 | 9.5 | 92 | 6.2 | 62 | 9.9 |
| SWE-agent | 169 | 87.8 | 147 | 11.0 | 25 | 6.7 |
| AutoCodeRover | 50 | 4.8 | 86 | 1.2 | 20 | 1.1 |
| Agentless | 4 | 0.1 | 4 | 0.2 | 4 | 0.2 |
| Model aggregate | — | 19.8 | — | 6.0 | — | 5.1 |
Notes. iters: median model calls per run, rounded to the nearest integer. tok/slv: total charged tokens (prompt + completion) across successful and unsuccessful runs, divided by resolved tasks, in millions. Model aggregate: total tokens across harnesses divided by the sum of their resolved-task counts; pooled iteration medians are not reported.
Coder's aggregate progress-related failure tendency does not characterize all its pairings equally.
The pattern also changes when the harness is held fixed. Under SWE-agent, the loop/budget share is 95% with Qwen3-Coder, 35% with GLM-4.7-F, and 25% with Devstral-S. AutoCodeRover shows corresponding shares of 64%, 43%, and 11%. Thus, the prominence of loop/budget failures in these harnesses' aggregate profiles depends strongly on which model they are paired with.
This pairing dependence extends beyond loop and budget failures. For Devstral-S, insufficient validation accounts for 41% of Agentless failures, 24% under OpenHands, and 12% under mini-SWE-agent. Yet mini-SWE-agent has a much higher loop/budget share than OpenHands, at 50% versus 7%, and leaves more tasks unresolved, at 78 versus 46. Its lower validation-failure share therefore accompanies a different failure profile, not better overall performance. These results highlight the need to assess the complete pairing's failure profile rather than individual categories in isolation.
Together, these comparisons show that neither a model's nor a harness's aggregate profile fully characterizes the failures of its individual pairings. The specific combination must be examined to determine which mechanisms are most prominent.
Finding 4. Harness-model pairings exhibit distinct failure profiles that are not fully characterized by either component alone. Loop or budget failures range from 3% to 95% across Qwen3-Coder pairings and from 25% to 95% across models paired with SWE-agent; insufficient validation ranges from 4% to 41% across Devstral-S pairings. Pairing can therefore attenuate or amplify a model-level tendency and redistribute failures among mechanisms.
V. RQ3: PAIRING EFFICIENCY
Table V summarizes model-call counts and charged tokens per resolved task for each harness-model pairing. Charged tokens measure token volume, not monetary cost. Pooling tokens and resolved-task counts across harnesses, Devstral-S has the lowest aggregate expenditure at 5.1 million tokens per resolved task, followed by GLM-4.7-F at 6.0 million and Qwen3-Coder at 19.8 million.

Fig. 4. Task resolution and token efficiency across harness-model pairings. Token usage is proxy-metered for the 18 evaluated pairings. Stars denote OpenHands-based frontier references using Claude 4 Sonnet and GPT-5 from the official SWE-bench Verified archive [10], with token counts estimated from public trajectories.
These model-level differences recur across most of the five iterative harnesses. Qwen3-Coder incurs the highest token expenditure per resolved task in four, while Devstral-S has the lowest or joint-lowest expenditure in four at the reported precision. Under SWE-agent, for example, the corresponding values are 87.8 million for Qwen3-Coder, 11.0 million for GLM-4.7-F, and 6.7 million for Devstral-S. The main exception is mini-SWE-agent, where GLM-4.7-F has the lowest expenditure at 6.2 million, followed by Qwen3-Coder at 9.5 million and Devstral-S at 9.9 million.
Model-call counts show a related pattern: Devstral-S has the lowest median under all five iterative harnesses, whereas Qwen3-Coder has the highest under four. However, fewer calls do not necessarily translate into greater token efficiency. Under mini-SWE-agent, Devstral-S has a lower median call count than GLM-4.7-F, at 62 versus 92, but consumes more tokens per resolved task, at 9.9 versus 6.2 million. Token efficiency therefore depends on the volume of tokens exchanged in those calls and the number of tasks ultimately resolved, not simply the number of calls.
Harness choice further changes expenditure within the same model. For Qwen3-Coder, moving from AutoCodeRover to SWE-agent increases median calls from 50 to 169 and tokens per resolved task from 4.8 to 87.8 million. These differences show that recurring model-level tendencies coexist with substantial harness-dependent variation: a model's typical interaction length provides useful context, but the resource requirements of a deployment must be assessed at the pairing level.
Finding 5. Among iterative harnesses, models exhibit a consistent trajectory-length tendency: Devstral-S requires the fewest calls under all five harnesses, whereas Qwen3-Coder requires the most under four. Nevertheless, harness choice changes median calls by 2.6–3.4× and charged tokens per resolved task by 9–18× within the same model. Model-level efficiency tendencies therefore coexist with substantial pairing-specific variation.
Figure 4 places the evaluated pairings alongside two external OpenHands-based frontier references from the official SWE-bench Verified leaderboard archive [10], matched to the same 100 tasks. OpenHands with Claude 4 Sonnet resolves 68 tasks at an estimated 2.8 million tokens per resolved task, while OpenHands with GPT-5 resolves 70 at an estimated 1.0 million. We estimate completion tokens from assistant-message text and tool-call names and arguments, and prompt tokens by replaying preceding content at each assistant turn, using four characters per token. For each reference, tokens per resolved task are calculated by dividing the estimated total across all 100 runs by the number of tasks resolved.
Using these estimates as reference points, we find that 13 of the 18 evaluated lightweight-model pairings require more tokens per resolved task than both frontier references. Long trajectories, large per-call contexts, and expenditure on unsuccessful attempts can all increase this measure. Because frontier token counts are estimated and deployment configurations differ, the comparison is indicative and concerns token efficiency rather than monetary or computational deployment cost.
Finding 6. Among iterative harnesses, charged tokens per resolved task vary nearly 80-fold across pairings, from 1.1 to 87.8 million, and higher expenditure does not consistently yield higher resolution accuracy. Overall, 13 of the 18 evaluated pairings (72%) resolve fewer tasks while consuming more tokens per resolved task than both estimated frontier references. Token efficiency therefore depends on how effectively the complete pairing converts inference into resolved tasks.
VI. Discussion
A. Implications for Coding-Agent Deployment
Drawing on the observed differences across harness–model pairings, we offer empirically grounded guidance for teams selecting and operating self-hosted coding agents and for developers improving these systems.
For application teams selecting a lightweight coding-agent stack: compare alternative harness-model pairings to guide component selection. A model that performs poorly under one harness may perform substantially better under another; conversely, a leading harness does not retain its advantage across all models. Our observed same-model resolution gap of up to 44 percentage points shows how strongly harness choice can affect the assessment of a model. Harnesses can attenuate or amplify model weaknesses, while even strong pairings resolve only partially overlapping task sets. Teams should therefore keep harness alternatives open when selecting a model, and model alternatives open when selecting a harness. Final selection should consider both resolution performance and the tasks resolved on the intended workload. Neither a weak result nor a leading score should be treated as an intrinsic property of either component: the deployment advantage belongs to the evaluated combination of model, harness, and tasks.
For operations teams managing execution budgets: lightweight does not necessarily mean token-efficient. A smaller model's deployment footprint does not determine the inference expenditure needed to resolve a task. Among iterative harnesses, charged tokens per resolved task range from 1.1 to 87.8 million—nearly an 80-fold difference. Repeated attempts, growing context, and unsuccessful runs can consume substantial resources without producing additional resolved tasks. Indeed, 13 of the 18 evaluated pairings consume more tokens per resolved task than both frontier references in Figure 4. Although estimated frontier usage and differing configurations preclude conclusions about monetary or computational cost, this comparison challenges the assumption that smaller models necessarily require fewer tokens to accomplish the same work. Operations teams should budget against resolved tasks, account explicitly for expenditure on failed runs, and test whether larger execution budgets actually yield additional resolutions. More inference should be treated as an investment to justify, not evidence of productive progress.
For coding-agent developers improving harnesses: use pairing-specific failure evidence to prioritize engineering work. Our failure analysis shows that a mechanism prominent in a model's aggregate profile can vary substantially across harnesses. Aggregate resolution rates identify weaker configurations, but pairing-specific trajectories and failure profiles help identify which parts of the workflow warrant investigation. No-progress loops or budget exhaustion suggest examining progress-monitoring and recovery policies. Fault mislocalization points to retrieval and localization support, while insufficient validation motivates checks that exercise the required behaviour. These findings identify potential engineering priorities, not verified remedies. Developers should use the recorded evidence to investigate both model behaviour and harness-model interaction, and evaluate whether targeted changes improve the intended pairing.
B. Threats to Validity
- Internal and Construct Validity: We retain a single final attempt per pairing–task combination, so run-to-run variance cannot be estimated. Although each model's sampling settings are fixed across harnesses, serving and execution variability may still affect outcomes. For each model, coverage unions combine six attempts per task, one under each harness. They therefore neither distinguish harness complementarity from run-to-run variability nor demonstrate an advantage over six attempts with a single harness. Accordingly, we emphasize broad patterns rather than small differences. Harness-specific execution limits and timeouts may also influence resolution, failure profiles, and token expenditure, limiting attribution to harness design alone.
Outcome measurement and failure labelling introduce further limitations. SWE-bench provides reproducible grading but does not assess maintainability or broader patch quality, nor establish correctness beyond the tested behaviour. Failure labelling also involves interpretation, particularly for insufficient validation and wrong or incomplete fixes. Independent model review does not eliminate this uncertainty, which may affect both individual labels and aggregate failure profiles.
- External Validity: Our evaluation covers six open-source harnesses, three self-hosted coding models, and a fixed, stratified 100-task subset of SWE-bench Verified. The reported resolution rates describe this subset rather than estimate full-benchmark performance. Rankings and effect sizes may differ across systems or versions, non-Python projects, task distributions, and activities beyond repository-level issue resolution.
Generalisability also depends on serving conditions. We served all models through vLLM on a single NVIDIA H100 NVL GPU. Different sampling settings, quantization schemes, and context limits may alter resolution performance and failure profiles, while changes in caching, serving engines, or hardware may affect efficiency and outcomes for runs constrained by timeouts. We also evaluated only one completion-token threshold; different thresholds may change the observed results.
VII. RELATED WORK
Coding-agent evaluation and trajectory analysis. Evaluations using SWE-bench [16] and SWE-bench Verified [17], including official submissions [10], model reports [4], and harness studies [9], characterize the performance of selected harness-model configurations. These results establish what the evaluated systems achieve, but do not by themselves reveal how performance changes when either component is replaced. Our full-factorial evaluation makes these comparisons explicit: each model is evaluated across six harnesses, and each harness across three models under common conditions. The resulting differences in accuracy and resolved-task coverage show which component-level strengths persist and which depend on the pairing.
Trajectory studies provide complementary explanations through thought–action–result patterns [20] and repair-process analysis [15]. They identify recurring behaviours and failure mechanisms within the studied configurations. Building on these analytical perspectives, we compare failure profiles across the pairing matrix rather than characterize each system in isolation. Our results show that recognizable model-level failure tendencies can coexist with substantial harness-dependent variation. This extends behavioural analysis from identifying how agents fail to examining how those failures change with the model–harness combination.
Harness adaptation and agent evolution. Automated adaptation studies demonstrate that harness changes can improve performance without replacing the underlying model. Yang et al. [23] show this potential for smaller models on business tasks, while Meta-Harness [24] and Agentic Harness Engineering [25] demonstrate improvements through feedback-guided harness optimization. These findings align with our observation that harness choice materially affects realized model capability. Our contribution is complementary: the controlled pairing matrix reveals where existing harnesses differ in task coverage, failure profiles, and token efficiency. These comparisons provide evidence for prioritizing model-specific harness improvements and inform model–harness co-evolution toward more effective and efficient coding agents.
VIII. Conclusion and Future Work
Our evaluation of 18 harness–model pairings shows that coding-agent performance depends on the pairing rather than either component alone. For the same model, harness choice changes resolution accuracy by up to 44 percentage points; no harness performs best across all models, and even strong pairings differ in which tasks they resolve. Failure mechanisms are similarly pairing-specific: a model's dominant failure tendency can be amplified, attenuated, or redirected by the harness. Efficiency also varies substantially: among iterative configurations using the same model, harness choice changes model calls by 2.6–3.4× and charged tokens per resolved task by 9–18×. These findings caution against treating a weak or leading result as an intrinsic property of a model or harness, or assuming that lightweight models are token-efficient. Practitioners should keep both model and harness alternatives open when selecting for the intended workload, account for expenditure on unsuccessful runs when budgeting for resolved tasks, and use pairing-specific failure evidence to prioritize harness improvements.
Building on this system-level perspective, future work should develop methods for diagnosing harness–model interactions and improving their joint performance. Resolution rates and trajectory analyses show how a coding agent performs, but offer limited guidance on which interactions between model capabilities and harness policies drive success, failure, and token expenditure. A systematic framework could profile both components and use controlled interventions to identify the underlying mechanisms, guiding pairing selection and adaptation for specific tasks and resource budgets. In the longer term, these diagnoses could support a co-evolution loop: adapt the harness or train the model, evaluate the revised pairing, and use the resulting evidence to guide the next change.
DATA AVAILABILITY
We release experimental records and supporting materials for all 1,800 runs, including trajectories, patches, grading outcomes, failure annotations, review and configuration records, token-usage logs, and analysis scripts, through https://github.com/lisazhao-gz/pairing-matters.
REFERENCES
[1] G. Caumartin, Q. Qin, S. Chatragadda, J. Panjrolia, H. Li, and D. E. Costa, “Exploring the potential of Llama models in automated code refinement: A replication study,” in Proc. IEEE Int. Conf. Softw. Anal., Evol. Reeng. (SANER), 2025, pp. 681–692, doi: 10.1109/SANER64311.2025.00070.
[2] A. Biesdorf, E. Seibert, N. Wengatz, B. Carpels, and T. Schoonbaert, "IP-preserving enterprise system modernization via LLM-driven specification extraction and multi-target code generation," in Proc. IEEE/ACM Int. Conf. Autom. Softw. Eng. (ASE), 2026, pp. 4463–4468, Industry Showcase, doi: 10.1145/3832783.3834533.
[3] Mistral AI. (2025, Jul.) Announcing Codestral 25.08 and the complete Mistral coding stack for enterprise. Mistral AI. Jul. 30, 2025; accessed Oct. 12, 2026. [Online]. Available: https://mistral.ai/news/codestral-25-08/
[4] Mistral AI and All Hands AI. (2025) Devstral-Small-2507 model card. Hugging Face. Accessed: Jul. 15, 2026. [Online]. Available: https://huggingface.co/mistralai/Devstral-Small-2507
[5] R. Cao et al., “Qwen3-Coder-Next technical report,” 2026, arXiv preprint arXiv:2603.00729.
[6] Anomaly Innovations, Inc. (2025) OpenCode: The open source coding agent. GitHub. Accessed: Jul. 15, 2026. [Online]. Available: https://github.com/anomalyco/opencode
[7] X. Wang et al., “OpenHands: An open platform for AI software developers as generalist agents,” in Proc. Int. Conf. Learn. Represent. (ICLR), 2025, pp. 65 882–65 919. [Online]. Available: https://openreview.net/forum?id=OJd3ayDDoF
[8] SWE-agent Team. (2025) mini-SWE-agent: The minimal AI software engineering agent. GitHub. Accessed: Jul. 15, 2026. [Online]. Available: https://github.com/SWE-agent/mini-swe-agent
[9] J. Yang et al., “SWE-agent: Agent-computer interfaces enable automated software engineering,” in Advances in Neural Information Processing Systems (NeurIPS), vol. 37, 2024, pp. 50 528–50 652, doi: 10.52202/079017-1601.
[10] SWE-bench maintainers. (2026) SWE-bench experiments: Public archive of leaderboard submissions. GitHub. August 2026 snapshot. [Online]. Available: https://github.com/SWE-bench/experiments
[11] Qwen Team. (2026) Qwen3-Coder-Next-FP8 model card. Hugging Face. Accessed: Jul. 15, 2026. [Online]. Available: https://huggingface.co/Qwen/Qwen3-Coder-Next-FP8
[12] Zhipu AI. (2026) GLM-4.7-Flash model card. Hugging Face. Accessed: Sep. 8, 2026. [Online]. Available: https://huggingface.co/zai-org/GLM-4.7-Flash
[13] Y. Zhang, H. Ruan, Z. Fan, and A. Roychoudhury, “AutoCodeRover: Autonomous program improvement,” in Proc. ACM SIGSOFT Int. Symp. Softw. Testing Anal. (ISSTA), 2024, pp. 1592–1604, doi: 10.1145/3650212.3680384.
[14] C. S. Xia, Y. Deng, S. Dunn, and L. Zhang, “Demystifying LLM-based software engineering agents,” Proc. ACM Softw. Eng., vol. 2, no. FSE, pp. 801–824, 2025, doi: 10.1145/3715754.
[15] I. Ceka et al., “Understanding automated program repair agents through the lens of traceability: An empirical study,” Proc. ACM Softw. Eng., vol. 3, no. ISSTA, pp. 4450–4473, 2026, doi: 10.1145/3832285.
[16] C. E. Jimenez et al., “SWE-bench: Can language models resolve real-world GitHub Issues?” in Proc. Int. Conf. Learn. Represent. (ICLR), 2024, pp. 54 107–54 157. [Online]. Available: https://openreview.net/forum?id=VTF8yNQM66
[17] N. Chowdhury et al. (2024) Introducing SWE-bench Verified. OpenAI. Accessed: Jul. 15, 2026. [Online]. Available: https://openai.com/index/introducing-swe-bench-verified/
[18] S. Liu, Y. Chen, R. Krishna, S. Sinha, J. Ganhotra, and R. Jabbarvand, "Process-centric analysis of agentic software systems," Proc. ACM Program. Lang., vol. 10, no. OOPSLA1, pp. 1961–1988, 2026, doi: 10.1145/3798271.
[19] Z. Chen, W. Ma, and L. Jiang, “Beyond final code: A process-oriented error analysis of software development agents in real-world GitHub scenarios,” in Proc. IEEE/ACM Int. Conf. Softw. Eng. (ICSE), 2026, pp. 1532–1544, doi: 10.1145/3744916.3773140.
[20] I. Bouzenia and M. Pradel, “Understanding software engineering agents: A study of thought-action-result trajectories,” in Proc. IEEE/ACM Int. Conf. Autom. Softw. Eng. (ASE), 2025, pp. 2846–2857, doi: 10.1109/ASE63991.2025.00234.
[21] C. Zhao et al., “Debugging the debuggers: Failure-anchored structured recovery for software engineering agents,” in Proc. IEEE/ACM Int. Conf. Autom. Softw. Eng. (ASE), 2026, pp. 4006–4017, Industry Showcase, doi: 10.1145/3832783.3834492.
[22] J. Cohen, “A coefficient of agreement for nominal scales,” Educational and Psychological Measurement, vol. 20, no. 1, pp. 37–46, 1960, doi: 10.1177/001316446002000104.
[23] C. Yang, X. Zhao, T. Wu, and C. Kästner, “Better harnesses, smaller models: Building 90% cheaper agents via automated harness adaptation,” 2026, arXiv preprint arXiv:2607.08938.
[24] Y. Lee, R. S. Nair, Q. Zhang, K. Lee, O. Khattab, and C. Finn, "Meta-Harness: End-to-end optimization of model harnesses," 2026, accepted at the Conference on Language Modeling (COLM). [Online]. Available: https://colm.cc/Conferences/2026/AcceptedPapers
[25] J. Lin et al., “Agentic harness engineering: Observability-driven automatic evolution of coding-agent harnesses,” 2026, arXiv preprint arXiv:2604.25850.