Get started

The Kotlin Benchmark — Methodology & Outlook

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:

  • Provides broader coverage of the Kotlin ecosystem.
  • Introduces more challenging tasks.
  • Includes both open- and closed-source tasks for a more comprehensive and robust evaluation of coding agents.
  • Restricts network access to ensure that agents can’t look up solutions online for open-source tasks.

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

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.

Software engineering task distribution

Open-source tasks by category

30 tasks

Android

20 tasks

Backend

10 tasks

Libraries and tools

10 tasks

Kotlin Multiplatform

Tasks by source availability (n=100)

* All closed source tasks are backend.

Evaluation design

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.

Reward-hacking prevention

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.

Future outlook

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:

  • Integrate non-functional code metrics using Qodana (e.g., code quality, security vulnerabilities, and potential bug rate).
  • Evaluate agents on long-horizon tasks that better reflect real-world software development lifecycle scenarios.
  • Expand the catalogue of the open-source setups.

References

  1. JetBrains. (2026). Kotlin benchmarks. Kotlin. https://kotlinlang.org/benchmark/
  2. Cursor. (2026). Reward hacking coding benchmarks. https://cursor.com/blog/reward-hacking-coding-benchmarks
  3. Claude Platform Docs. Effort. https://platform.claude.com/docs/en/build-with-claude/effort
  4. OpenAI Developers. Reasoning models. https://developers.openai.com/api/docs/guides/reasoning?api-mode=responses
  5. Kimi. Reasoning effort. https://platform.kimi.ai/docs/guide/use-reasoning-effort
  6. Gemini API Documentation. Gemini Thinking. https://aistudio.google.com/docs/thinking