Chris Hinckley
ServiceNow Employee

By Chris Hinckley, Andrea Tan, Sherry Han, Estelle Hu, Meiru Han, Zianyi Wang, Om Babar, Erin Lafrenz and Aaliyah Brown

 

Over the past year the choices for running a coding agent against our codebase have multiplied: more models than any one engineer can keep track of, several harnesses to drive them, a reasoning-effort setting on most of them, and a growing set of tools that promise to cut the token bill. Each vendor publishes benchmark numbers. None of them were produced on a 6-million-line Java platform with Gradle test cycles of five to ten minutes, so we had no way to know which of those numbers applied to us.

 

We built an internal benchmark, Touchstone, to answer that for ourselves. It mines tasks from real pull requests merged into our repositories, runs any model under any harness in a sealed copy of the repository, and grades each attempt by running the tests the original engineers wrote. No model is asked to judge another model's work. The results below come from about 34,000 graded attempts run between September and October 2026. This post covers what we found across three questions: which model and harness, whether the repository's own agent instructions help, and whether context-compression tools save money.

 

What we found

  1. The top of the table is a statistical tie. Seven combinations landed within 2.7 points of each other, led by SWE-2 under Devin CLI at 71.7% and Claude Opus 5 under Claude Code at 70.8%. With 200 tasks and three attempts each, a lead has to reach about 6.6 points before it is distinguishable from noise for one pair, and 11.5 points once you correct for comparing every pair against every other.

     

  2. Cost per attempt among those seven spans a factor of nearly forty. GPT-6.1 Sol under Claude Code solved 69.7% of tasks at $0.11 per attempt. Claude Opus 5 under OpenCode solved 69.2% at $4.21. The cost-quality frontier has four points on it, and three of the four cost eleven cents or less per attempt.

     

  3. Token price predicts almost nothing about task cost. Claude Sonnet 5 and Claude Sonnet 5.5 have the same list price. Sonnet 5 cost $1.19 per attempt; Sonnet 5.5 cost $0.07. The difference is entirely how long the agent works: 55 model calls per attempt against 8.

     

  4. The harness changed the result for three models out of ten and made no measurable difference for the other seven. Where it mattered, it mattered a lot: Kimi K3 scored 10 points higher under Devin CLI than under OpenCode, and MiniMax M3 scored 12 points higher under mini-SWE-agent than under Claude Code.

     

  5. Turning the reasoning-effort dial up did not pay. Across four models it raised cost per attempt by 1.1x to 2.6x and moved solve rates by between -2.5 and +3.5 points, none of it surviving correction for multiple comparisons.

     

  6. Giving the agent the repository's own CLAUDE.md and AGENTS.md made it 58% more expensive on Opus 5.5 and no better at solving tasks. A minimal, hand-curated instruction pack was followed faithfully, cost 28% more, and also bought nothing.

     

  7. Two context-compression tools, Headroom and RTK, removed 7 to 9% of input tokens and did not change the bill by any measurable amount. The savings were consumed by extra model calls, and most of the cost they target is already discounted cache traffic.

 

Figure 1 shows every combination on one chart.

 

fig01_cost_vs_solve.pngFigure 1. Mean cost per attempt at list rates against the share of tasks solved, for every model and harness combination. The dashed line is the frontier: nothing above and to the left of it exists in this data.

 

The top of the table is a tie

Figure 2 is the full ranking with 95% confidence intervals. The intervals are wide. Each cell is 600 attempts, but they are clustered in 200 tasks, and the task is the unit that varies. Two cells that differ by three points are not distinguishable here; a pair needs about 6.6 points of separation before the difference is unlikely to be chance, and the strictest multiple-comparison step asks for 11.5. Of the 666 pairs in the table, 153 are distinguishable after Holm correction.

 

fig02_scoreboard.pngFigure 2. Solve rate per combination with a 95% confidence interval, plus mean cost per attempt, the share of tasks solved on all three attempts, and the median time the agent ran. Harness is the color.

 

SWE-2 finished first in this run; a rerun could easily reverse the order at the top. The more useful reading is in tiers. Seven cells sit between 69% and 72%: SWE-2 at both effort levels, Claude Opus 5 under two harnesses, GPT-6.1 Sol at both effort levels, and Gemini 3.7 Flash. Then a broad middle from 61% to 67% that holds most of the table, including every Claude Sonnet cell, Claude Opus 5.5, Kimi K3, GLM-5.2 and 5.3, Grok 4.6 and the GPT-5.6 models. Then a tail: Nemotron 3 Ultra, MiniMax M3 under Claude Code, and Claude Haiku 4.5.

 

