name stringclasses 10
values | instruction stringclasses 10
values | description stringclasses 10
values | keywords listlengths 1 6 | schema_version stringclasses 1
value | config unknown | metadata unknown | files listlengths 7 10 | location stringclasses 10
values |
|---|---|---|---|---|---|---|---|---|
terminal-bench/cancel-async-tasks | Create a Python function called `async run_tasks(tasks: list[Callable[[], Awaitable[None]]], max_concurrent: int) -> None` where each task is an async job to be run and `max_concurrent` is the max number of tasks that can be run concurrently. Put the function in a file called `/app/run.py` so that it can be imported us... | Evaluates the ability to implement async task concurrency control with proper cleanup on cancellation, including the edge case of queued tasks. | [
"async",
"concurrency",
"python",
"software-engineering"
] | 1.1 | {
"schema_version": "1.1",
"artifacts": [],
"task": {
"name": "terminal-bench/cancel-async-tasks",
"description": "Evaluates the ability to implement async task concurrency control with proper cleanup on cancellation, including the edge case of queued tasks.",
"keywords": [
"async",
"concu... | {
"author_name": "Alex Shaw",
"author_email": "alexgshaw64@gmail.com",
"difficulty": "hard",
"category": "software-engineering",
"tags": [
"async",
"concurrency",
"python"
],
"expert_time_estimate_min": 120,
"junior_time_estimate_min": 600
} | [
".gitignore",
"README.md",
"environment/Dockerfile",
"instruction.md",
"task.toml",
"tests/test.py",
"tests/test.sh",
"tests/test_outputs.py"
] | environment/tasks/cancel-async-tasks |
terminal-bench/constraints-scheduling | Find a 1-hour meeting slot for Alice, Bob, and Carol during January 15-19, 2024 (business hours: 9 AM - 6 PM, Monday-Friday) that satisfies their availability constraints and existing calendar conflicts.
Availability & Preferences:
- Alice: Prefers mornings (9 AM - 12 PM), can do early afternoons (12-2 PM) if needed. ... | Find an optimal 1-hour meeting slot for three people with complex availability constraints by parsing ICS calendars and applying constraint satisfaction with tie-breaking preferences. | [
"calendar",
"scheduling",
"constraint-satisfaction",
"ics-parsing",
"temporal-reasoning",
"personal-assistant"
] | 1.1 | {
"schema_version": "1.1",
"artifacts": [],
"task": {
"name": "terminal-bench/constraints-scheduling",
"description": "Find an optimal 1-hour meeting slot for three people with complex availability constraints by parsing ICS calendars and applying constraint satisfaction with tie-breaking preferences.",
... | {
"author_name": "Derek Pham",
"author_email": "derek.pham@snorkel.ai",
"difficulty": "medium",
"category": "personal-assistant",
"tags": [
"calendar",
"scheduling",
"constraint-satisfaction",
"ics-parsing",
"temporal-reasoning"
],
"estimated_duration_sec": 1800,
"expert_time_estimat... | [
".gitignore",
"README.md",
"environment/Dockerfile",
"environment/inputs/alice_calendar.ics",
"environment/inputs/bob_calendar.ics",
"environment/inputs/carol_calendar.ics",
"instruction.md",
"task.toml",
"tests/test.sh",
"tests/test_outputs.py"
] | environment/tasks/constraints-scheduling |
terminal-bench/db-wal-recovery | I have a database in WAL (Write-Ahead Logging) mode in /app/.
However, the WAL file appears to be corrupted or encrypted. When you try to
access the database, SQLite may only show the base data (5 records) instead
of all 11 records that should be there.
Your task is to:
1. Fix the WAL file so SQLite can read it
2. ... | Tests the ability to decrypt an XOR-encrypted SQLite WAL file and recover complete database contents including write-ahead log changes. | [
"database",
"encryption",
"recovery",
"file-operations"
] | 1.1 | {
"schema_version": "1.1",
"artifacts": [],
"task": {
"name": "terminal-bench/db-wal-recovery",
"description": "Tests the ability to decrypt an XOR-encrypted SQLite WAL file and recover complete database contents including write-ahead log changes.",
"keywords": [
"database",
"encryption",
... | {
"author_name": "Xiangning Lin",
"author_email": "xiangnlin@alumni.cmu.edu",
"difficulty": "medium",
"category": "file-operations",
"tags": [
"database",
"encryption",
"recovery"
],
"expert_time_estimate_min": 45,
"junior_time_estimate_min": 240
} | [
".gitignore",
"README.md",
"environment/Dockerfile",
"environment/main.db",
"environment/main.db-wal.encrypted",
"instruction.md",
"task.toml",
"tests/test.sh",
"tests/test_outputs.py"
] | environment/tasks/db-wal-recovery |
terminal-bench/extract-elf | I have provided a file a.out that's a compiled C binary. Write me a program extract.js that, when run with `node extract.js /app/a.out > out.json` will extract memory values from the binary and output them as a JSON object with memory addresses as keys and their values as integers.
Example output format: {"4194304": 1... | Evaluates ability to parse ELF binary format and extract memory values from executable sections using Node.js. | [
"file-operations"
] | 1.1 | {
"schema_version": "1.1",
"artifacts": [],
"task": {
"name": "terminal-bench/extract-elf",
"description": "Evaluates ability to parse ELF binary format and extract memory values from executable sections using Node.js.",
"keywords": [
"file-operations"
],
"authors": [
{
"na... | {
"author_name": "Nicholas Carlini",
"author_email": "nicholas@carlini.com",
"difficulty": "medium",
"category": "file-operations",
"tags": [],
"expert_time_estimate_min": 30,
"junior_time_estimate_min": 240
} | [
".gitignore",
"README.md",
"environment/Dockerfile",
"environment/task-deps/hi.c",
"instruction.md",
"task.toml",
"tests/test.sh",
"tests/test_outputs.py"
] | environment/tasks/extract-elf |
terminal-bench/fix-code-vulnerability | You need to identify and fix the vulnerability in the code according to the Common Weakness Enumeration (CWE).
The following is a GitHub repository located in the /app folder.
Here is a simple introduction of this repository: Bottle is a fast, simple and lightweight WSGI micro web-framework for Python. It is distrib... | Evaluates the ability to identify and fix a CRLF injection vulnerability (CWE-93) in HTTP header handling code by adding input validation to reject control characters. | [
"security",
"code-vulnerability",
"common-weakness-enumeration"
] | 1.1 | {
"schema_version": "1.1",
"artifacts": [],
"task": {
"name": "terminal-bench/fix-code-vulnerability",
"description": "Evaluates the ability to identify and fix a CRLF injection vulnerability (CWE-93) in HTTP header handling code by adding input validation to reject control characters.",
"keywords": [... | {
"author_name": "Yue Liu",
"author_email": "yliu@u.nus.edu",
"difficulty": "hard",
"category": "security",
"tags": [
"security",
"code-vulnerability",
"common-weakness-enumeration"
],
"expert_time_estimate_min": 120,
"junior_time_estimate_min": 240
} | [
".gitignore",
"README.md",
"environment/Dockerfile",
"instruction.md",
"task.toml",
"tests/test.sh",
"tests/test_outputs.py"
] | environment/tasks/fix-code-vulnerability |
terminal-bench/fix-git | I just made some changes to my personal site and checked out master, but now I can't find those changes. Please help me find them and merge them into master.
| Evaluates the ability to recover lost Git commits from a detached HEAD state and merge them back into the master branch. | [
"coding",
"version-control",
"software-engineering"
] | 1.1 | {
"schema_version": "1.1",
"artifacts": [],
"task": {
"name": "terminal-bench/fix-git",
"description": "Evaluates the ability to recover lost Git commits from a detached HEAD state and merge them back into the master branch.",
"keywords": [
"coding",
"version-control",
"software-engi... | {
"author_name": "TheMikeMerrill",
"author_email": "mchlmerrill@gmail.com",
"difficulty": "easy",
"category": "software-engineering",
"tags": [
"coding",
"version-control"
],
"expert_time_estimate_min": 5,
"junior_time_estimate_min": 20
} | [
".gitignore",
"README.md",
"environment/Dockerfile",
"environment/resources/patch_files/about.md",
"environment/resources/patch_files/default.html",
"environment/setup.sh",
"instruction.md",
"task.toml",
"tests/test.sh",
"tests/test_outputs.py"
] | environment/tasks/fix-git |
terminal-bench/git-leak-recovery | A secret was accidentally committed to this repository in /app and then removed by rewriting history.
Please
1. recover the secret and write it to a /app/secret.txt file.
2. clean up the secret in that repo to make sure it cannot be found anywhere in that repo.
3. make sure irrelevant files and commit messages rem... | Evaluates the ability to recover secrets from unreachable git objects and completely remove them from repository history while preserving legitimate commits. | [
"git",
"security",
"software-engineering"
] | 1.1 | {
"schema_version": "1.1",
"artifacts": [],
"task": {
"name": "terminal-bench/git-leak-recovery",
"description": "Evaluates the ability to recover secrets from unreachable git objects and completely remove them from repository history while preserving legitimate commits.",
"keywords": [
"git",
... | {
"author_name": "Yiwei Dai",
"author_email": "daiyiwei98@gmail.com",
"difficulty": "medium",
"category": "software-engineering",
"tags": [
"git",
"security"
],
"estimated_duration_sec": 45,
"expert_time_estimate_min": 30,
"junior_time_estimate_min": 60
} | [
".gitignore",
"README.md",
"environment/Dockerfile",
"environment/challenge-setup.sh",
"instruction.md",
"task.toml",
"tests/test.sh",
"tests/test_outputs.py"
] | environment/tasks/git-leak-recovery |
terminal-bench/log-summary-date-ranges | You are given multiple log files stored in /app/logs. Each log file name follows the pattern YYYY-MM-DD_<source>.log (e.g., 2025-08-10_db.log), indicating the date of the logs and their source. Each log line contains an event with a severity level. Your task is to analyze all logs and count how many times each severity... | Evaluates the ability to analyze date-stamped log files, calculate counts across multiple date ranges, and generate structured CSV output. | [
"log-analysis",
"report-generation",
"data-processing"
] | 1.1 | {
"schema_version": "1.1",
"artifacts": [],
"task": {
"name": "terminal-bench/log-summary-date-ranges",
"description": "Evaluates the ability to analyze date-stamped log files, calculate counts across multiple date ranges, and generate structured CSV output.",
"keywords": [
"log-analysis",
... | {
"author_name": "Orfeas Menis Mastromichalakis",
"author_email": "menisorfeas@gmail.com",
"difficulty": "medium",
"category": "data-processing",
"tags": [
"log-analysis",
"report-generation",
"data-processing"
],
"expert_time_estimate_min": 75,
"junior_time_estimate_min": 150
} | [
".gitignore",
"README.md",
"environment/Dockerfile",
"environment/log_generator_deterministic.py",
"instruction.md",
"task.toml",
"tests/test.sh",
"tests/test_outputs.py"
] | environment/tasks/log-summary-date-ranges |
terminal-bench/openssl-selfsigned-cert | Your company needs a self-signed TLS certificate for an internal development server. Create a self-signed certificate using OpenSSL with the following requirements:
1. Create a directory at `/app/ssl/` to store all files
2. Generate a 2048-bit RSA private key:
- Save it as `/app/ssl/server.key`
- Ensure proper ... | Evaluates an agent's ability to generate self-signed TLS certificates using OpenSSL, manage cryptographic keys with proper permissions, and create verification scripts. | [
"coding",
"file-operations",
"security",
"system"
] | 1.1 | {
"schema_version": "1.1",
"artifacts": [],
"task": {
"name": "terminal-bench/openssl-selfsigned-cert",
"description": "Evaluates an agent's ability to generate self-signed TLS certificates using OpenSSL, manage cryptographic keys with proper permissions, and create verification scripts.",
"keywords":... | {
"author_name": "Junhong Shen",
"author_email": "unknown",
"difficulty": "medium",
"category": "security",
"tags": [
"coding",
"file-operations",
"security",
"system"
],
"expert_time_estimate_min": 20,
"junior_time_estimate_min": 120
} | [
".gitignore",
"README.md",
"environment/Dockerfile",
"instruction.md",
"task.toml",
"tests/test.sh",
"tests/test_outputs.py"
] | environment/tasks/openssl-selfsigned-cert |
terminal-bench/regex-log | Write a regex expression that matches dates in the format YYYY-MM-DD appearing in lines that contain an IPv4 address in a log file.
If multiple dates are present in a line, the regex should match only the last date in that line.
Assume that February can have up to 29 days in all years, without distinguishing leap years... | Tests the ability to construct a complex regular expression that matches dates in log lines containing valid IPv4 addresses while handling edge cases and boundary conditions. | [
"regex",
"string-parsing",
"log-analysis",
"data-processing"
] | 1.1 | {
"schema_version": "1.1",
"artifacts": [],
"task": {
"name": "terminal-bench/regex-log",
"description": "Tests the ability to construct a complex regular expression that matches dates in log lines containing valid IPv4 addresses while handling edge cases and boundary conditions.",
"keywords": [
... | {
"author_name": "Orfeas Menis Mastromichalakis",
"author_email": "menisorfeas@gmail.com",
"difficulty": "medium",
"category": "data-processing",
"tags": [
"regex",
"string-parsing",
"log-analysis"
],
"expert_time_estimate_min": 45,
"junior_time_estimate_min": 180
} | [
".gitignore",
"README.md",
"environment/Dockerfile",
"instruction.md",
"task.toml",
"tests/test.sh",
"tests/test_outputs.py"
] | environment/tasks/regex-log |
Arena smoke test: the OpenEnv Terminal-Bench 2 fix-git task as source (environment/) and its built image as an OCI layout (images/fix-git/).
- Downloads last month
- -