Skip to content

How We Improved Qwen3.5-27B, Harness and Model ​

And got it to match Claude Sonnet 4.6 at 17% of the cost.

Komodor helps teams observe, evaluate and improve their AI agents. Here we ran that loop on a small open-weight model, to see how close it can get to an expensive one.

The agent here is an AI SRE, but the same method applies to agents of all sorts.

On the ITBench-AA leaderboard
0.400vs 0.398
post-trained Qwen3.5-27B vs Claude Sonnet 4.6
Cost per run
$0.14vs $0.84
the same two models
Score
0.871from 0.287
model only, to model + harness optimized
Cost of the cycle
$97
training set, training and scoring
The whole process Three steps, scored on the same 40 incidents, from 0 to 1. We start at V1 and end at V4. Each line is one model, before and after the harness loop.
  • Base model
  • Trained model
  • Training step
  1. 1Optimize the harnesson the base model, V1 to V20.287 → 0.688 +0.40
  2. 2Train the weightsthe model itself, V1 to V30.287 → 0.369 +0.08
  3. 3Optimize the harness againon the trained model, V3 to V40.369 → 0.871 +0.50
00.250.500.751.00Harness as runHarness optimized2+0.08train the weights1+0.40optimize the harnessV1 · base model0.2870.688V2 · base + harness3+0.50optimize the harness againV3 · trained model0.3690.871V4 · trained + harness
ModelHarness as runHarness optimizedAdded by the loop
Base0.2870.688+0.40
Trained0.3690.871+0.50
Added by training+0.08+0.18

TL;DR ​

  • What We took Qwen3.5-27B, a small open-weight model working as an AI SRE, and improved it in two ways: the harness around it (RSI, recursive self-improvement) and the weights (post-training on Together AI).
  • Why A 27B model is cheap to run and you can serve it yourself. Out of the box it scores below the closed models on root-cause analysis. We wanted to know if our loop could close that gap.
  • End result Our score for naming the right root cause went from 0.287 for the base model to 0.871 with both improvements. On the public ITBench-AA leaderboard, the post-trained model scores 0.400 at about $0.14 per run. Claude Sonnet 4.6 scores 0.398 at $0.84 and Claude Opus 5.5 scores 0.382 at $0.76. The whole cycle cost about $97.
  • Small caveat The model was trained and scored on the same 40 public incidents. We have not tested it on new incidents yet.
Self-improvement loopVersion itbench-aa-public-40Published 2026-11-114 entries Data: Markdown · JSON

Leaderboard

Version
V1 · Model onlybaseline0.287 $0.14
V2 · Model only + harness optimized0.688 $0.14
V3 · Model optimized0.369 $0.14
V4 · Model optimized + harness optimized0.871 $0.14

Score is correct root cause, from 0 to 1. Every version runs on the same dedicated endpoint, so the cost per run is the same.

What we benchmark ​

ITBench-AA is a root-cause analysis benchmark for Kubernetes incidents. It is Artificial Analysis's implementation of IBM's ITBench SRE, and it has a public leaderboard.

  • The task The agent gets an offline snapshot of an incident: alerts, events, traces, metrics, logs and topology. It has one shell tool and up to 100 turns to investigate, and it has to name the objects that caused the incident.
  • The size 59 tasks, 40 public and 19 private. We run the 40 public ones, with the benchmark's own prompt.
  • The score The Komodor evaluator grades every session from 0 to 1 on whether it named the real root cause. Every score in the steps below is this one.
  • The leaderboard The benchmark has its own scorer and a public leaderboard. The top model on it scores 0.562, and Qwen3.5-27B is listed at 0.355. We use it for one comparison, in the recap.
  • Our setup The same incidents, prompt, tool and settings for the base model and for every version we trained.

The process ​

We used one loop for all of the work:

The loop
40 sessionsrecordedrunsgrades +reasonsrun again with the change, and keep it only if the score went upRunThe agent runsmodel + harness,on the 40 incidentsObserveRecord every runeach step, command,answer and costEvaluateGrade the runand write down thereasons for the gradeImproveChange one thingin the harnessor in the weights