Two other columns in Figure 2 matter as much as the solve rate. "Solved on all 3" is the share of tasks a combination got right every time it was asked, which is closer to what a developer sees when they run an agent once. SWE-2, GPT-6.1 Sol and Gemini 3.7 Flash all sit at 62 to 64% on that measure. Claude Opus 5 under OpenCode, which ties them on solve rate, drops to 59%. Kimi K3 under OpenCode solved 56% of tasks overall but only 38.5% every time, because 16% of its attempts ran out the clock.

 

The other column is median agent time. Claude Sonnet 5.5 finished a typical attempt in 26 seconds. Gemini 3.7 Flash under Devin CLI took 31 minutes for a solve rate six points higher. Both matter in daily use.

 

Four points on the frontier

The frontier in Figure 1 is short. GPT-5.6 Luna under OpenCode at $0.05 per attempt and 61.7%; GPT-5.6 Luna under Devin CLI at $0.07 and 64.5%; GPT-6.1 Sol under Claude Code at $0.11 and 69.7%; SWE-2 under Devin CLI at $1.48 and 71.7%. Everything else is beaten on both axes by something on that line.

 

The cost figures are mean cost per attempt at list rates, including attempts that failed. Cost per solve, which divides total spend by successes, stretches the gap: GPT-6.1 Sol delivered a passing change for $0.15; Claude Opus 5 under OpenCode for $6.08.

 

The frontier skips most of the cost axis. Between $0.11 and $1.48 there are fifteen cells, and none of them solves more than GPT-6.1 Sol does for $0.11. That is the case for routing: most of the work engineers hand to an agent does not need a $3 attempt, and on this task set a $0.11 attempt is not a compromise on quality.

 

Token price is a poor guide to task cost

Engineers tend to estimate a model's cost from its price per million tokens. On this benchmark that estimate can be off by an order of magnitude.

 

fig03_token_price_vs_task_cost.pngFigure 3. Left: list price per million output tokens against mean cost per attempt. Right: mean number of model calls per attempt against the same cost. The right-hand relationship is the one that holds.

 

Claude Opus 5 lists at $5 in, $25 out. Claude Opus 5.5 lists at $4 in, $20 out, a 20% discount. Per attempt, Opus 5 cost $3.31 and Opus 5.5 cost $0.67, a 5x gap. Opus 5 made 63 model calls per attempt and read 3.6 million tokens of context doing it; Opus 5.5 made 22 calls and read 0.7 million. The two solve rates were 70.8% and 65.2%.

 

Claude Sonnet 5 and Sonnet 5.5 have identical list prices. Sonnet 5 cost $1.19 per attempt over 55 calls and a median of six and three-quarter minutes; Sonnet 5.5 cost $0.07 over 8 calls and 26 seconds. They solved 64.8% and 63.0% respectively.

 

Kimi K3 lists at $3.30 in and $16.50 out, 65% more per token than Sonnet 5. Its cost per attempt was $1.21, two cents more than Sonnet 5's.

 

The right-hand panel of Figure 3 is the relationship that actually holds: how many times the agent goes back to the model. That is a property of the model's working style and of the harness together, and it is why the same model under two harnesses can differ in cost by anywhere from 30% to more than double while solving the same share of tasks.

 

The harness: decisive for some models, invisible for others

We ran ten models under at least two harnesses each, on the same 200 tasks, and paired the results per task.

 

fig04_harness_effect.pngFigure 4. Each row is one model; each dot is a harness. The bar spans the best and worst result. The right-hand column is the largest paired lead for that model and its 95% interval.

 

For seven of the ten, the harness made no measurable difference to the solve rate. For three it did. Kimi K3 scored 66.0% under Devin CLI, 61.7% under Claude Code and 56.0% under OpenCode; 97 of its 600 OpenCode attempts hit the time limit. MiniMax M3 scored 64.2% under mini-SWE-agent and 52.0% under Claude Code, where it gave up without changing anything in 96 attempts. Nemotron 3 Ultra scored 53.2% under Claude Code and 44.5% under OpenCode.

 

Cost was far more sensitive to the harness than quality was. Claude Opus 5 solved 70.8% under Claude Code for $3.31 and 69.2% under OpenCode for $4.21. Claude Sonnet 5 cost $1.19, $1.81 and $2.01 under Claude Code, OpenCode and Devin CLI for 64.8%, 62.2% and 61.7%. The direction is not consistent either: Nemotron was cheaper under OpenCode and worse; Kimi K3 was most expensive under the harness that scored it highest.

 

