Case study · SWE-bench style code Q&A

Agentic Codebase Q&A

700 plain-language questions about large open source codebases. We kept only the questions a strong AI model got wrong, and graded every answer against facts we verified by running the code.

  • Architecture
  • Onboarding
  • Root cause
  • Security
Results at a glance
Screened against GPT-5.5, GPT-6 Astra, Gemini 3.6 Flash and Gemini 3.7 Flash
questions written and reviewed
700
open source repositories in Go, C, TypeScript and Python
380+
question types, from architecture to security
5
languages: Go, C, TypeScript and Python
4
Client
An AI lab, through an AI data platform
Our role
Writer & reviewer
Focus
Go (31%), C (26%), TypeScript (23%), Python (20%)
01
The client

An AI lab, through an AI data platform

We built this work for an AI lab, through the data platform it uses to source expert tasks. Our engineers took part in every stage, from designing and writing tasks to reviewing them and making sure they hold up against the strongest models. The lab wanted to measure whether coding agents can understand a large codebase well enough to explain it, not just patch it.

We work under NDA, so the client, the platform and the project's internal name are not shown. The numbers and the sample below are published with that in mind.

02
What we built

A codebase question answering benchmark

SWE-bench made fixing real GitHub issues the standard test for coding agents. Codebase Q&A goes a step further. The agent gets a read-only copy of a large production codebase and a plain-language question that doesn’t name the files or functions involved, so it has to explore the code, run the software and follow its behavior across many files.

  • Questions an engineer would ask

    Plain-language questions about architecture, onboarding, root causes, security and integrations. They never name the files or functions involved.

  • A verified fact list per question

    The facts a good answer must contain, each one checked by running the code.

  • A reference answer

    Kept only if a strong model scored 100% against the fact list, so the list and the answer agree.

  • A sandboxed agent setup

    A read-only copy of the codebase in an isolated sandbox. The agent explores, runs code and writes its answer.

Public benchmarks of this kind, released in 2026, report that top models pass only about 30% of tasks at the strictest grading level. Understanding a codebase well enough to explain it is still where agents struggle most.
Why it matters
03
How we validated it

Every task had to pass these checks

  1. Facts verified by running the code

    Every row in a fact list was confirmed in the sandbox, not taken from reading the code.

  2. Reference answer scores 100%

    A strong model’s answer had to pass every row, which catches rows that are vague or wrong.

  3. Screened against a strong model

    We kept only the questions the screening model got wrong, and checked that the answer was not given away anywhere in the question or the code.

  4. Grade the fact, not the method

    Answers get credit for stating the right facts, however the agent found them.

  5. Peer review

    Questions went through expert review before delivery, and our team also reviewed questions written by others.

How the tasks were tested

Screening models
GPT-5.5, Gemini 3.6 Flash, Gemini 3.7 Flash and GPT-6 Astra, updated as new models came out.
Reference answers
Strong models answered each question, and only an answer that matched the full fact list was kept.
AI judge
An AI judge scored each answer against the expert fact list.
Attempts per task
Several independent attempts per question.
Independent sessions
Yes. Each attempt ran in its own isolated sandbox.
Pass bar
A question was kept only if strong models could not reliably answer it.
04
The numbers

What the questions cover

700
questions written and reviewed
380+
open source repositories in Go, C, TypeScript and Python
5
question types, from architecture to security

Approximate share of questions

Architecture and system design
How the big pieces fit together and why they were built that way.
33%
Code onboarding
What a new engineer needs to understand before working in the code.
25%
Root cause analysis
Tracing a real failure back to where it starts.
18%
Security
Finding where the code could be attacked or misused.
14%
API and library integration
How the code connects to outside libraries and services.
10%
  • Public benchmarks of this kind, released in 2026, report that top models pass only about 30% of tasks at the strictest grading level.
  • Questions are spread across Go (31%), C (26%), TypeScript (23%) and Python (20%) codebases.
05
Sample task

Where does this setting come from?

A simplified example for illustration. It is not a task from the client’s set.

question.md
A new engineer notices that the service sometimes ignores the timeout set in its config file. Explain where the timeout value can come from, which one wins, and why the config file is not always used.
Setup
A read-only copy of a large open source repository in an isolated sandbox. The agent can read files and run commands.
Why models get it wrong
Answering well means following behaviour across many files and checking it by running the code, not just reading the first file that looks relevant.
How it is graded
  • A judge model scores the answer against an expert fact list.
  • Every fact was verified by running the code.
  • Credit is given for stating the fact, whatever method the agent used to find it.
06
What we learned

What the project taught us

  1. 01
    Reading code is still hard for agents

    Explaining how a large codebase behaves is a different skill from fixing a single bug, and it is where agents still struggle.

  2. 02
    Verify by running, not reading

    Facts checked by running the code are what make a grade trustworthy.

  3. 03
    Hard has to mean hard for the model

    Fair grading rewards the right facts, not a particular way of finding them, so difficulty comes from the question and not the grader.

Work with us

Need code understanding tasks your models can’t shortcut?

We write codebase questions, fact lists and reference answers by hand, and screen every one against strong models before you see it.

Talk to our teamSee all AI training work