SWE-bench and friends, without the broken-environment tax
Promigence runs SWE-bench-class benchmarks on environments verified before the instance starts and reproducible from a hash afterwards. Published work has found roughly a third of the hardest instances broken at the environment level, a tax paid out of every score computed on them.
Who this is for: Teams publishing or consuming SWE-bench, SWE-rebench, Terminal-Bench, SetupBench and similar results.
warm fork
at 200 concurrent, all served
end to end, through the CLI
Three things that are true of almost every team doing this
A third of the hardest instances do not set up
Breakage in public task sets is concentrated in exactly the instances that separate good agents from great ones, so scores computed across them are not wrong by a random amount.
Nobody can reproduce your run
A benchmark defined by a repo and a script measures the repo as much as the agent. Rebuild it six months later and you are comparing two different things.
The harness is fine; the fleet is the bottleneck
Most harnesses are fine. What fails at 500 instances is image pulls, concurrency limits and cold setup repeated per instance.
With Promigence underneath
One verified snapshot per instance family
Built once, verified once, forked per instance. Instances that cannot build show up as a list at build time, not as mysterious agent failures.
A hash you can put in the paper
snap_…names the snapshot by a hash of its contents. A re-run against it starts from the same files you had.Drop-in behind your existing harness
Adapters for common eval harnesses (pre-release), plus a compatibility SDK class so existing sandbox call sites keep working.
// Most existing sandbox call sites keep working through the compatibility class.
import { Sandbox } from "@promigence/sdk";
const sandbox = await Sandbox.create("swebench-django"); // a snapshot you built
await sandbox.commands.run("git apply /tmp/model_patch.diff");
const result = await sandbox.commands.run("pytest -q tests/");
await sandbox.kill(); // ← the episode ends here; billing stops
Language: typescriptHow do you run SWE-bench at scale?
Build each instance's environment once, prove it with the tests that define the instance, and give every attempt its own fresh copy. On Promigence a snapshot is stored only when its verify command passes, so an instance that cannot set up is rejected before any agent touches it. Per instance, you learn whether a failure was the environment or the agent. Pro runs up to 100 sandboxes at once and Max up to 500, each sandbox under a spend cap, and Harbor picks the Promigence environment with one flag and no patch.
How it works
- 01
Install the Harbor environment
If your instances are packaged as Harbor tasks, the
promigence-harborpackage adds an environment class to Harbor that runs them. It needs Python 3.12 or newer and pinsharbor>=0.23,<0.24, because Harbor's environment interface is not a stable API yet. Turning off Harbor's own usage telemetry is optional.
Language: bashpip install promigence-harbor export PROMIGENCE_API_KEY=... export PROMIGENCE_SPEND_CAP=5 export HARBOR_TELEMETRY=0 # optional: Harbor sends usage telemetry unless you turn it offFrom the guide Run Harbor tasks in a Promigence sandbox
- 02
Prove one task without a model key
Harbor's oracle agent runs the task's own
solution/solve.sh, which checks the environment and the verifier before you pay for a single model call. The reward lands injobs/<job>/<trial>/result.jsonas usual.
Language: bashharbor run --path ./hello-task --agent oracle \ --env promigence_harbor:PromigenceEnvironment \ --ek spend_cap=1 --ek sandbox_timeout_sec=900 --n-concurrent 1From the guide Run Harbor tasks in a Promigence sandbox
- 03
Run the dataset wide
Here
-n 32runs thirty-two trials at once, each in its own sandbox; a new account allows 20 at once, so start at 20 or below until your plan has room. Trials of one task share one snapshot, and each starts as a fresh copy of it. Tasks that name adocker_imageare pulled by Promigence directly, and Dockerfile tasks are built on your machine withdocker buildxand pushed to the registry inPROMIGENCE_REGISTRY.
Language: bashharbor run -p path/to/dataset -a claude-code -m anthropic/claude-sonnet-4-5 \ -e promigence_harbor:PromigenceEnvironment \ --ek spend_cap=5 --ek sandbox_timeout_sec=3600 -n 32From the guide Run Harbor tasks in a Promigence sandbox
- 04
Score the agent on environments that held
Next to each trial's result sits
promigence-<session_id>.json. It names the sandbox and the snapshot behind the trial, records the image digest, says whether the snapshot passed its verify step, and sorts any failure into one of four classes:env,env_definition,config,task. Environment failures raise their own exception type, so Harbor'sexception_infokeeps them apart from a wrong patch. Publish the count of broken environments next to the score.
What you get, in numbers
| Result | What | Conditions |
|---|---|---|
| 43.7 s | whole coding-agent task | 20 steps on a 3 GB repo, n=30, p50; 58.0 s under load Source |
| 0.66 s | agent step on a warm repo | edit, then type-check, 4 vCPU, n=30, p50; 0.80 s under load Source |
| about $0.03 | a ten-minute SWE-bench-class episode | clone, patch, run the failing test, small tier (2 vCPU / 4 GiB), list price Source |
| at most $0.17 | verified snapshot build | small tier; metered per second while it builds, capped at one hour Source |
What it costs
A single pass over a 500-instance benchmark through Harbor on the small tier (2 vCPU, 4 GiB), every trial given 10 minutes, 100 trials at once on the Pro plan. The instance count, the trial time and the build time are example inputs.
Trials: 500 × 600 s × $0.000046 per second = $13.80 if every trial used its full 10 minutes, which is the pricing page's figure of about $0.03 per ten-minute SWE-bench-class episode. Builds: at most one verified snapshot per task, billed per second while it runs and never more than $0.17 at small. With builds of three minutes each, 500 × 180 s × $0.000046 = $4.14, paid once.
Total: at most $13.80 a pass for the trials, plus about $4.14 of builds the first time in this example.
In Harbor, spend_cap is a dollar cap per sandbox run, and a run with no cap from --ek, PROMIGENCE_SPEND_CAP or your organization's default is refused. Driving the same pass from the CLI, promigence run quote prints its ceiling before anything starts, and --cap turns away any run whose quote is over your limit. Faster trials cost less, because the meter stops when the sandbox ends.
Security and limits
- One trial never sees another trial's files: each sandbox starts as a fresh copy of its task's snapshot, and no sandbox can address another.
- Every
--ekvalue is written into Harbor'sconfig.json, so the adapter refuses--ek api_key=...and the key stays in your environment. - Your patches and transcripts stay yours: no model is trained on your code, agent outputs or test results.
Questions
Does Terminal-Bench work on Promigence?
Yes, through Harbor. Install promigence-harbor, pass -e promigence_harbor:PromigenceEnvironment to harbor run, and every trial gets its own sandbox in place of a local container.
Do I need Docker on the machine that drives the benchmark?
You need Docker locally only for tasks that build from a Dockerfile. Those images are built with docker buildx and pushed to your registry; tasks that name a docker_image are pulled by Promigence directly.
What should I cite so others can reproduce my score?
Cite each environment's snapshot id together with the image digest from the trial record. The id comes from a hash of the snapshot's contents, and the snapshot is kept until you delete it, so a re-run months later starts from the files you had.
What happens to an instance whose environment will not build?
An instance whose environment cannot build or verify is rejected before any agent runs in it. Harbor's trial record classes it as env_definition, so it is counted as an environment problem and never as a wrong patch.
Can one trial's changes leak into another?
No. Each trial starts from its task's snapshot, whatever it writes is its own, and Harbor's stop() always ends the sandbox when the trial finishes.
How wide can a single pass go?
Set Harbor's -n to what your plan allows: 20 sandboxes at once on a new account, 100 on Pro, 500 on Max and 1,000 at Max's $500 level. Asking for more than the limit is refused before the sandbox starts, with an error code naming the limit.
What does one instance cost?
Ten minutes on the small tier costs about $0.03 at list. Billing is per second at $0.000046, so an instance that finishes in four minutes costs about $0.011.
Does it work with harnesses other than Harbor?
Yes: Inspect has its own provider with a guide, and anything else can drive the CLI or an SDK. The TypeScript SDK's compatibility Sandbox class keeps familiar sandbox calls working, as in the snippet above.
Run your own workload on it, free
Send a repo and the command you run against it, whatever that is: an eval suite, an RL rollout, a CI job, a queue of coding tasks. We build the environment once, run it a thousand times, and send back the timings, the failures and an exact price. Free, once, on your real workload.
- 1,000 runs of your own command, on your own repo
- What each one cost in wall clock, and anything that failed
- Whether a failure was your code or the environment
- An exact price for your real volume
Not ready to hand over a repo? Read the quickstart or check the numbers first.