Cutting costs of AI code development with StackRails - benchmark
27 November 2026 · StackRails
StackRails saves money and effort in AI agent development by reducing the number of generation-and-rework cycles by providing agents with relevant, full context and ensuring that the agents follow company policies and standards.
Executive summary
Generation-and-rework cycles consume time and tokens, contributing to the total cost of modern software development. StackRails reduces the number of generation-and-rework loops (or full CI/CD workflows) and supports delivering code that complies with company policies and meets user requirements. Benchmark uses a composite score:
plugin’s completeness,
company’s policies and standards,
generation-and-rework loop effectiveness
50% fewer CI runs. Claude with StackRails deployed in one CI run and scored 98.0 out of 100. Claude alone took two CI runs and scored 44.3 out of 100. The StackRails benchmark score was 53.7 points higher, a relative increase of 121.2%.
50% fewer CI runs
Claude + StackRails vs Claude only
Claude + StackRails
1 run
98.0 / 100
Benchmark score
Claude only
2 runs
44.3 / 100
Benchmark score
121.2%higher benchmark score
+53.7 points vs Claude only
What is StackRails?
StackRails combines runtime and architectural information in a knowledge graph, providing engineers and AI systems with context to ship new code with more certainty about its quality and stability.
The graph maps:
Allconnections and dependencies within the company’s codebase
Allrepositories
AllCloud assets
Allhybrid Infrastructure
The graph provides full context for AI-powered code generation tools, making their output more reliable, attuned to company policies, and of better quality.
Select an input to trace its path through the graph.
This benchmark aims to measure the code quality improvement that using StackRails provides.
Generation-and-rework loops – the new reality of coding
According to the 2025 study, 58% of the coding professionals surveyed need four or more sessions of generation and rework to finish a software engineering task. This makes endless loops of generation-and-rework a significant factor contributing to the cost of the AI-aided development by piling up tokens and manhours without pushing the project forward.
The loops increase the time engineers need to spend on coding tasks, improving code that is “near perfect” yet requires alignment with company standards and policies, along with technical supervision.
StackRailsAI-generated code takes iteration.
Prompting in Practice · Survey findings
58%58%
reported needing 4+ exchanges
to complete a software engineering task
41 of 71 respondents · rounded
Four cycles of generation and refinement.
Each exchange adds context and refines the output.
As the 2025 study found, approx. 9% of developers’ time was spent cleaning up and reviewing AI-generated code. If one is working eight hours a day, Monday through Friday, rework may take more than 3 hours and 30 minutes weekly, amounting to 14 hours and 24 minutes monthly – assuming average values. In more complex cases, the number of hours may grow.
According to U.S. Bureau of Labor Statistics median wage hourly of software developer is $64.44. Assuming average time spent on reworks and average payment for the developer, rework loops generate $927,93 in wages per developer over four weeks.
StackRailsThe cost of AI code rework
Illustrative estimate per developer
9%9%
Assumed share of working time
Cleaning up and reviewing AI-generated code
GenerateRefineReviewEngineerAICode
$927.94$927.94
Estimated wage cost per developer / four weeks
14.4 hours × $64.44 = $927.94
Assumptions: 40-hour week, 9% rework time, four weeks. Wage-only estimate. BLS wage reference: software developers, QA analysts and testers.
AI code governance tools like StackRails may directly reduce the time developers spend on these rework loops, bringing savings and efficiency. To provide a direct measure of the time and effort saved, the StackRails team prepared a benchmark comparing our tool with pure Claude setup.
Benchmark Results
StackRails significantly outmatched all other solutions by achieving a score of 98%, with the biggest advantage gained in terms of loop efficiency. StackRails + Claude was the only configuration in which the task was delivered in just one run.
The benchmark score is a combined metric that takes three aspects into the account:
Completeness - If the code is working and following instruction
Policies - If the generated code is following the policies
Loop efficiency - Number of runs necessary to deliver results
StackRails121%+ higher benchmark score
StackRails vs Claude only: 98.0 vs 44.3 points (+121.2%)
Opus 5.5 · Medium effort · Score out of 100
StackRails
36.1 pts38.1 pts23.8 pts
98.0
Claude only
16.0 pts16.3 pts11.9 pts
44.3
020406080100
Select a category to compare its score contributions.
+53.7 points (+121.2%) in score. 1 vs 2 CI runs (50% fewer).
StackRails: best of 8 Opus runs across 6 engine versions. Claude only: one run. A difference of one CI run or a few points may be due to chance.
In the combined results, StackRails managed to achieve a score of 98%, with 11 out of 11 callers, seven out of eight behaviours, and all 56 policy checklist aspects satisfied, all in just one run.
Benchmark Methodology
The agent got a single task written in SPEC.md. The task was to build a plugin that finds a GitHub organization’s repositories, branches, and pull requests, and creates and removes Jenkins jobs for them. It had to follow the company’s 26 policies.
To measure how StackRails supports coding efficiency, our team decided to introduce a unified metric that consists of the following components:
Callers – Real plugins import the plugin’s Java package. Each one must still compile against the build.
Behaviour – Scenarios run on the deployed plugin, and their results are compared with those of the original plugin: organization folder discovery, branch and PR jobs, merged PR builds, fork PRs, commit statuses, webhook rescans, API request counts, and GitHub server configuration.
Policies – Aspects covered by a hidden checklist spanning the 26 policies: seven generic Java rules and 19 company rules. They are checked in the repository and on the deployed cluster. The agent never sees the checklist.
CI – The company’s CI/CD workflow must pass: build and test, publish, and deploy on a fresh cluster. Fewer CI runs score higher.
Time – The number of minutes the agent works on the build, reported next to the score.
More detailed comparison of results may be found below:
StackRailsStackRails vs Claude only
Opus 5.5 · Medium effort · Absolute results and percentages
Metric
StackRails
Claude only
Difference vs Claude only
98.0 / 100 (98.0%)
44.3 / 100 (44.3%)
+53.7 points (+121.2%)
Yes
Yes
Both shipped
11 / 11 (100%)
0 / 11 (0%)
+100 percentage points
7 / 8 (87.5%)
8 / 8 (100%)
−12.5 percentage points
56 / 56 (100%)
24 / 56 (42.9%)
+57.1 percentage points
26 / 26 (100%)
10 / 26 (38.5%)
+61.5 percentage points
1
2
50% fewer
96 minutes
88 minutes
9.1% longer
StackRails: best of 8 Opus runs across 6 engine versions. Claude only: one run.
Compliance score
We combined all the indicators above into a unified metric:
Completeness – Callers that compile and behaviours that match the original, accounting for 38.1% of the total score.
Policies – Checklist aspects met, accounting for 38.1% of the total score.
Loop efficiency – 1 ÷ CI runs if it shipped; otherwise, 0 (a loop is one CI attempt), accounting for 23.8% of the total score.
The metric is calculated using the following formula:
StackRails proved to cut the number of generation-and-correction loops to a minimum while delivering clearer, more compliant and better-working code than Claude-only setup. In Claude-only setup the generated code would require rework loops to be shippable and fully meet the requirements.