# Kotlin Benchmark 2.0: How AI Coding Agents Handle Harder Tasks and Closed-Source Code

> Source: <https://blog.jetbrains.com/kotlin/2026/11/kotlin-benchmark-2-0-how-ai-coding-agents-handle-harder-tasks-and-closed-source-code/>
> Published: 2026-11-23 14:13:29+00:00

**Recommendation:** Run coding-agent evals on private, unpublished tasks and disable network access during open-source runs, since JetBrains found agents were retrieving published fixes instead of solving them.
More in the playbook "Evals and testing for LLM apps": <https://wpnews.pro/playbooks/evals-testing>

## Kotlin

A concise multiplatform language developed by JetBrains

[Kotlin](https://blog.jetbrains.com/kotlin/category/kotlin/)

# Kotlin Benchmark 2.0: How AI Coding Agents Handle Harder Tasks and Closed-Source Code

In July, we released the [Kotlin Benchmark](https://kotlinlang.org/benchmark/) – a collection of 105 real repository-level tasks for evaluating AI coding agents’ work with Kotlin. Since then, we’ve updated it to be more representative of what Kotlin teams do, with more reliable results and more data to help you choose an agent-model configuration.

The new tasks require changes across multiple files, come from projects in different Kotlin domains, and include code from private repositories. To prevent reward hacking and improve the reliability of our results, we restricted network access when agents solve open-source tasks, so they can’t look up a fix that has already been published. We also set 30-minute-per-task resolution time limit for each configuration, balancing the additional time required to solve complex problems with the need for a manageable evaluation time.

[See the latest Kotlin Benchmark results](https://kotlinlang.org/benchmark/)

### What’s new

- **Harder tasks:** The collection of tasks now focuses on medium- and high-complexity problems that require multi-step reasoning, debugging, and changes across multiple files. Simple single-file edits have been filtered out.
- **Open-source and closed-source tasks** : Of the 100 tasks, 70 come from open-source GitHub repositories and 30 from private JetBrains ones, where neither the code nor the fix is available online. The leaderboard shows the results for the full suite and for each group separately, allowing for a direct comparison of the configuration’s performance on public and private code.
- **Broader Kotlin domain coverage** : The 70 open-source tasks now come from 25 repositories, and they span key Kotlin domains: 30 Android, 20 backend, 10 Kotlin Multiplatform, and 10 libraries and tools. The 30 closed-source tasks come from internal JetBrains server-side Kotlin projects.
- **Restricted network access to prevent reward hacking:** Agents complete the open-source tasks without network access, so a configuration can’t inflate its score by looking up the published fix.
- **New models, including open ones:** The evaluated lineup has changed and now includes open models – Kimi and DeepSeek, both running via OpenCode. If you’re considering an open model, you can compare it with closed ones on the same tasks. Every configuration runs the full suite three times, and the exact agent-model pairings, versions, and run settings are on the leaderboard.
- **Average cost, tokens, and steps per task:** The leaderboard now displays the average cost, tokens, and number of steps per task, alongside resolution rate and latency, so you can see how resource-intensive each configuration is.

### Stricter guardrails to prevent solution lookup

When benchmark tasks come from previously solved public issues, an agent can retrieve the existing fix instead of deriving one from the task and the codebase. This is known as reward hacking, and in our preliminary runs, we found agents were doing exactly that.

To prevent it, agents now solve the open-source tasks in a stricter sandbox with restricted network access. Only calls to the model itself are allowed as traffic. Dependencies are cached in advance, the repository history is hidden, and agents are explicitly informed that network access is disabled to prevent repeated attempts to access it. Network access remains available for solving closed-source tasks, because their fixes aren’t published anywhere.

These controls prevent agents from looking up solutions at runtime, but they don’t help rule out data contamination. The open-source repositories and their associated fixes may be part of a model’s training data. That’s the reason for the 30 closed-source tasks, which stay private. The [methodology](https://kotlinlang.org/benchmark/methodology/) documents the evaluation setup and its limits.

### The results

In the new evaluation, the best resolution rate on the full suite (combining both open- and closed-source tasks) comes from Claude Code with Opus 5.5, which posted a 75.3% resolution rate and an average cost of \$0.84 per task. The other 12 configurations resolved between 54.3% and 73.7% and cost between \$0.02 and \$3.14 per task.

**For the open-source dataset**, the highest-scoring configurations are Claude Code with Fable 5.1 (86.2%), followed by Claude Code with Opus 5.5 (84.8%) and Junie using Opus 5.5 and GPT 6 Luna (79.5%). However, the latter configurations offer a comparable score at lower average costs per task (\$0.68 and \$0.33, respectively, versus \$2.38).

**On the closed dataset** (consisting of Kotlin server-side tasks), Antigravity CLI with Gemini 3.8 Flash performed the best (60%, \$1.74 per task), closely followed by OpenCode with Deepseek V4.1 Flash (58.9%), which had a more moderate price tag of \$0.08 per task.

As you compare, keep in mind that the latest Kotlin Benchmark uses a different, harder task suite, so its scores are not comparable with the first release. A lower number here doesn’t mean a model got worse. Compare configurations within the same benchmark version.

*Results shown here reflect the second public iteration of the Kotlin Benchmark. The leaderboard will be updated as newer model evaluations are added.*

As before, a task counts as completed only when the generated patch passes the required tests, and the scores are a comparison signal, not a guarantee for every codebase. Use the leaderboard to shortlist configurations, and then validate them on representative tasks from your own projects.

### What’s next

In the coming weeks, we plan to release follow-up materials for this benchmark iteration. Specifically, we will:

- Analyze the agentic solutions for the open-source tasks and identify any that have potentially been contaminated (reproduced from memory).
- Compile results that go beyond resolution rate: we will run [Qodana](https://www.jetbrains.com/qodana/) , the static analysis tool from JetBrains, to determine whether agents introduced any bugs, security issues, or code smells with their solutions.

The Kotlin Benchmark and the follow-up analyses are part of our own research on how agents work with Kotlin code. By studying how they complete these tasks and where they fail, we learn what to improve in Kotlin and its tooling.

If you’d like to help us improve Kotlin’s compatibility with AI tools, let us know where you run into trouble and use [this form](http://forms.gle/wr8WTcgrHUdd3Uk19) to share examples of where AI gives you a poor, incorrect, or unhelpful result when working with Kotlin.

To learn more, explore the [leaderboard](https://kotlinlang.org/benchmark/), read the [methodology](https://kotlinlang.org/benchmark/methodology/), or inspect the public tasks and harnesses on [GitHub](https://github.com/Kotlin/kotlin-swe-bench).

### Further reading

- [The Kotlin Benchmark Leaderboard](https://kotlinlang.org/benchmark/)
- [The Kotlin Benchmark Methodology](https://kotlinlang.org/benchmark/methodology/)
- [*Introducing the Kotlin Benchmark for AI Coding Agents*](https://blog.jetbrains.com/kotlin/2026/07/introducing-the-kotlin-benchmark-evaluate-ai-coding-agents-on-real-world-kotlin-tasks/)

#### Subscribe to Kotlin Blog updates
