AI agents perform better when working with publicly available code than with non-public code. This is according to research by JetBrains. The findings raise questions about the reliability of AI coding benchmarks.
JetBrains has revised its Kotlin Benchmark. This came after the company found evidence that AI agents were using shortcuts to complete tasks, rather than independently solving programming problems. The company describes this behavior as “reward hacking.”
Kotlin Benchmark 2.0 assesses how well AI agents can solve real-world programming problems in Kotlin. To do so, agents must modify multiple files.
The updated benchmark consists of 100 tasks, 70 of which are based on publicly accessible repositories. The remaining 30 relate to codebases that have never been made public. This minimizes the chance that AI models have already gained “knowledge” of the code or possible solutions during their training.
JetBrains also blocked network access for tasks involving open-source code, which prevented agents from searching for existing solutions in patches or pull requests. Only communication with the AI model itself was permitted, and agents were given a maximum of 30 minutes per task.
Other rankings
The highest success rate for tasks involving open-source code was 86.2 percent. For non-public code, the best-performing model did not exceed 60 percent.
The rankings also changed. Google’s Gemini 3.8 Flash, when paired with Antigravity CLI, achieved the best score for non-open-source code at 60 percent. DeepSeek V4.1 Flash followed, paired with OpenCode, at 58.9 percent. DeepSeek was significantly cheaper, with an average cost of $0.08 per task compared to $1.74 for Gemini.
Anthropic’s models performed particularly well with open-source code. Fable 5.1 achieved a success rate of 86.2 percent, followed by Opus 5.5 at 84.8 percent. With non-public code, these percentages dropped to 44.4 and 53.3 percent, respectively. Both models used Claude Code.
Reliability of benchmarks
JetBrains suspects that AI models benefit from knowledge they acquired during training. Even without internet access, models may reproduce previously learned solutions rather than devise new ones. The results do not prove that AI agents are deliberately circumventing the rules. Differences in task complexity can also influence performance.
The findings do, however, raise questions about how representative existing benchmarks are of software development within companies, where developers often work with non-public code.
JetBrains will investigate how much training data influenced the benchmark results. The company will also use its static code analysis platform, Qodana, to assess the quality of the generated solutions.