Two harness defaults cost us a restart during the OpenCode campaign and are worth knowing about if you run it headless. OpenCode keeps a workspace snapshot for undo, which on a 238,000-file repository ran its own git processes for long enough to time out 11 of the first 194 attempts; we turned it off. It also treats any path outside the workspace, including /tmp, as a permission prompt, and in headless mode nobody answers; agents that wrote test output to /tmp idled until the clock ran out. Both are configuration, not model behavior, and both would have been invisible in a leaderboard that reported only the final percentage.

 

Higher reasoning effort did not pay

Four models were rerun with reasoning effort set above the vendor default: Claude Opus 5.5, Claude Sonnet 5.5 and GPT-6.1 Sol at high instead of medium, and SWE-2 at max instead of high.

 

fig05_effort.pngFigure 5. Left: solve rate at the vendor default and at the higher setting. Right: the paired change in solve rate with its 95% interval, and the cost multiplier.

 

Model Default Higher effort Change (95% CI) Cost per attempt
Claude Sonnet 5.5 63.0% 66.5% +3.5 (+0.2 to +7.0) $0.07 to $0.18
Claude Opus 5.5 65.2% 65.5% +0.3 (-2.3 to +2.7) $0.67 to $0.99
GPT-6.1 Sol 69.7% 69.0% -0.7 (-3.8 to +2.3) $0.11 to $0.27
SWE-2 71.7% 69.2% -2.5 (-5.3 to -0.2) $1.48 to $1.64

 

Sonnet 5.5 improved and SWE-2 got worse, each by a margin that is just outside zero before correcting for the four comparisons and inside it afterwards. Cost rose for all four, by between 10% and 160%. The vendor defaults are the better setting on this benchmark. Sonnet 5.5 at high effort does have one distinction: it was the most consistent cell in the entire run, giving the same answer on all three attempts for 91% of tasks.

 

Consistency, and what the tasks can tell apart

fig06_consistency.pngFigure 6. Left: for each model, the share of task-and-harness cells where all three attempts agreed. Right: how the 200 tasks split.

 

Across every cell, the three attempts agreed 79% of the time. The remaining 21% is why we run three and why a single-attempt leaderboard overstates its own precision. The spread between models is wide: 91% for Sonnet 5.5 at high effort, 68% for Nemotron 3 Ultra and Haiku 4.5.

 

Of the 200 tasks, 92 were solved by every model at least once, 15 by none, and 93 split the field. The 93 produce the ranking; the 92 show how high the floor is. Eleven tasks were solved by every model on every attempt.

 

The repository's own agent instructions: slower, not better

The second question was whether handing the agent the repository's own CLAUDE.md, AGENTS.md and .claude/rules files, the context a developer gets when they open Claude Code in the repository, improves results. Every run above was done without them. We ran two campaigns on Claude Opus 5.5 and Claude Sonnet 5.5, 200 tasks, three attempts, each condition paired against a bare arm on the same hosts.

 

The first campaign used each repository's instructions as committed, read from a revision before the task's fix landed so the files could not describe the answer. The second used a minimal pack we wrote ourselves: the build and test commands, nothing else, with a same-length placebo pack as a control.

 

fig07_context.pngFigure 7. Paired per task, context arm minus bare arm, with 95% intervals. Left: solve rate. Right: cost per attempt.

 

Neither form of context moved the solve rate. The repository's own instructions moved Opus 5.5 by -1.0 points (interval -3.5 to +1.5) and Sonnet 5.5 by +1.8 (-0.8 to +4.7). The minimal pack moved them by 0.0 and +1.7. Cost went one way only: +58% for Opus 5.5 with the repository's own context, +28% with the minimal pack and +14% for Sonnet 5.5 with the minimal pack, all significant after correction. The placebo pack, which had the same length and no content, cost 4 to 6% more, so most of the increase came from what the instructions said rather than from their presence.

 

fig08_context_mechanism.pngFigure 8. Left: the cost change for Opus 5.5 by repository, with what each repository's context says. Right: what the agent did differently on the Java platform, per 348 attempts.

 

Figure 8 shows why. On the Java platform, whose AGENTS.md tells the reader to discover the relevant feature documentation and run the module's Gradle tests, the agent did exactly that. Tool calls that read AGENTS.md and the files it points to went from 3 across all 348 bare attempts to 1,511. Gradle invocations doubled. Time spent inside Gradle went from 6 to 18 minutes per attempt, and the hours agents spent polling a background build that had outlived its shell timeout went from 24 to 60. Gradle plus polling account for 97% of the extra wall-clock time. The two tasks that only the context arm solved were both fixed before the first build ran, so the builds changed no outcome.

 

