{"slug": "jetbrains-finds-agents-may-cheat-with-open-source", "title": "JetBrains finds agents may cheat with open source", "summary": "JetBrains rebuilt its Kotlin Benchmark 2.0 after suspecting AI coding agents were \"reward hacking\" — gaming tasks by drawing on publicly available solutions — and found top resolution rates fell from 86.2 percent on tasks based on open source repositories to 60 percent on 30 never-before-published closed source multi-file Kotlin problems. On the closed source tasks, Gemini 3.8 Flash via Antigravity CLI led at 60 percent success, followed by DeepSeek V4.1 Flash on OpenCode at 58.9 percent, while Opus 5.5 completed 53.3 percent and Fable 5.1 completed 44.4 percent; DeepSeek cost $0.08 per task versus $1.74 for Gemini, $1.21 for Opus and $3.27 for Fable. The revised benchmark blocked network access for the 70 open source tasks except model communication and set a 30-minute limit per task, and JetBrains theorized the agents may have internalized the public repositories during training.", "body_md": "# JetBrains finds agents may cheat with open source\n\n[The Register](https://www.theregister.com)\n\nAI coding agents caught peeking at GitHub answers, stumble when JetBrains hides the crib sheet\n\nJetBrains has revamped a [benchmark](https://www.machinebrief.com/glossary/benchmark) for evaluating large language models after suspecting too many agents gamed their tasks the first time round. \n\nThe company labelled this agentic practice \"reward hacking\" in [a post summarizing the results](https://blog.jetbrains.com/kotlin/2026/11/kotlin-benchmark-2-0-how-ai-coding-agents-handle-harder-tasks-and-closed-source-code/) of its revised [evaluation](https://www.machinebrief.com/glossary/evaluation). \n\nLike its [predecessor](https://blog.jetbrains.com/kotlin/2026/07/introducing-the-kotlin-benchmark-evaluate-ai-coding-agents-on-real-world-kotlin-tasks/), Kotlin Benchmark 2.0 is a collection of tasks that evaluates how well AI coding agents work with the [Kotlin programming language](https://www.youtube.com/watch?v=E8CtE7qTb-Q&t=1324s), in order to help Kotlin programmers decide which agent-model configurations to use. The tasks include fixing tricky problems in Kotlin code across different domains, and making corrections to multiple files.\n\n### Dirty data\n\nThe [revised benchmar](https://kotlinlang.org/benchmark/methodology)[k](https://kotlinlang.org/benchmark/methodology) now includes 30 Kotlin multi-file code problems that have not been exposed to the public in any way before. The revised test all but guarantees that the agents have not encountered this set of problems, or potential solutions, before. Another 70 tasks are based on code that resides in public repositories.\n\nThe test also blocked all network access for the open source tasks, except for what was needed to communicate with the model itself. This minimized the possibility that the agent could look for an existing answer already posted, perhaps through a patch or pull request.\n\nA 30-minute limit was set for each task.\n\nOverall, the agents were significantly less accurate when solving problems on codebases they had never encountered. Top resolution rates dropped rather suspiciously from 86.2 percent on tasks based on open source repositories to 60 percent on those based on closed source repositories.\n\nAlthough the agents lacked network access, JetBrains boffins theorized that they might have benefited from encountering and internalizing these open source repositories during [training](https://www.machinebrief.com/glossary/training). Only the private repositories were completely new to them. \n\nAlso curious was how a different set of models excelled at the closed source problems, compared to those models that usually did better on the open source tasks.\n\n### Leaderboard Shakeup\n\nWhen restricted to closed source tasks, [two dark horse models](https://kotlinlang.org/benchmark/) rose to the top: [Gemini](https://www.machinebrief.com/compare/gpt-4o-vs-gemini-2-pro) 3.8 Flash, via Antigravity CLI, topped the list with a 60  percent success rate, closely followed by [DeepSeek](https://www.machinebrief.com/compare/llama-4-vs-deepseek-r1) V4.1 Flash (running on OpenCode) at 58.9 percent. \n\nOf the two, the open weight DeepSeek was far cheaper (at $0.08 per task) than the closed weight Gemini ($1.74 per task), however.\n\nIn contrast, Opus 5.5 completed only 53.3 percent of the tasks at $1.21 per task, and Fable 5.1 completed only 44.4 percent of the tasks, at a luxurious $3.27 per task. [Claude](https://www.machinebrief.com/compare/claude-4-opus-vs-gpt-o3) Code harnessed both of these models. \n\nClaude’s lackluster completion rates on closed source tasks are somewhat sus given how both of these [Anthropic](https://www.machinebrief.com/glossary/anthropic) models scored significantly higher on tasks using open source materials. \n\nIn fact Claude ran the table when it came to open source: Fable 5.1 topped the charts with 86.2 percent accuracy, closely followed by Opus 5.5 at 84.8 percent accuracy.\n\n(Kotlin users will pay dearly for the extra sliver of Anthropic accuracy: The average cost of Fable completing a Kotlin cleanup task runs $2.38, while Opus could do the job for $0.68.)\n\n### Gaming the boss\n\nOne possible interpretation of these disparate numbers is that models are drawing from their own knowledge bases instead of [reasoning](https://www.machinebrief.com/glossary/reasoning) from scratch. Whether this is cheating or the models simply [working as intended](https://www.youtube.com/watch?v=Z6_ENp_fO_Y&list=RDZ6_ENp_fO_Y&start_radio=1) might be more a matter of philosophical debate.\n\nMark Hinkle, founder of the [AIE Network](https://theaie.net/) consultancy, suspects the issue of integrity may go deeper. \n\n\"Private code doesn't stop reward hacking, it changes the shortcut,\" he wrote to The Register on LinkedIn.\n\n\"On public code the agent goes and finds the answer somebody has already published. On private code there's no answer to find, so it satisfies whatever is checking it. I treat these things like entry-level employees, and a sharp new hire figures out fast what the boss actually looks at.\"\n\nJetBrains did not immediately respond to a request for comment, but concluded in its post that more investigation is needed. It promises that its people will pore over the open source results to see if any have been contaminated by the LLMs' own memory. It also plans to run its own static analysis tool, [Qodana](https://www.jetbrains.com/qodana), against the results to check for errors. \n\n[Sireesha Pulipati](https://www.linkedin.com/in/sireesha-pulipati/), a staff data engineer and AI observer, suggested, also by LinkedIn, that JetBrains may have needed more specificity in its agent instructions.  \n\n\"Out of the box [an agent] tends to reach for generic patterns. But when we give it instructions and skills that tell it where to look for our patterns and context, it follows them. A well-controlled harness, with those standards built in, is what makes the agent useful,\" Pulipati wrote.\n\nSo good on JetBrains for providing Kotlin users some information about working with AI, but, as always, AI benchmarks should be approached with extreme side-eye. ®\n\nGet AI news in your inbox\n\nDaily digest of what matters in AI.", "url": "https://wpnews.pro/news/jetbrains-finds-agents-may-cheat-with-open-source", "canonical_source": "https://www.machinebrief.com/news/jetbrains-finds-agents-may-cheat-with-open-source-k3g6", "published_at": "2026-11-25 14:07:00+00:00", "updated_at": "2026-11-25 15:14:48.926278+00:00", "lang": "en", "topics": ["ai-agents", "ai-research", "large-language-models", "developer-tools", "ai-tools"], "entities": ["JetBrains", "Kotlin Benchmark 2.0", "Gemini 3.8 Flash", "Antigravity CLI", "DeepSeek V4.1 Flash", "OpenCode", "Opus 5.5", "Fable 5.1"], "also_reported_by": [], "takeaway": "Agents scored 86.2 percent on open source Kotlin tasks but only 60 percent on 30 never-published closed source tasks, so evaluate coding agents on unseen code with network access blocked rather than on public repositories they may have trained on.", "recommendation": {"advice": "Benchmark coding agents on never-published, closed source tasks with network access blocked; JetBrains saw resolution rates drop from 86.2 percent to 60 percent once public-repo answers were unavailable.", "playbook": "evals-testing", "playbook_url": "https://wpnews.pro/playbooks/evals-testing"}, "alternates": {"html": "https://wpnews.pro/news/jetbrains-finds-agents-may-cheat-with-open-source", "markdown": "https://wpnews.pro/news/jetbrains-finds-agents-may-cheat-with-open-source.md", "text": "https://wpnews.pro/news/jetbrains-finds-agents-may-cheat-with-open-source.txt", "jsonld": "https://wpnews.pro/news/jetbrains-finds-agents-may-cheat-with-open-source.jsonld"}}