Back to directory

Needle in the Repo: A Benchmark for Maintainability in AI-Generated Repository Edits

NITR is a repository-level benchmark that checks whether an AI agent's code edits stay maintainable, not just behaviorally correct, pairing multi-file change requests with hidden functional tests and structural oracles across nine maintainability dimensions.

Needle in the Repo: A Benchmark for Maintainability in AI-Generated Repository Edits

The benchmark is built to expose a specific failure mode: an agent producing an edit that passes its tests but quietly weakens modularity, testability or architecture, such as reusing an entrypoint improperly or letting configuration sprawl. Each case ships starter source code, one or more natural-language task files describing the requested change, and an evaluator that checks both functional correctness and the structural properties the case targets.

The current public suite is predominantly C++, with a smaller but growing set of Python cases covering things such as session lifecycle, logging side effects and pricing open-closed-principle violations, and the repository reports a pass and fail matrix across twenty-three evaluated agent and model configurations on twenty-one cases.

It vendors dependencies needed to build cases and evaluators, includes local submission helpers, but does not include a hosted submission service, and accompanies an academic paper.

More in AI evals

See all 269
  • Provenance gate

    github.com

    A deterministic authorization gateway that sits between an AI agent and its tools, tracing where each parameter of a side-effect call came from, and blocking the call or asking a human when the source does not check out.

  • JevBench

    benchmarkheaven.com

    A reproducible benchmark from Benchmark Heaven that ranks Jev-class typed decision models on intelligence, calibration, speed, and cost, with a published harness, scoring rules, and results.

  • A co-evolutionary adversarial red-teaming tool for AI agents that uses quality-diversity evolutionary search to autonomously breed edge-case scenarios, testing whether an agent with tool access can be made to hallucinate, deadlock or leak funds.