A control arm of 31 tasks where the plumbing was in place but no context was delivered moved cost by 1.4%, so the mechanism is the content. In the second campaign we also confirmed that the pack was read: adherence to its instructions rose by 85 points for Opus 5.5 and 24 for Sonnet 5.5 relative to the bare arm. The agent followed the instructions; they told it to do expensive things that did not change the answer.

 

One caveat. The second campaign denied the agent network access, which the first did not, and offline Gradle builds that stalled on unreachable dependency hosts inflated part of the first campaign's +58%. Re-measured under the second campaign's conditions, the repository-context cost penalty on Opus 5.5 is +28%, still clearly positive. The recommendation is unchanged: for headless agents on these repositories, no context is the right setting today. The instructions in those files were written for people, and for an interactive session where a person is waiting, running the tests is the right call. For a headless agent graded on the result, it is cost without benefit.

 

Context compression: Headroom and RTK

The third question came from the token bill. Two open-source tools, Headroom and RTK, promise to cut it by compressing what the agent sends to the model: Headroom as a local proxy that rewrites each request, RTK as a Claude Code hook that condenses shell output before the model sees it. Both were tested the same way, as a paired arm beside plain Claude Code on the same tasks, hosts and time window, with Claude Opus 5.5 and Claude Sonnet 5.5, 1,200 attempts per tool per model. We set the adoption bar in advance: at least a 5% saving in cost per attempt, no solve-rate loss worse than 3 points at the lower bound of the interval, and no open reliability or security finding.

 

fig09_compression.pngFigure 9. Paired per task, tool arm minus plain arm, with 95% intervals. The green band is the pre-registered 5% saving bar.

 

Neither cleared it. Headroom 0.39.1 took Opus 5.5 from $0.71 to $0.70 per attempt and Sonnet 5.5 from $0.07 to $0.07. RTK 1.0.1 took Opus 5.5 from $0.50 to $0.53 and Sonnet 5.5 from $0.123 to $0.124. Solve rates moved by -1.5 to +2.0 points, none significant, but the Opus intervals reached -3.3 and -4.0 at the lower end, which fails the solve condition on its own. Both tools ran cleanly: no proxy errors and no infrastructure failures across 4,800 attempts.

 

fig10_compression_why.pngFigure 10. Left: Headroom's effect chain. Right: how the cost of an Opus 5.5 attempt breaks down without compression.

 

Figure 10 explains the arithmetic. Headroom did what it says: it removed 7.8% of input tokens per call on Opus and 8.5% on Sonnet, measured from its own proxy logs. But input is mostly cache reads, which cost a tenth of fresh input, so 8% fewer input tokens is worth 3 to 4% of the bill. And the agents took 5 to 9% more turns with it, each turn re-reading the whole cached context, which consumed the 3 to 4%. Reading the transcripts, we found the model noticing: in three of six attempts on two tasks, it described a code read as "elided" or "garbled" and read the file again. Headroom's own documentation says it pays off on long sessions with heavy tool output. Our sessions are short, a median of 18 turns on Opus, and in the shortest third of tasks Headroom made attempts measurably more expensive, by 14%. In the longest third it trended cheaper by 6%, not distinguishable from zero.

 

RTK's ceiling can be computed from its own counters. The hook fired in 99% of attempts and removed about 2,500 tokens of shell output per Opus attempt. Had every one of those tokens been written to the cache once and re-read on every later turn, the most RTK could have saved is 4.3% of the Opus bill and 3.5% of the Sonnet bill. That ceiling is below the bar before any behavioral effect is counted.

 

Both tools also change the agent's behavior in ways we did not set out to measure. RTK ships an instruction file that tells the model to treat condensed output as complete and to batch commands; Opus made 4% fewer calls with it. Headroom's default installation runs a telemetry beacon, checks PyPI for updates, downloads a model at runtime and reads the Claude Code credential store; we turned all of that off for the test, and would have to in production. Neither was adopted. Headroom's output shaper, which asks the model to be terse, is a different lever from input compression and remains untested.

 

Why we built our own

Public benchmarks are useful and we read them. They did not answer our questions for three reasons.

 

The tasks are public, so over time the solutions are in the training data, and a score stops meaning what it meant. Our tasks are mined from pull requests merged in the preceding weeks, in private repositories, and we retire a task and mint a replacement rather than edit it.

 

The code is not like ours. Most of the attempts above ran against a Java platform of 6.2 million lines of Java and 3.5 million of JavaScript across 238,000 files, with a Gradle build whose test cycle in some modules runs five to ten minutes. The other 84 tasks came from a TypeScript monorepo, two Python services and two Go services. Public suites are weighted toward mid-sized Python repositories. The agents that do well there do not all do well here, and the failure modes are different: a quarter of our failures on some cells were build breaks, not wrong answers.

 

