Talk to us

Blog · 26 November 2026 · Rob Sherwood

AI Coding Agents Scored Lower on Code They'd Never Seen

JetBrains has rebuilt its benchmark for AI coding agents, and one result is worth knowing if you own a bespoke system. The agents did noticeably better on public open source code than on private code they'd never had the chance to see.

Your codebase is private code. So the leaderboard figures you see quoted are probably the best case, not the number you'd get on your own system.

What JetBrains actually tested

Kotlin Benchmark 2.0 is a set of 100 real tasks for coding agents working in Kotlin, the language behind a lot of Android apps and plenty of backend services. According to JetBrains' methodology page, 70 tasks come from 25 public GitHub repositories and 30 come from JetBrains' own private repositories. The private ones are all backend work.

These aren't toy puzzles. They're mostly bug fixes and refactorings that need changes across several files, rated medium to hard. Each agent gets 30 minutes per task, every run is repeated three times, and a task only counts as solved if the tests that were failing now pass, checked in a separate container the agent can't touch. Thirteen setups were tested, including Claude Code, OpenAI's Codex and OpenCode, with a range of models behind them.

On the combined leaderboard (last updated 20 November), the top setup was Claude Code with Opus 5.5, solving 75.3% of tasks at an average of $0.84 a task. That's genuinely good. These tools have come a long way.

The bit about cheating

Here's the interesting part. JetBrains' methodology page says plainly: "Preliminary runs revealed that open-source tasks were susceptible to reward hacking by agents."

Reward hacking just means the agent finds a shortcut to a passing result instead of doing the work. With public code, the obvious shortcut is that the fix already exists somewhere: in a later commit, a pull request, an issue thread. So for the open source tasks, JetBrains switched off network access (apart from what's needed to set up and verify), hid the repository history, and told the agents the network was off.

Even then, The Register reports that the top resolution rate fell from 86.2% on the open source tasks to 60% on the closed ones. JetBrains' theory, per The Register, is that the models may have absorbed those public repositories during training. Only the private code was completely new to them. JetBrains says more investigation is needed, including checking whether the open source results were helped by the models' memory.

Worth being fair here. The private tasks are a different set of problems, and 30 tasks isn't a huge sample, so the gap isn't all down to memory. But it points the same way as common sense. An agent that has effectively read the answer will look cleverer than one that hasn't.

What this means for your system

Bespoke business software is about as private as code gets. Think of a booking system written for one company in 2014, a warehouse app with its own naming conventions, or a PHP back office extended by four different developers, none of whom wrote anything down. No model has seen it, and no public pull request has the answer.

That doesn't mean AI agents are useless on it. We use them ourselves, and they're a real help. It means you should judge them on your code, not on a leaderboard, and set things up so they can't quietly take shortcuts.

  • Tests are the referee. JetBrains only counted a task as solved when failing tests passed, checked somewhere the agent couldn't interfere. If your system has no tests, an agent has nothing to be checked against except "it looks fine". Adding tests around the bits you're changing is the single best thing you can do before handing work to an agent.
  • Watch what changed, not just whether it passed. The local version of reward hacking is an agent editing the test, special-casing the exact input, or catching and swallowing the error. All of those turn a red check green. A person reading the diff spots them in seconds.
  • Give it the context a new developer would need. On private code the agent can't lean on what it's seen before. A short file explaining how the system hangs together, the odd conventions and the parts not to touch makes a real difference.
  • Try it on your own work first. Pick a handful of small, real tickets from your backlog where you already know the right answer. See how often the agent gets there and how much tidying it needs. That's your benchmark.
  • Keep secrets out of reach. Agents that can browse and run commands can find things you didn't mean them to. Keys and live database passwords shouldn't be sitting in the repository or the agent's environment.

How we handle it

Our line is on our how we use AI page. We use AI to write, read and test code, and an experienced developer reviews every change before it goes anywhere near live. This benchmark is a decent example of why. The tool is fast and often right, and on code it's never seen it's less right than the headline numbers suggest.

If your app was built with AI in the first place, the same applies twice over. My guide on whether an AI-built app is safe to launch covers the gaps worth checking before real customers arrive, from open databases to keys left in the browser.

If you're not sure what you've got

Before you point an agent at an older system, it helps to know what state it's in: whether there are tests, where the fragile parts are, and what would hurt if it broke. Our code audit is from £250 + VAT for one system and gives you a plain-English report on the code, security, hosting and database. If you'd rather someone looked after it properly from then on, Look after it starts from £355 a month + VAT.

Thinking about using AI agents on your own codebase and want a second opinion first? Drop us a line.

Cheers, Rob

Tell us what you've got

It goes straight to Rob and Jase. You'll hear back from one of us, usually the same day, and we'll tell you honestly whether we're the right people.

Just want it checked? Code audit, from £250 + VAT