The loop can improve different parts of an agent. An agent is a model plus a harness, so we improved each one separately and then both together, and scored the agent after every step:

  • Step 0 Baseline. Run the model as it is, to know where we start.
  • Step 1 Optimize the harness. Keep the model as it is and improve how the investigation is run.
  • Step 2 Optimize the model. Turn the improved investigations into training data and train the weights.
  • Step 3 Optimize both. Run the harness loop again, this time on the trained model.

Step 0: Baseline ​

Untrained Qwen3.5-27B on the 40 incidents scores 0.287.

Every run finished and wrote an answer. The model reaches the evidence and then names the wrong object.

Step 1: Optimize the harness ​

The harness is everything around the model: the prompt, the tools, the context it carries and the steps it takes before it answers. In this step the weights stay as they are, and we improve how the investigation is run.

On the Komodor platform, this loop has a few roles:

  • Evaluator Grades every run and writes down the reasons for the grade.
  • Labeler Reads each run once and tags it: what failed, which tool calls went wrong, where the time went.
  • Triage Reads across the labeled runs and names the problems that repeat, with the runs that show each one.
  • Coach Picks the problem to work on and decides what to change.

The change is then applied, the incident is run again, and the evaluator grades the new version next to the old one. The change is kept only if the score went up.

The whole loop on the Komodor platform A person sets up the experiment and approves at the gates. The loop inside the dashed frame runs by itself.
Loop driverruns every step · tracks spend · enforces budget and stop criteria · waits at the human gatesexperimentspecbaseline +noise bandtoo noisy: more repetitions / new setupaccepted baseline= first championcandidateversionsapproved,deployedgrades+ whyno: runs + grades,new champion if keptlabeledrunsopportunities+ evidenceprescriptions: what,which part, why, runsyes:best versionreportHuman · H1Create experimentagent · intent · evaluationbudget · what can changeBaselineMeasure the noiseoriginal agent, N runsper scenarioHuman · H2Accept the noiseor add repetitions, changethe goal or the datasetApplierBuilds candidatesone version perprescriptionHuman · H3 · Gate 1Approve & deploythe change, why,and the diffRunRun the scenarioseach candidate, N runs;the evaluator gradesCriteria met?vs champion + noisebudget · progressExitReportbest version, changes,cost, rejected, blockersCoachDecides what to tryone prescription perchange; knows past triesInsightsFind opportunitiespatterns across runs:failures, cost, consistencyLabelerLabel each runtopic, tools, outcome,errors, repeated workHuman · H6 · Gate 2Approve & promotebest version becomesthe agent's new revision
  • a human acts here
  • runs by itself
  • improvement loop (italic labels: what each arrow passes)

What we did. All 40 baseline sessions were recorded on the platform. The evaluator graded each one and wrote its insights. Each session was then improved from those insights. Most of the model's own steps stayed. A handful of commands were replaced or added, and each one was re-run against the real incident snapshot, so every piece of evidence in the session comes from the incident. The improved session was saved as a new version of the case and graded again.

Result. The score went from 0.287 to 0.688, with the same model and the same weights. This is the score of the optimized sessions, one per incident.

Step 2: Optimize the model ​

From sessions to a training set ​

The improvement from step 1 is in the sessions. To get it into the model, we need training data. We built it from the model's own investigations, and the process is automated: a teacher model proposes a correction, the student model does the investigation, and the scorer decides what is kept.

How one session is corrected The teacher changes one turn. Qwen writes every turn after it.
Beforenames the wrong object
Afternames the root cause, and is kept if it scores higher
  • Qwen, original turns
  • First wrong turn
  • Teacher edit: context only, excluded from training
  • Qwen, continuing on its own
  1. Collect Every session is already on the platform. The ones worth improving go into a dataset with one click.
  2. Correct The teacher (Claude Sonnet 5.5) reads a failed session, finds the first wrong turn and edits a few words of the model's reasoning at that turn. It works from a generic checklist and never names the answer. Qwen then continues the investigation on its own.
  3. Check The new session is graded again. It goes into the dataset only if it scored higher than before. 28 of the 40 incidents ended up with a correct Qwen session.
  4. Multiply Each session gets two renamed copies, with new service names, namespace, pod hashes and dates. Every copy is scored again and kept only if it scores as well as its source. This adds rows without teaching the model that a specific name is the answer.

