hf_mirrors/termgrade-environments
Datasets
Dataset viewer
Files & versions

TermGrade Environments: 1,004 executable Linux tasks

Part of TermGrade: graded environments and trajectories for terminal agents. Read the blog post.

1,004 executable environments · graded by 6 models · measured pass rates

Each task is a container, an instruction, and a pytest verifier, and each one ships a measured pass rate per model.

Companion release: ai-and/termgrade-trajectories, 36k agent episodes with the raw terminal output and per-test results for every trial here.


Quick start

Build the base image once. Every task Dockerfile is FROM dsbase-venv312:local, and every tests/test.sh calls /opt/verifier_venv/bin/pytest, which lives in the base:

docker build -t dsbase-venv312:local base_image/

Then build a task and run its reference solution against its own verifier, offline:

T=environments/task_00002_aa2b6f
docker build -t mytask:local $T/environment

c=$(docker run -d --network none mytask:local sleep 600)
docker exec $c sh -c 'mkdir -p /tests /logs/verifier'
docker cp $T/tests/.            $c:/tests/
docker cp $T/solution/solve.sh  $c:/solve.sh
docker exec $c sh -c 'cd /app && bash /solve.sh'
docker cp $T/tests/.            $c:/tests/     # restore pristine, as grading does
docker exec $c sh -c 'bash /tests/test.sh'
docker exec $c cat /logs/verifier/reward.txt   # -> 1
docker rm -f $c

To evaluate a model instead, give it the container and instruction.md, then run the last three steps.

The image has no test files. The suite is copied in at scoring time so the agent cannot read what it is graded on. Copy it in yourself, as above, or the tests cannot run.


What ships

filesizecontents
environments/<task>/36 MBinstruction.md, environment/Dockerfile + setup.sh, tests/, solution/solve.sh
task_source.jsonl21 MBevery task's instruction, tests, runner, reference solution, setup and Dockerfile inline
labels.jsonl0.9 MBper (task, model): pass_rate, band, n_counted, k
tasks.jsonl0.2 MBper task: checksum, split, oracle_verified

task_source.jsonl is environments/ as one table, so you can read what a task asks and what its tests check without cloning 1,004 directories. To build a task, use the directories.


Measured difficulty

modelkpass@1
google/gemma-4-31B-it80.4986
google/gemma-4-31B-it (thinking)80.5774
Qwen/Qwen3.6-27B80.6320
moonshotai/Kimi-K380.6770 †
deepseek-ai/DeepSeek-V4-Pro20.6853 †**
zai-org/GLM-5.220.6858 †

† Kimi-K3, DeepSeek-V4-Pro and GLM-5.2 are statistically tied. Paired per-task across all 1,004 tasks: GLM−DeepSeek +0.05pp (p=0.97), Kimi−GLM −0.87pp (p=0.42), Kimi−DeepSeek −0.82pp (p=0.51). Qwen3.6-27B is separated from all three (p<0.001).

** DeepSeek-V4-Pro numbers are for the build we graded, not the 0813 release, a newer build that shipped during our grading window. Every trial records started_at, so you can see when each one ran.

36,144 counting trials (62,481 including beyond-k), Terminus-2 scaffold via Harbor, under a 12h wall-clock scoring budget.


The attempts behind these labels are released too. ai-and/termgrade-trajectories carries all 36,144 trials, 21,910 passing and 14,234 failing, with per-assertion verdicts.

Splits and train/test overlap

split matters. 202 of the 1,004 tasks (20.1%) were used to train or validate our own model: train151 (113) and heldout120 (89). Evaluating on the full corpus therefore mixes in our training data. split == "unseen" (802 tasks) is the clean subset for that comparison.

These labels tell you which released tasks our model saw; it never saw the 802 unseen ones. They are not enough to rebuild our training set from this repo alone: we trained on 151 tasks and validated on 120, and 69 of those 271 are not here (a synthetic subset left out for provenance reasons, plus tasks quarantined after grading because they could not be solved as written). All 271 are published in ai-and/termgrade-bandcentral-gemma4-31b-bash, so the exact split can be rebuilt from the two repos together.

Difficulty depends on the model and the scaffold. These labels are a starting point. If you are selecting training data, regrade against your own model, since the useful band differs a lot from model to model.

oracle_verified. solution/solve.sh is verified to pass its own tests inside the built image. Any task where that could not be confirmed is flagged.


Provenance

Generated by DeepSeek-V4-Pro, then filtered by execution: 66,165 candidate task directories were written and 1,004 survived (1.5%). A task is kept only if its reference solution passes its own verifier, offline, in the built image.

Checked for overlap against Terminal-Bench 2.1 and for near-duplicates within the corpus; no matches at either.

Grading integrity

The tests are not in the container during the attempt. They are copied in from a clean host-side copy at scoring time, so the agent cannot read what it is graded on. Grading runs offline (--network none) in a freshly built container.

On the secret scanner

Hugging Face's scanner reports Lob API keys here. They are false positives: a Lob key is test_ followed by ~32 characters, and a pytest function is test_backup_special_character_filenames. There are no credentials in this repo.

Citation

If you use TermGrade, please cite:

@misc{calik2026termgrade,
  title        = {{TermGrade}: 1k Graded Terminal Environments, 36k Trajectories, and the {RL} Run They Trained},
  author       = {Calik, Yagiz and Wu, Jianbo and Hara, Shimpei},
  year         = {2026},
  month        = oct,
  howpublished = {\url{https://www.aiand.com/newsroom/termgrade}},
  note         = {ai\& Research blog post}
}