How Kotlin Benchmark uses closed-source tasks to expose AI coding agents' real weaknesses

This article has been automatically translated.
Loading article...
Merry Christmas & Happy New Year!
Loading article...

This article has been automatically translated.
If you're choosing an AI coding agent for your team's Kotlin repositories, you've probably already run into this gap: a combination that scores well on a leaderboard keeps stumbling on multi-file changes and private code once it's plugged into a real project. JetBrains released the Kotlin Benchmark precisely because of that gap. It's a repository-level set of evaluation tasks maintained by JetBrains for comparing how different "agent + model" combinations perform on Kotlin code, aimed mainly at team leads and platform engineers evaluating their options.
The core takeaway from this update is that leaderboards are only good for an initial screen; the real answer has to come from your own repository. Below, we'll first explain what the new benchmark measures and what it deliberately doesn't, then lay out a practical, small-scale internal evaluation process.
The first version, released this July, contained 105 real repository-level tasks. The new version rebuilds the task set with 100 tasks, aimed at being "closer to what Kotlin teams actually do."
The most direct change is difficulty. The new tasks focus on medium-to-high complexity problems that require multi-step reasoning, debugging, and changes across multiple files; simple single-file edits have been removed. In other words, it no longer rewards the ability to "add one line and pass the tests."
Task sources are also differentiated: 70 come from open-source GitHub repositories, and 30 come from JetBrains internal private repositories, with neither the code nor the fixes published online. The leaderboard shows results separately for the full task set, the open-source group, and the closed-source group, making it easy to directly compare how the same configuration performs on public versus private code.
The open-source portion covers 25 repositories, spanning Android (30 tasks), backend (20), Kotlin Multiplatform (10), and libraries and tools (10). The 30 closed-source tasks come from JetBrains internal Kotlin server-side projects. Each configuration runs the full task set three times, and the specific agent-model pairings, versions, and run settings are all listed on the leaderboard.
The easiest trap to fall into when reading the leaderboard is comparing the new version's scores with the first version's. The official guidance explicitly warns that the task set has changed and gotten harder, so scores from the two versions aren't comparable. A model showing a lower number this time doesn't mean it has regressed.
This warning applies equally to internal evaluations. If you change the questions or the grading method between two of your own test runs, the results can't be compared either. Fixing the task set and versions is a prerequisite for any comparison.
There's a layer in the benchmark design that anyone choosing a tool should note. When a task comes from a public issue that has already been resolved, the agent may skip the reasoning and just retrieve the existing fix patch. JetBrains calls this behavior reward hacking and says it was actually observed during preliminary runs.
The countermeasure is a stricter sandbox: open-source tasks are completed with network access restricted, allowing traffic only for calls to the model itself, with dependencies pre-cached, repository history hidden, and the agent told that the network is disabled so it doesn't keep retrying. Closed-source tasks keep network access, since their fixes were never public in the first place.
But restricting the network only blocks "looking up the answer at runtime"; it can't block "having memorized the answer during training." Open-source repositories and their fixes may already be in model training data, which is exactly why 30 closed-source tasks are needed.
The implication for tool selection is straightforward: look at open-source and closed-source scores separately. The bigger the gap between them, the more likely that configuration's ability on unfamiliar code is being overestimated. Your own private code is precisely the testing ground closest to the closed-source group's conditions.
On the full task set, Claude Code paired with Opus 5.5 achieved the highest solve rate at 75.3%, at an average cost of $0.84 per task. The other 12 configurations had solve rates between 54.3% and 73.7%, with per-task costs ranging from $0.02 to $3.14.
In the open-source group, Claude Code with Fable 5.1 led at 86.2%, Claude Code with Opus 5.5 was at 84.8%, and Junie using Opus 5.5 and GPT 6 Luna was at 79.5%. The latter two had similar scores, but their average per-task costs were $0.68 and $0.33 respectively, versus $2.38 for the former.
In the closed-source group (Kotlin server-side tasks), the top spot went to Antigravity CLI with Gemini 3.8 Flash, at a 60% solve rate and $1.74 per task; close behind was OpenCode with Deepseek V4.1 Flash, at 58.9% and just $0.08 per task.
The most memorable thing about these numbers isn't the ranking but the fact that "similar scores correspond to several-fold cost differences." For teams using agents heavily, this gap will grow with task volume.
The official path is: use the leaderboard to screen configurations, then validate on representative tasks from your own project. The following process turns that advice into executable steps.
Here's a hypothetical example: the leaderboard shows configuration A with an 85% open-source score and a 55% closed-source score, and configuration B with 78% open-source and 58% closed-source. If your repository is private server-side code, B may be worth trying first; but you should still validate with your own tasks in the end, because the leaderboard's closed-source group only covers JetBrains internal server-side projects, which may not resemble your code.
At this stage, the scores can't answer whether an agent introduced bugs, security issues, or code smells. JetBrains plans to use its own static analysis tool, Qodana, in a future release to check the solutions agents generate, and to analyze which open-source tasks may have been contaminated (that is, reproduced from memory). These are planned follow-up efforts, not current capabilities.
So until the quality analysis is released, don't treat solve rates as a quality guarantee. Internal evaluations must include a review step of their own.
One more boundary needs to be clear: a task only counts as complete when the generated patch passes the required tests, and the official guidance also stresses that scores are a comparative signal, not a guarantee for every codebase. Your codebase isn't in the sample, and that statement means exactly what it says.