Two rules apply to every row. The model learns only from its own words: the teacher's edit stays in the row as context and is excluded from training. And tool output is cleaned of Kubernetes bookkeeping but never cut, so the evidence behind each answer stays in the row.

The result is 109 training rows over 26 incidents, and 16 validation rows held out by incident family.

From 40 incidents to 109 training rows
failedsessionsnewsessions37 correctsessionsCollect40incidentsevery session isalready recordedCorrect1turn editedby the teacher, thenQwen continues aloneCheck28incidents keptwith a correct Qwensession, re-scoredMultiply109training rows37 sessions plus72 renamed copies

Training the weights ​

We trained on Together AI, using its fine-tuning service with LoRA. LoRA keeps the 27B weights frozen and trains a small adapter on top of them, so a training job is small and cheap.

Together AI fit this work for three reasons:

  • Whole investigations fit. Our long sessions are 83K to 124K tokens. Together AI fine-tunes this model with a 131,072-token context, so we trained on complete investigations. Of the three platforms we tried, it was the only one that could.
  • Small experiments are cheap. At $1.05 per million training tokens, four training jobs cost $27.34. One of them was billed at the $4 minimum. A job can continue from an earlier checkpoint, so each batch is one change that we can score on its own.
  • Scoring a checkpoint is simple. Each adapter is deployed to a dedicated endpoint (2x H100, $10.98 an hour). A full pass over the 40 incidents costs $5.75, or about $0.14 per run.

We trained four batches. Each one starts from the same corrected sessions and changes one thing. Every checkpoint was then run on all 40 incidents and scored with the ITBench-AA scorer.

ITBench-AA score of each checkpoint Higher is better. Each bar is one pass over the 40 incidents. Batch 1 is the mean of two passes, and the line across it runs from the lower pass (0.362) to the higher (0.438).
Base not trained0.350
Batch 1 · the one we report trained on its own corrected sessions0.400
Batch 2 batch 1 plus synthetic incidents0.396
Batch 3 batch 1 plus behaviour Q&A0.425
Batch 4 batch 1, trained a second time0.340
  • We report batch 1. It is the simplest recipe and the only one we ran twice.
  • Batch 3 is not clearly better. It scored 0.425 on one pass. Two passes of batch 1 were 0.362 and 0.438, so 0.425 is inside the gap between two passes of the same checkpoint.
  • Validation loss did not predict the score. Batch 4 had the lowest loss (0.382) and the lowest score. Batch 1 had 0.385, batch 2 had 0.388 and batch 3 had 0.404. This is why we score every checkpoint on the benchmark.

Result. On our evaluator, the score went from 0.287 to 0.369.

Step 3: Optimize both ​

We took the trained model's own sessions, pushed them to the platform as a new version of each case, and ran the step 1 loop on them with no changes: grade, insights, improve, re-run in the snapshot, grade again.

Result. The score went from 0.369 to 0.871.

The loop added about 0.40 to the base model and about 0.50 to the trained model. The trained model started higher and gained more from the same loop.

The recap ​

The score, all four steps. The same 40 incidents.

What each step added The faint part is the score before the step, the solid part is what the step added.
Step 1 · harness, on the base model V1 0.287 → V2 0.688+0.40
Step 2 · model training V1 0.287 → V3 0.369+0.08
Step 3 · harness, on the post-trained model V3 0.369 → V4 0.871+0.50

Against the leaderboard. The public ITBench-AA leaderboard scores a model as it runs, with the benchmark's own scorer. Our base run gets 0.350 on it, against the 0.355 it publishes, so our setup matches. On that scorer the post-trained model is at 0.400, level with Claude Sonnet 4.6 and Claude Opus 5.5 at five to six times less per run. The scores in the steps above come from our evaluator, and two of them include the harness loop, so they are not leaderboard numbers.

