InfraBench

Can coding agents write high-quality infrastructure code?

InfraBench asks agents to extend the proprietary infra code-generation framework nplus1 uses to build and run infrastructure for its clients, across Terraform, GCP, Vercel and CI. Each task is real work on that framework. We grade it by generating and running real projects from the agent's changes, not by comparing against a reference solution.

Infrastructure · Platform engineering

Tasks
2
Public tasks
2
Models evaluated
3
Published trials
10
Mean reward
Average of task means across the task versions that match the dataset’s rules.
± SE
Standard error across task means; directional when a dataset has few tasks.
Model · harnessMean reward± SETasksTrials
GPT 5.6 SolOpenCode80.0%Task means: 80.0%.—1 / 21
Muse Spark 1.3 ContributorOpenCode76.3%Task means: 59.3%, 93.3%.17.0 pp2 / 28
gemini-3.1-pro-previewOpenCode48.0%Task means: 48.0%.—1 / 21

How InfraBench works

  1. 1 · The agent gets a framework

    A runnable copy of n1x — the code-generation framework that stamps out client applications from composable plugins — plus one engineering instruction taken from real capability work.

    # Add composable AG Grid and AG Charts
    # Enterprise support to n1x
    
    Introduce a `web-ag` capability that requires
    `web` … registers AllEnterpriseModule exactly
    once, including across development reloads. …
    Keep the capability isolated and lifecycle-safe:
    - `web-ag` must work without `infra`.
    - Repeated apply operations must be idempotent.
    - Removing `web-ag` must clean its managed
      output without removing PostHog …
  2. 2 · It ships a plugin

    The deliverable is a declarative plugin: a manifest plus managed templates, composed through the framework's existing seams. The core engine and unrelated capabilities stay untouched.

    {
      "name": "web-ag",
      "requires": ["web"],
      "replace": [ { "from": "files/src/_lib/ag.ts",
        "to": "web/src/_lib/ag.ts" } ],
      "mergeJson": { "web/package.json": {
        "dependencies": {
          "ag-charts-enterprise": "14.0.0",
          "ag-grid-enterprise": "36.0.0", … }
      } }, …
    }
  3. 3 · Grading is generated behavior

    Generate → Execute → Recompose → Remove

    The verifier stamps out real projects from the modified framework — alone, combined with other plugins in both orders, reapplied, and removed — and runs the generated code with stubs. Structure is never string-matched against a reference patch.

    4% core engine and unrelated capabilities are unchanged 4% web-ag resolves web and renders its managed helper 1% web-ag pins ag-charts-community 1% web-ag pins ag-charts-enterprise + 28 more weighted checks

Pass rate per task
Tasks010: 10102030: 130405060708090100median 17%

Pass rate (%) · 11.1% of 9 scored trials pass

Agent steps per task
Tasks012020406080100: 2100120140+median 105

Median steps per trial · 2 tasks

Trial runtime
Trials0123<5m: 1<5m5–10m: 25–10m10–15m: 210–15m15–20m: 315–20m20–25m: 120–25m25–30m: 125–30m30m+median 15m

Elapsed runtime · 10 timed trials

2 of 2 tasks
Public trials
v0.2.160.8%7 attempts0 / 619m 31s
v0.2.193.3%3 attempts1 / 38m 33s