explaingit

kltownsend/loopcontrolbench

Analysis updated 2026-05-18

1PythonAudience · researcherComplexity · 4/5Setup · hard

TLDR

A benchmark that scores AI coding models on real bug fixes using each project's own tests as the judge, not another AI or a human.

Mindmap

mindmap
  root((repo))
    What it does
      Scores AI bug fixes
      Uses real merged PRs
      Tests decide pass fail
    Tech stack
      Python
      Docker sandbox
      pytest
    Use cases
      Benchmark coding agents
      Compare model tiers
      Audit AI fix quality
    Audience
      Researchers
      AI model evaluators
    Safety
      Isolated containers
      No network in tests
      Credential free sandbox

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Measure how well a coding model fixes real reported bugs without human grading.

USE CASE 2

Compare a cheap model against a more expensive one on the same task pool.

USE CASE 3

Audit a vendor's benchmark claims using the committed per task results.

What is it built with?

PythonDockerpytestBash

How does it compare?

kltownsend/loopcontrolbench0xustaz/streamgatea-bissell/unleash-lite
Stars111
LanguagePythonPythonPython
Setup difficultyhardhardhard
Complexity4/54/54/5
Audienceresearcherdeveloperresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1h+

Requires Docker and building an isolated sandbox image before running any tasks.

The README does not state the license terms.

In plain English

loopcontrolbench is a benchmark that tests how well AI coding models can fix real software bugs. Instead of using an AI or a human to judge whether a fix is good, it uses the project's own automated tests as the judge. Each task comes from a real merged bug fix pull request on GitHub: the buggy code before the fix, the maintainer's own test that catches the bug, and the actual fix that was merged. A model only passes a task if the named test flips from failing to passing after its fix, nothing is guessed or inferred. The tasks come from Python libraries with reproducible, maintainer written tests, so this measures a specific and useful slice of real world bug fixing, not a general claim about all software bugs. A reference run using the model gpt-5-mini, with one attempt per task and no retries, solved 46 out of 70 tasks, about 65.7 percent, across projects like h2, pyjwt, dateutil, more-itertools, marshmallow, click, prettytable, and requests. Every task in that run produced a clear pass or fail result, with none excluded due to setup problems. Because the tool downloads and runs code from third party repositories, including their install steps and test suites, this is treated as running untrusted code. The project strongly recommends running it only inside an isolated, disposable container or virtual machine with no cloud credentials, no access to your home directory, and no access to internal networks. The default runner enforces these protections automatically, including blocking network access during tests and limiting what dependency installation can reach. The project publishes the mechanical scoring system itself, meaning the task pool, the checks that admit a task, and the scoring runner, but does not publish opinions about what a score means for any particular AI model or vendor. That judgment is left to whoever runs the benchmark.

Copy-paste prompts

Prompt 1
Explain how loopcontrolbench decides whether a bug fix attempt passed or failed.
Prompt 2
Walk me through setting up the disposable Docker sandbox this benchmark requires.
Prompt 3
Show me how a single task in loopcontrolbench is structured, from buggy code to test to fix.
Prompt 4
What does a 65.7 percent score on this benchmark actually tell me about a model?

Frequently asked questions

What is loopcontrolbench?

A benchmark that scores AI coding models on real bug fixes using each project's own tests as the judge, not another AI or a human.

What language is loopcontrolbench written in?

Mainly Python. The stack also includes Python, Docker, pytest.

What license does loopcontrolbench use?

The README does not state the license terms.

How hard is loopcontrolbench to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is loopcontrolbench for?

Mainly researcher.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.