ModelITBench-AA scoreCost per run
V2 · Qwen3.5-27B + harness optimized ours0.750$0.14
Claude Fable 5.1 (Max) 0.495$1.20
Claude Opus 4.7 (Max) 0.467$1.47
V3 · Qwen3.5-27B, post-trained ours0.400$0.14
Claude Sonnet 4.6 (Max) 0.398$0.84
Claude Opus 5.5 (Max) 0.382$0.76
Qwen3.5-27B, base, on the leaderboard 0.355$0.25
V1 · Qwen3.5-27B, base, our run ours0.350$0.14
ITBench-AA score against cost per run Our three versions are the large points. The blue points are models on the public leaderboard, scored on 59 tasks; ours are scored on the 40 public ones. The V2 score is of the optimized sessions.
Cheaper and more accuratePricier and less accurate0.300.400.500.600.700.80$0.1$0.2$0.5$1$2Cost per run, USD (log scale)ITBench-AA scoreV2 · harness optimized · 0.750V2 · harness optimized · 0.750V3 · post-trained · 0.400V3 · post-trained · 0.400V1 · base · 0.350V1 · base · 0.350Fable 5.1 · 0.495Fable 5.1 · 0.495Opus 4.7 · 0.467Opus 4.7 · 0.467Sonnet 4.6 · 0.398Sonnet 4.6 · 0.398Opus 5.5 · 0.382Opus 5.5 · 0.382Qwen3.5-27B, leaderboard · 0.355Qwen3.5-27B, leaderboard · 0.355

What it cost. About $97 for the whole cycle. Scoring every checkpoint on the full benchmark cost about as much as training them.

Where the $97 went Six costs in one cycle, largest first, as a share of the total.
Running the trained model · $28.77 · 30%Training · $27.34 · 28%Base model continuing the edited sessions · $15.03 · 15%Validation during training · $11.89 · 12%Judge · $7.33 · 8%Teacher edits · $6.63 · 7%$97total
Running the trained model 5 passes over the 40 incidents, about $5.75 each30%$28.77
Training 4 jobs on Together AI, one billed at the $4 minimum28%$27.34
Base model continuing the edited sessions Qwen3.5-27B on a dedicated endpoint, 2 rounds15%$15.03
Validation during training 8 evaluations across the 4 jobs12%$11.89
Judge Claude Sonnet 5.5, about 476 graded runs. Estimated: the judge's usage was not logged8%$7.33
Teacher edits Claude Sonnet 5.5, 135 reviews of a session7%$6.63

What we learned.

  • Model training and harness training work well together. The harness loop alone reached 0.688. Training alone reached 0.369. Both reached 0.871.
  • You need to understand each step. We scored the agent after every step, so we know what the harness added, what training added and what the two add together.
  • The method is not tied to AI SRE. Every step works on recorded sessions and a score. The loop never uses anything specific to Kubernetes or incidents, so the same steps apply to agents in other domains. We have measured it on this one.
  • A small model does not need a bigger model's answers. It learned from its own investigations, with a teacher changing a few words at the first wrong turn.

Caveats ​

  • The model trained on these incidents. The ITBench-AA gain is on the 26 incidents with training rows (0.519 to 0.596). The 14 without stayed at 0.036.
  • Runs vary. Two runs of the same checkpoint scored 0.438 and 0.362, a gap of 0.075.
  • The leaderboard runs a larger test. Artificial Analysis runs 59 tasks, 3 runs each, graded by an LLM judge. We ran the 40 public tasks, twice for the reported checkpoint, graded by Claude Sonnet 5.5 with the same grading prompt. The scores are close but not directly comparable.
  • Cost per run is measured in two ways. The leaderboard models are priced from their published token counts at list price. Ours is the dedicated endpoint's hourly price divided by the runs it served at 8 in parallel. It covers the model as run, without the harness loop.
  • The harness scores are of optimized sessions. 0.688 and 0.871 grade sessions that were optimized under the guidance of the evaluator's insights, one per incident.

Want this loop on your own agent?

Komodor observes, evaluates and improves production AI agents, on any runtime, harness or model, and scores the agent after every change.

Learn more about Komodor

Updated 2026-11-11 · Benchmark and leaderboard: ITBench-AA by Artificial Analysis, fetched 2026-11-11 · Run on the Komodor Evaluation Factory. Model and provider names identify what was measured; no vendor reviewed these results.

Last updated:

© 2026 Komodor · The agentic operations platform for production