And the thing we most wanted to measure was cost at the task level, under our harnesses, at our list rates, reconciled to our cloud meters. No public number does that.

 

How Touchstone works

fig11_pipeline.pngFigure 11. From merged pull request to a graded attempt.

 

Mining. Every merged pull request in a target repository is a candidate. The ticket it closed is the first source of the problem statement: the defect's steps to reproduce or the story's description, quoted verbatim, because text a human wrote before the fix existed cannot describe the fix. Ticket fields that could, such as engineering details and acceptance criteria, are never read.

 

Validation. A candidate becomes a task only if, at the parent commit, the pull request's test changes fail; with the full pull request applied, they pass; and they pass again on a repeat run. That proves the tests detect the change. It does not prove the change was a bug fix, and we deliberately admit enhancements too; a curator classifies each task by the kind of defect or change it represents.

 

Curation. A person reviews every task before it enters a release, and either accepts the quoted ticket text as the prompt or writes one. A curator who writes the prompt does so before seeing the pull request's own description, so the description cannot anchor it.

 

Two mechanical checks run on every save. A leak lint refuses a prompt that contains text from the reference fix. A second lint, which we added after the first campaign, refuses a prompt that omits a name the held-out test depends on. We found that when 57 tasks went unsolved by every model, 24 of them failed because the test asserted on an identifier, a class name, a message literal, a constructor signature, that the prompt never mentioned and that did not exist in the codebase the agent was given. Those were defects in the task, not failures of the model, and we re-minted 50 statements during that campaign before settling the release.

 

Sealing. Each attempt runs in a fresh snapshot of the repository at the task's base commit with no history, no remotes, no tags and a single synthetic commit. A 12-point audit checks every workspace before the agent starts. Databricks' post on their own benchmark describes finding agents that walked forward through git history to the merged fix; the seal exists so that walk has nowhere to go. We saw the same thing in a different form. Before we added process-level sandboxing in the first campaign, an audit of every tool call found nine attempts that reached outside their workspace, and one of them had read the reference fix from the host. All nine were discarded and rerun inside the sandbox, which now also hides the rest of the home directory. Since mid-October the agent has had no network access either.

 

Running. Every model-and-harness pair is run three times per task with a clean agent home, the harness's own steering files removed, and a per-task wall-clock limit that these campaigns ran at 2.5 times its released value. For models served through a shared gateway, each attempt gets its own virtual key so its spend is attributable. Rate-limit backoff is recorded per attempt; an unsolved attempt that lost two minutes or more to it is treated as tainted and rerun, and the report says how many were.

 

Grading. When the agent stops, any edit it made to a held-out test file is reverted, the real test patch is applied, and the tests run. The outcome is one of: solved, tests failed, build broken, gave up, timed out. Grader and infrastructure errors are a separate class that is rerun and never scored. Two rules came out of the first campaign. An agent that commits its own work moves HEAD, so the diff is taken against the sealed base rather than HEAD; three early attempts had been graded as "gave up" for committing a correct fix. And Claude Code, after a safety refusal from the provider on two tasks, silently finished the session on an older model; those attempts count as failures of the model that was asked for, and the report lists them.

 

Reporting. Every comparison is paired per task. Intervals are bootstrap intervals over tasks; significance uses a sign-flip test with Holm correction across every pair in the table; the report prints the minimum detectable difference so a reader knows what "no difference" can and cannot mean. Costs are list rates applied to the tokens each attempt recorded, and for the October campaigns the recorded tokens were reconciled against the cloud provider's per-deployment meters, which agreed to within 0.2 to 3%. Cells running through a bridge that did not report cache writes carry a stated ceiling of 10 to 15% on how far their true cost could exceed the figure shown.

 

fig12_task_mix.pngFigure 12. The release behind every number in this post.

 

Reading the numbers

A few things to hold in mind.

 

Everything is paired on the same 200 tasks, so cells are comparable to each other, but the absolute rates are a property of this release. A different mix of tasks would move every number together.

 

Costs are list rates. The Devin CLI cells are a bundled product with its own metering, converted at its list rate; enterprise discounts apply to some of the others. Timed-out attempts that recorded no usage are counted as attempts but not in cost, which makes a few cells' costs slight underestimates.

 

