See how the Kotlin Benchmark 2.0 is built: the evaluation design, reward-hacking prevention, and future plans.
We’re introducing Kotlin Benchmark 2.0, a new benchmark built on a redesigned evaluation methodology and an entirely new dataset. Compared to the previous Kotlin Benchmark,1 this release:
The goal of this setup is to demonstrate how agents and models perform on complex Kotlin tasks and assess the resources required to complete them.
The dataset consists of 100 Kotlin engineering tasks covering Android, backend/server, Kotlin Multiplatform, and library development, including 70 open-source tasks from 25 GitHub repositories and 30 closed-source tasks from private JetBrains repositories. They range in complexity from medium to hard, consist mainly of bug fixes or refactoring implementations, and require multi-file changes.
* All closed source tasks are backend.
We verified all selected tasks for construction and design correctness, ensuring that each task’s container image could be built and that its specification was accurate and sufficient for an agent to implement a solution. We also validated that no task could pass verification without implementing the required changes and passing the test suite.
We evaluated 13 agentic setups, including widely used models and coding harnesses such as Claude Code, OpenAI Codex, and OpenCode. To keep configurations representative of typical usage scenarios, we used the recommended settings for most parameters. Reasoning effort was set to “high” for each setup, with one exception: Kimi, for which the provider’s recommended setting is “max”.5 We selected “high” based on provider recommendations, which commonly cite it as a balanced choice for complex coding tasks.3–6 This effort level gives the agent a sufficient reasoning budget without the cost and latency overhead of maximum effort. However, exact implementations of the effort level and predefined behavior still vary across providers.
Each evaluation is repeated three times to balance result variability and resource consumption. We’ve granted a timeout budget of 30 minutes for each task resolution. After each run, the agent’s changes are evaluated in a separate, isolated verifier container. The verifier executes the task’s test suite and compares the resulting JUnit reports against the expected test outcomes recorded in the dataset. A run is considered successful only if all recorded fail-to-pass tests pass. Before verification, any additional artifacts generated in the agent sandbox are discarded to ensure a clean and consistent testing environment.
We report aggregated results for the full dataset alongside separate breakdowns for the open- and closed-source subsets, as well as resource consumption metrics.
Preliminary runs revealed that open-source tasks were susceptible to reward hacking by agents. To mitigate this risk, following the practices recommended by Cursor,2 we configured the execution environment for open-source tasks to run in no-network mode, allowing network traffic only for environment setup and verifier. All dependencies required for task execution were pre-cached. Additionally, repository history was isolated to limit retrieval of published solutions. To prevent agents from spending effort on network requests that would inevitably fail, we explicitly informed the agents that network access was disabled. In contrast, for closed-source tasks, agents retain network access by default, though repository history remains concealed.
Our goal is to create a benchmark that serves as a reliable evaluation source for technical decision makers or individual developers who use AI when writing Kotlin code. To achieve this, we have identified the following next steps to further improve the reliability of benchmark insights: