Tasks & category breakdown
Terminal-Bench uses binary pass/fail scoring: a task scores 1 if all verifier checks pass on the output produced within the task’s time limit, and 0 otherwise, weighted equally across all 24 tasks. Elapsed time and token consumption do not affect the score, and missing the time limit counts as a failure. The latency and usage metrics below are reported so readers can estimate runtime and cost for their own workloads.
Tasks are grouped below by their official Terminal-Bench categories (task.toml). The two failed tasks are examined in the failure analysis section.
| Official category | Liuma (Pass@1) | Claude Code (PowerShell, 2x) | Tasks covered |
|---|---|---|---|
| Software Engineeringsoftware-engineering | 8/8 | 14/16 | Logic-gate circuit for fib(isqrt(N)); parse pseudocode from image; gRPC key-value store; C/Python polyglot; regex-only legal chess move generator; self-interpreting Scheme metacircular evaluator; LLaMA pipeline-parallel training; tensor-parallel linear layers |
| Data Processingdata-processing | 3/3 | 6/6 | Summarize log levels by date range; merge JSON/CSV/Parquet user records; regex matching dates on IPv4 log lines |
| Data Sciencedata-science | 2/3 | 5/6 | Find top MTEB Scandinavian leaderboard model; retrieve rank-5 document with specified embedding model (failed); optimize slow SQLite query |
| Debuggingdebugging | 2/2 | 4/4 | Merge two git bundles and resolve conflicts; recover records from a truncated SQLite database |
| Machine Learningmachine-learning | 2/2 | 4/4 | Construct probability distribution meeting bidirectional KL constraints; schedule LLM inference batching plans |
| Scientific Computingscientific-computing | 2/2 | 3/4 | Fit graphene Raman spectrum G/2D peaks; optimize MuJoCo model to run within 60% of baseline simulation time |
| Data Queryingdata-querying | 1/1 | 2/2 | Write SPARQL query against a university knowledge graph |
| File Operationsfile-operations | 0/1 | 0/2 | Transcribe player commands from a Zork gameplay video (timeout) |
| Model Trainingmodel-training | 1/1 | 2/2 | Reconstruct PyTorch model architecture from weights and fine-tune the output layer |
| Personal Assistantpersonal-assistant | 1/1 | 2/2 | Schedule a meeting across three calendars and preference constraints |
| Total | 22/24 | 42/48 | Official difficulty: Hard 6/7, Medium 16/17 (Claude Code PowerShell baseline: Hard 11/14, Medium 31/34) |
Completion time & time-limit headroom
Completion time is measured from task dispatch to the last modification timestamp of the target output file captured in the deadline snapshot. Among the 22 passing tasks, 11 finished within 2 minutes (50%), 13 within 5 minutes, and 17 within 10 minutes, with a median of 2:03. The tightest finish was MuJoCo simulation optimization (tune-mjcf), where model.xml was written at 14:48—just 12 seconds before the 15-minute cutoff.
Bar length indicates the fraction of each task’s time limit consumed before the passing file was written. Hover or focus any row with Tab to inspect the target artifact and verifier checks.
query-optimize wrote sol.sql at 7:42 and then ran the original slow query locally for full row-by-row equivalence verification, concluding its session at minute 31. Scoring always uses the directory snapshot captured at the task’s time limit.Case studies
SQL query optimization (query-optimize): 1.5× faster than the reference solution
I implemented a sql query but it is not optimized. I have saved it in /app/my-sql-query.sql. Please make the query as efficient as possible while ensuring that the same output is produced. (Dataset: Open English WordNet, 50 MB SQLite)
The original query ran two nested correlated subqueries per word to identify its most frequent synset. Liuma refactored it into staged CTEs—aggregating and truncating to the top 500 words first, then applying ROW_NUMBER() only over those 500 words. The verifier enforces a single SQL statement, read-only execution, exact row-for-row output equivalence, and faster latency than the benchmark’s own optimized reference. Across 5 timed runs, median execution was 0.935 s for Liuma versus 1.429 s for the reference solution.
Inspect Liuma’s generated sol.sql
WITH agg AS (
SELECT
s.wordid AS wordid,
COUNT(*) AS total_senses,
COUNT(DISTINCT s.synsetid) AS total_synsets,
COUNT(DISTINCT syn.domainid) AS distinct_domains,
COUNT(DISTINCT syn.posid) AS distinct_posids
FROM senses AS s
JOIN synsets AS syn ON syn.synsetid = s.synsetid
GROUP BY s.wordid
HAVING COUNT(*) >= 2
AND COUNT(DISTINCT s.synsetid) >= 2
AND COUNT(DISTINCT syn.domainid) >= 2
),
best AS (
SELECT wordid, total_senses, total_synsets, distinct_domains, distinct_posids
FROM agg
ORDER BY total_senses DESC, total_synsets DESC, distinct_domains DESC, wordid ASC
LIMIT 500
),
synset_counts AS (
SELECT s.wordid AS wordid, s.synsetid AS synsetid, COUNT(*) AS c
FROM senses AS s
JOIN best AS b ON b.wordid = s.wordid
GROUP BY s.wordid, s.synsetid
),
top_synset AS (
SELECT wordid, synsetid, c
FROM (
SELECT
wordid,
synsetid,
c,
ROW_NUMBER() OVER (PARTITION BY wordid ORDER BY c DESC, synsetid ASC) AS rn
FROM synset_counts
)
WHERE rn = 1
)
SELECT
w.wordid AS word_id,
w.word AS word,
b.total_synsets,
b.total_senses,
b.distinct_domains,
b.distinct_posids,
t.synsetid AS top_synsetid,
t.c AS top_synset_sense_count
FROM best AS b
JOIN words AS w ON w.wordid = b.wordid
JOIN top_synset AS t ON t.wordid = b.wordid
ORDER BY b.total_senses DESC, b.total_synsets DESC, b.distinct_domains DESC, w.wordid ASC
LIMIT 500;Tensor-parallel linear layers (torch-tensor-parallelism): solved in ~1 minute, 13/13 distributed tests
Implement tensor parallelism for linear layers using PyTorch. Create the file /app/parallel_linear.py and implement ColumnParallelLinear / RowParallelLinear …
Liuma implemented Megatron-LM sharding for ColumnParallelLinear (output-dimension weight sharding with all_gather) and RowParallelLinear (input-dimension sharding with all_reduce). The verifier tested 1, 2, and 4 distributed ranks with and without bias, comparing both forward outputs and backward gradients—passing all 13 cases. In the public PowerShell baseline, Claude Code passed 1 of 2 attempts on this task.
Scheme metacircular evaluator (schemelike-metacircular-eval): self-bootstrapping interpreter in 5:48
Write a file eval.scm that is a metacircular evaluator capable of interpreting the scheme-like language implemented by interp.py … Your interpreter should be able to interpret (1) each of the test programs in test/, and (2) itself.
The verifier runs 63 test programs—including 31 hidden tests not present in the agent’s workspace—three ways each: directly via interp.py, interpreted by eval.scm, and double-interpreted via eval.scm interpreting itself. All three outputs must match identically. The version written at 5:48 passed all 63 programs.
Failure analysis
MTEB semantic retrieval (mteb-retrieve · Medium · 30m limit): query encoding mismatch
This task asks for the rank-5 document by cosine similarity for the query "terminal-bench" using pinned versions of bge-small-zh-v1.5 and mteb. Liuma wrote result.txt at 7:18, passing the existence check but failing content verification (1/2): it output the HumanEval row rather than the expected MTEB: Massive Text Embedding Benchmark row. Execution logs show Liuma’s script computed rankings both with and without the retrieval instruction prefix, then selected the unprefixed ranking. In the public PowerShell baseline, Claude Code passed 1 of 2 attempts.
Zork gameplay transcription (extract-moves-from-video · Hard · 30m limit): throughput bottleneck on long video
This task requires transcribing every player command from a Zork gameplay recording into solution.txt. No output file existed at the 30-minute cutoff, scoring 0/2 (timeout). Dense frame sampling and visual text extraction drove far higher per-task overhead than standard terminal tasks (70 model calls and 5.17M tokens already spent within 30 minutes). Allowing execution to continue past the cutoff eventually produced a transcript above the 90% similarity threshold, but even excluding interactive pauses, net execution time to the first passing transcript was ~88 minutes—nearly 3× the limit. The failure reflects long-video throughput and strategy overhead rather than an unsolvable task. Claude Code failed both attempts in the public baseline as well.
Calls, tokens & tool distribution
Figures below include only requests issued within each task’s time limit. Across all 24 tasks, Liuma made 726 model calls totaling approximately 56.57M tokens: 53.12M cached input tokens (95.4% of all input tokens), 2.56M uncached input tokens, and 0.89M output tokens. The per-task median was 25 calls and 1.21M tokens. The three highest-usage tasks were long-horizon reasoning and search tasks—regex-chess (11.83M), mteb-leaderboard (7.92M), and schemelike-metacircular-eval (5.96M)—all three of which passed.
Because unit pricing was not configured in the evaluation environment, we report reproducible raw token counts across all three buckets without third-party dollar estimates. Download the CSV below and multiply uncached input, cached input, and output tokens by your own API rates to compute exact cost.
Tool telemetry confirms that nearly all execution occurred natively on the Windows host. Within task time limits, Liuma logged 765 tool calls: 339 local PowerShell command executions (used on all 24 tasks), 195 file writes, and 58 file edits; Liuma’s built-in cloud Linux sandbox was invoked only 10 times.
Per-task results & raw data
| Task ID & summary | Category | Difficulty | Result · checks | Output time | Limit (m) | Claude Code (PS) | Calls | Total tokens |
|---|---|---|---|---|---|---|---|---|
circuit-fibsqrtLogic-gate circuit for fib(isqrt(N)) | Software Eng. | Hard | Pass · 3/3 | 11:12 | 60 | 2/2 | 26 | 2.04M |
code-from-imageParse pseudocode from image and evaluate | Software Eng. | Medium | Pass · 2/2 | 0:12 | 20 | 2/2 | 6 | 0.16M |
constraints-schedulingSchedule meeting across three calendars | Personal Asst. | Medium | Pass · 3/3 | 0:30 | 20 | 2/2 | 10 | 0.35M |
distribution-searchConstruct distribution with bidirectional KL bounds | Machine Learning | Medium | Pass · 4/4 | 1:54 | 60 | 2/2 | 11 | 0.49M |
extract-moves-from-videoTranscribe player commands from Zork video | File Ops | Hard | Timeout · 0/2 | — | 30 | 0/2 | 70 | 5.17M |
kv-store-grpcImplement gRPC key-value store | Software Eng. | Medium | Pass · 7/7 | 1:12 | 15 | 1/2 | 21 | 0.79M |
llm-inference-batching-schedulerPlan LLM inference batching schedules | Machine Learning | Hard | Pass · 6/6 | 9:36 | 30 | 2/2 | 39 | 3.91M |
log-summary-date-rangesSummarize log levels across date ranges | Data Processing | Medium | Pass · 2/2 | 0:24 | 15 | 2/2 | 19 | 1.10M |
merge-diff-arc-agi-taskMerge two git bundles and resolve conflicts | Debugging | Medium | Pass · 5/5 | 3:18 | 15 | 2/2 | 39 | 2.32M |
mteb-leaderboardQuery top MTEB Scandinavian leaderboard model | Data Science | Medium | Pass · 2/2 | 15:24 | 60 | 2/2 | 84 | 7.92M |
mteb-retrieveRetrieve rank-5 document with embedding model | Data Science | Medium | Fail · 1/2 | 7:18 | 30 | 1/2 | 27 | 1.18M |
multi-source-data-mergerMerge JSON, CSV, and Parquet user data | Data Processing | Medium | Pass · 3/3 | 0:42 | 15 | 2/2 | 16 | 0.55M |
polyglot-c-pyWrite valid C and Python polyglot program | Software Eng. | Medium | Pass · 1/1 | 1:48 | 15 | 2/2 | 6 | 0.26M |
pytorch-model-recoveryRecover PyTorch architecture and fine-tune head | Model Training | Medium | Pass · 5/5 | 2:00 | 15 | 2/2 | 14 | 0.56M |
query-optimizeOptimize slow SQLite query | Data Science | Medium | Pass · 6/6 | 7:42 | 15 | 2/2 | 34 | 2.02M |
raman-fittingFit graphene Raman G and 2D peaks | Scientific Comp. | Medium | Pass · 3/3 | 5:42 | 15 | 2/2 | 36 | 2.26M |
regex-chessGenerate legal chess moves via regex only | Software Eng. | Hard | Pass · 4/4 | 20:00 | 60 | 2/2 | 84 | 11.83M |
regex-logRegex matching dates on IPv4 log lines | Data Processing | Medium | Pass · 1/1 | 1:24 | 15 | 2/2 | 7 | 0.28M |
schemelike-metacircular-evalSelf-interpreting Scheme metacircular evaluator | Software Eng. | Medium | Pass · 1/1 | 5:48 | 40 | 2/2 | 51 | 5.96M |
sparql-universityWrite SPARQL query against knowledge graph | Data Querying | Hard | Pass · 3/3 | 2:06 | 15 | 2/2 | 14 | 0.54M |
sqlite-db-truncateRecover records from truncated SQLite file | Debugging | Medium | Pass · 1/1 | 2:00 | 15 | 2/2 | 16 | 0.78M |
torch-pipeline-parallelismImplement LLaMA pipeline-parallel training | Software Eng. | Hard | Pass · 3/3 | 10:24 | 15 | 2/2 | 36 | 2.62M |
torch-tensor-parallelismImplement tensor-parallel linear layers | Software Eng. | Hard | Pass · 3/3 | 1:06 | 15 | 1/2 | 24 | 1.23M |
tune-mjcfOptimize MuJoCo model simulation speed | Scientific Comp. | Medium | Pass · 4/4 | 14:48 | 15 | 1/2 | 36 | 2.25M |
Download per-task CSV → (includes output filenames, all three public baseline columns, and raw token buckets to reproduce every figure in this report)
Setup & methodology
- Benchmark & subset: Community Windows port of Terminal-Bench 2.1 (upstream commit
7131e437; pinned portb2f26533). Of the 26 ported tasks,feal-differential-cryptanalysisandmodel-extraction-relu-logitswere excluded, leaving a denominator of 24 tasks. All task prompts were passed verbatim. - System under test: Liuma 2026-12-03 build (commit
6de67183) paired with the Windows desktop execution agent (Desktop Runner 0.1.46) on a real Windows 11 host. Model routing used configdeepseek-flash(DeepSeek Flash family; run logs did not record an upstream snapshot ID). Automatic command approval was enabled on this dedicated evaluation host to match unattended benchmark conditions. Each task ran single-shot (Pass@1) in a fresh session and isolated working directory. - Timing & verification: Clocks started at task dispatch. At each task’s deadline, the working directory was snapshotted (all 24 captures began within 0.4 s of cutoff) and evaluated with the original verifier on Windows. Sessions were permitted to continue past the deadline without affecting the locked Pass@1 score.
- Verifier environment re-check: During initial verification of
merge-diff-arc-agi-task, the host’s Windows Git binary crashed on startup (4/5 checks passing). Re-running the original verifier against the unchanged deadline snapshot using Git inside WSL on the same host passed 5/5 checks.