Wall-clock limits were 2.5 times each task's released limit. Timeouts are scored as failures, and the scoreboard says how many there were; the two cells with the most, Kimi K3 under OpenCode and Grok 4.6 under Claude Code, would look different with a longer clock, and we would rather report that than hide it behind a "pass among finished attempts" figure.

 

The main comparison pools campaigns run between early September and early October 2026. Harness versions moved during that window; each campaign's report records the one it ran under. Claude Code's --bare mode was used throughout the main comparison and the context and Headroom campaigns; RTK requires Claude Code's normal start-up, so its two arms were measured against each other and not against the bare cells.

 

What we take from this

Three conclusions follow directly. Routine agent work belongs on the frontier cells, GPT-6.1 Sol and the GPT-5.6 family, with SWE-2 and Claude Opus 5 reserved for the tasks that need them; the data does not support paying thirty times more for the typical task. Headless runs on these repositories should not load the repository's agent instructions. And neither compression tool is adopted, with a standing offer to re-test when a release changes what they do.

 

The benchmark itself keeps running. Every new model and harness goes through the same 200 tasks and the same report, and the task set is refreshed from newer pull requests over time so no model gets to train on it. Two things we want to measure next are plan-mode output, where the agent proposes rather than edits and a rubric rather than a test decides, and failure triage, where the agent is handed a failing build and asked what broke.

 

None of this needs anything a team with a test suite and a history of merged pull requests does not already have. The parts that took the longest were not the runner but the gates: proving a test detects the change, keeping the answer out of the prompt, keeping the answer out of the workspace, and refusing to report a difference the data cannot support.

8 Comments
Sreeram Nair
Kilo Sage

Great write-up, and thanks for publishing the confidence intervals and the costs alongside the scores. Most leaderboards I see report a single percentage, and this post shows how much that hides.

 

A few things stood out to me, and a couple of questions:

The cost-per-turn finding is the most useful part for people making buying decisions. Opus 5 vs Opus 5.5 is a great example: a cheaper list price per token, but a 5x gap per attempt, driven almost entirely by 63 vs 22 model calls. Sonnet 5.5 at $0.07 and 26 seconds median for 63% is also remarkable next to Sonnet 5 at $1.19 for 64.8%. Anyone budgeting for agentic development should probably stop comparing token price sheets and start measuring calls per task on their own workload.

The AGENTS.md / CLAUDE.md result deserves a wider audience. The instructions weren’t wrong. They were written for a human in an interactive session, where running the full Gradle test cycle is the right call. A headless agent graded on the result followed them faithfully and paid for it. The practical takeaway for teams I’d draw from this is to maintain separate guidance for interactive and headless use, rather than assuming one file serves both. It would be interesting to see a third arm with a headless-specific pack (e.g. “run only the targeted test class, don’t poll background builds”) to see whether well-written context can actually move the solve rate, or whether the ceiling is elsewhere.

 

Questions for the team:

1. Most of the tasks come from the Java platform and the TypeScript monorepo. Has any thought gone into a similar benchmark for work done on the platform, i.e. scoped apps, script includes, business rules, Flow Designer and UI Builder configuration? That’s where most customers and partners would use these agents, and the failure modes (wrong scope, cross-scope access, update set hygiene) are quite different from build breaks.

2. Is there a breakdown by defect class? With 142 of 200 tasks tagged as logic errors, I’m curious whether the security and concurrency tasks separate the models more sharply, even though the sample sizes are small.

3. For teams using agents in a review-before-merge workflow, “solved on all 3” seems like a more honest metric than the headline rate. Sonnet 5.5 at high effort agreeing with itself on 91% of tasks is arguably more valuable in practice than a couple of points of solve rate. Did you consider ranking on that?

 

Also worth calling out: Claude Code silently falling back to an older model after a provider refusal, and OpenCode’s /tmp permission prompts idling until timeout. Both are exactly the kind of thing that would quietly skew an internal evaluation, and it’s good to see them reported rather than filtered out.

 

Looking forward to the next release of Touchstone.

Chris Hinckley
ServiceNow Employee

Hi @Sreeram Nair 

Appreciate the careful read. Taking your points in order.
 
On separate guidance for interactive and headless use: agreed. The instructions were right for the person they were written for. The pack we tested in the second campaign was already stripped down to build and test commands, and agents followed it, but on the Java platform the test command is itself a long Gradle run, so it still cost more. A pack that says "run the one test class, don't wait on background builds" is the natural next arm, and we'll look at running it. Since cost tracked what the instructions said rather than whether they were present, a pack that asks for less could move the other way.
 
1. Everything in Touchstone depends on a repository with tests that fail before the change and pass after it; that is what keeps an LLM judge out of the grading and what makes the numbers trustworthy. Platform configuration doesn't come in that shape, and you're right that the failure modes are different: a wrong scope passes a build.
 
2. The report breaks results down by class, but with 8 security and 6 concurrency tasks one task flipping moves a cell by 12 to 17 points, so nothing separates. The leaders in those slices are different cells from the overall leaders, which is what noise looks like. The 142 logic-error tasks reproduce the overall order. When a release has enough tasks in a class to support the comparison, the breakdown will be in the report.
 
3. We print "solved on all 3" for every cell, and sorting on it barely changes the top tier: Gemini 3.7 Flash and SWE-2 at max 63.5%, SWE-2 and Opus 5 under Claude Code 63.0%, GPT-6.1 Sol 62.0%, Sonnet 5.5 at high 61.5%. It does change the middle: Kimi K3 under OpenCode goes from 56% to 38.5%, mostly timeouts. We rank on the mean rate deliberately: it uses all 600 attempts per cell, and the intervals and the Holm correction are built on it, so the ranking comes with a statement of what it can and can't distinguish. Your point about Sonnet 5.5 at high effort holds on both measures. Of the top cells it loses the least between the headline rate and all-three (66.5% to 61.5%), and for review-before-merge that consistency is worth weighing alongside the solve rate.
Sreeram Nair
Kilo Sage

Thanks for such a thorough response. This is exactly the kind of reply that makes the Community worth reading.

 

On the headless pack, the point that cost tracked what the instructions said rather than whether they were there is a useful reframe. I'd assumed the fix was simply "less context", but you're right that a pack asking for less could actually lower cost. I'll look out for that arm.

 

On point 1, your answer got me thinking. You're right that platform configuration doesn't naturally come with tests that fail before the change and pass after it. But I think ATF can give it that shape, if the test is written against the known fix from a closed story and confirmed to fail on the starting state. That covers the behaviour. It doesn't cover your other point, that a wrong scope still passes, so I've suggested scoring that separately as a hygiene check rather than folding it into pass/fail. I've written the approach up here for anyone who wants to try it on their own instance: Before You Pick a Coding Agent for ServiceNow, Run Your Own Mini-Benchmark. It's far smaller and rougher than Touchstone, and I'd welcome your view on where the method breaks down.

 

On points 2 and 3, that makes sense, and the numbers are helpful. The Kimi K3 drop from 56% to 38.5% under OpenCode is a striking example of what a headline rate can hide. The Sonnet 5.5 result holding on both measures is reassuring for anyone weighing it for review-before-merge work.

 

Thanks again.

Chris Hinckley
ServiceNow Employee

@Sreeram Nair 

Thanks for writing it up, and for linking back. It's a faithful translation, loved seeing this.

You asked where the method breaks down, so here's where I'd watch. Sample size. With 200 tasks, two agents need about 6.6 points of separation before the difference is real, at 30 tasks that's roughly 17. A 30-task run will tell you whether an agent is fine or clearly not, which is useful, but it won't rank two decent ones.
 
The answer being visible. If the instance was cloned after the fix, the fix is sitting in the update history, if the agent can read the story, the work notes are the answer. This is why Touchstone seals the workspace with no history and sandboxes the agent. The starting point has to predate the fix, and the agent needs no path to the story record.
 
Tests that pin the fix. Writing the ATF test from the known fix is the right call, but a test can quietly depend on a name or literal the task text never gives, and then no agent can pass it. It's the most common way a task turns out to be unsolvable, which is why we lint every prompt against its held-out test before a release. Reading the test and the task side by side catches most of it.
 
The hygiene score is a good addition. Make as much of it mechanical as you can so two reviewers land on the same number.
 
Looking forward to seeing what people's numbers look like on ACLs and flows!
matthewdarm
ServiceNow Employee

Hi—

 

Not an engineer, but a logician. Prima facie, the conclusion that, given cost without benefit, no instruction context is the way to go appears—as, I guess it does also to Sreeram—premature.

 

At least one of three appears borne out: (1) No instruction can improve model performance for any task. (2) No instruction can improve model improvement for the specific tasks SN wants it to perform. (3) The instructions were not appropriate. Any other explanations?

 

But (1) appears anyway unbelievable, and (3) appears borne out by a claim that the instructions were for humans, not for robots.

 

FWIW, asked Claude to ELI5 the article (again, not an engineer), and asked for what experiments remain outstanding.

 

**Critical Gaps**

 

* Instruction design not tested — Only human-optimized and minimal packs tested; no robot-optimized variants with explicit constraints

* Negative instructions unexplored — Study likely tested positive instructions ("run the tests”), but not negative ones ("do NOT run full suite, do NOT re-run, do NOT poll"). Negative instructions might prevent expensive behaviors, and afford the agent a defined liberty within which to reason towards efficiency.

* General question: Generalization risk — Findings specific to Java platform with long Gradle cycles. Unknown whether conclusions apply to codebases with faster test cycles

* Task-type analysis incomplete — Security and concurrency bugs (14 tasks combined) had sample sizes too small to measure reliably. Logic errors (142 tasks) showed consistent cost increase, but whether instructions vary by bug type remains unknown

 

**What Remains Unknown**

 

* Whether robot-optimized instructions with negative constraints would reduce cost

* Whether instruction benefit varies by task type (security/concurrency sample sizes insufficient)

* Whether negative instructions perform differently than positive ones

* Whether above instruction design varies in effectiveness by model

Chris Hinckley
ServiceNow Employee

Hi @matthewdarm 

Thanks for the careful read. The conclusion is scoped, with the instructions that exist in these repositories today, written for people, a headless agent does better without them. That's your 3, and the post says so. We don't claim 1 or 2.

 

There's a fourth explanation the data supports better than either. For these tasks, following instructions wasn't the bottleneck. The minimal pack was followed (adherence up 85 points for Opus 5.5) and the solve rate stayed put. Most unsolved attempts fail on the fix itself, with the held-out tests rejecting the change, and an instruction file doesn't reach that.

 

The summary is right that instructions written for the agent, including negative ones ("don't run the full suite, don't poll"), are outside what we tested. The placebo result is the reason to expect it might work, cost tracked what the instructions said, not whether they were there, so instructions that ask for less could bring it down.

 

On generalization, the effect was largest on the Java platform, but cost also rose on the TypeScript monorepo (+23%) and the Python service (+47%) with no solve gain anywhere, so it isn't a Gradle artifact. On task type, agreed: 8 security and 6 concurrency tasks can't separate anything. On model, we ran two, the cost penalty was larger for Opus 5.5 than Sonnet 5.5 and the solve result was the same for both.

Sreeram Nair
Kilo Sage

Thanks for picking this up @matthewdarm . I agree the conclusion should be read narrowly. As I read it, the article’s recommendation is “no context is the right setting today, for headless agents on these repositories”, not “instructions can’t help”.

 

On your three options, I’d mostly back (3), with one nuance. The team actually tested two packs. The first was the repositories’ own files, written for humans. The second was a minimal pack they wrote themselves, with just the build and test commands and nothing else. The minimal pack still cost more, because on the Java platform the test command itself is a long Gradle run. So the problem wasn’t only that the instructions were written for people. It was what they asked the agent to do.

 

I’d add a fourth explanation to your list: (4) the instructions improved something the benchmark doesn’t measure. Tasks are graded on held-out tests the agent never sees, so an agent that verifies its own work with a full test run pays the cost but gets no credit for it. In real work, that verification might mean fewer broken changes reaching review, which is a benefit, just not one this setup can capture. The article points that way too: the two tasks only the context arm solved were fixed before the first build ran.

 

Your negative-instruction idea is a good one, and it’s essentially the next arm the Touchstone team said they’d look at in their reply to my comment: a pack that says “run the one test class, don’t wait on background builds”. Since they found cost tracked what the instructions said rather than whether they were present, a pack that asks for less could plausibly move cost the other way.

 

On task types, the team addressed that in their reply as well. With 8 security and 6 concurrency tasks, one task flipping moves a result by 12 to 17 points, so nothing can be separated yet. They’ll publish the breakdown once a release has enough tasks in a class.

 

The generalisation point is the one I’d underline. The cost penalty came mostly from long Gradle cycles, so codebases with fast tests may behave quite differently. That’s part of why I suggested testing on your own work. On the ServiceNow platform, ATF runs aren’t instant either, so I’d expect a similar trade-off there.

jorgealvare
ServiceNow Employee

Hi team, I just want to add a positive comment about the article, that it is a great perspective because an AI coding agent's performance depends on the entire system, not just the model. Model selection, reasoning, context, behavior, and instructions, all play a role in the process.

 

The finding that GPT-6.1 combined with Claude Code achieves around 70% task completion at just $0.11 per attempt at a fraction of the cost of other models delivering comparable results. It challenges the assumption that better results always require bigger models and more tokens.

 

More context doesn't necessarily mean better context. Optimization, relevant instructions, and real time task execution matter just as much.

 

Identify which configuration delivers the best results, efficiency, and value per dollar in real codebases. A benchmark focused on real time performance rather than just model capabilities would benefit the entire ecosystem.:)