Benchgen

Long-Horizon Terminal-Bench (LHTB) — Results

RankModelScore
1grok-4-50.505
2claude-sonnet-50.497
3claude-opus-4-80.492
4claude-fable-50.487
5gpt-5-60.451
6gpt-5-50.445
7minimax-m30.385
8claude-sonnet-4-60.373
9kimi-k2-7-code0.367
10glm-5-20.316
11qwen3-6-plus0.313
12deepseek-v4-pro0.307
13qwen3-7-max0.296
14hy30.288
15seed-2-1-pro0.286
16gemini-3-1-pro0.279
17gpt-5-40.272
18glm-5-10.267
19kimi-k2-60.255
20gpt-5-3-codex0.203
21grok-4-200.08
L

Long-Horizon Terminal-Bench (LHTB)

1 phaseActive

Agent benchmark with 46 hard, multi-hour terminal tasks and continuous partial-credit grading across 9 categories. Best model scores 0.505 mean reward.

Overview

Long-Horizon Terminal-Bench (LHTB)

Category Metric Tasks Saturation Created

Paper GitHub Dataset Leaderboard

Quick answer: Long-Horizon Terminal-Bench (LHTB) is an agent benchmark from Lehigh University and Tencent that drops a model into a Docker container with a goal requiring hundreds of dependent terminal actions — then grades the outcome with a hidden, fake-proof verifier using continuous partial credit. Across 46 tasks and 18 frontier models, the best result (Grok 4.5) is only 0.505 mean reward, and 29 of 46 tasks have never been fully solved by any model.

At a Glance

What it tests: Whether an AI agent can sustain coherent multi-step work inside a live terminal environment over a 90-minute budget — carrying state across hundreds of actions, recovering from dead ends, and knowing when a complex goal is actually complete.

Why it matters: Most agent benchmarks end within minutes; LHTB targets the regime where long-horizon state management and sustained reasoning are the limiting factor, not baseline task knowledge. It reveals a failure mode — losing the thread — that short benchmarks structurally cannot expose.

Known limitations: All baseline runs use the identical Terminus-2 harness, so scores reflect a specific scaffold rather than the model's raw capability. Evaluation cost is high ($2.50–$73 per task), limiting the number of providers who can submit fresh runs.

What Long-Horizon Terminal-Bench Measures

LHTB is built around three design axes that run through every task. First, each task demands a long horizon: solutions require hundreds of dependent actions and sustained state — a single task averages 69–93 minutes of wall-clock time and roughly 120–320 agent steps. Second, the benchmark actively resists shortcutting: a hidden verifier replays the agent's evidence using deterministic seeds and held-out answer keys so that claimed progress never counts — only replayed work does. Third, scoring uses a continuous graded reward rather than binary pass/fail. On tasks where nearly every frontier model scores zero under a strict threshold, partial credit is what keeps the ranking informative.

The 46 tasks span nine categories: software & reverse engineering, scientific computing, earth/climate & energy, multimodal & imaging, research reproduction, systems & security, professional (APEX) workflows, interactive games, and logic & constraint puzzles. Every task follows the same contract: a Docker container, an instruction file, a live environment, and a hidden test suite that grades the outcome. A task counts as solved at reward ≥ 0.95.

All baseline evaluations run under the Terminus-2 harness with a fixed 90-minute budget per task. The harness uses a JSON action parser, proactive context summarisation, and full terminal-session recording. No model-specific tools or bespoke agents are allowed; each model differs only in the API endpoint behind a single identical harness. A model that times out retains whatever partial credit the verifier can replay at the deadline.

Benchmark Specifications

FieldValue
Task categoryAgent / long-horizon terminal
MetricMean reward (0–1), solved at reward ≥ 0.95
Number of tasks46
Categories9
Budget per task90 minutes
Avg. steps per run~120–320 agent actions
HarnessTerminus-2 (identical for all models)
SaturationLow (best model: 0.505)
Created byZongxia Li et al. (Lehigh University / Tencent)
PaperarXiv:2607.08964
DatasetHuggingFace — IntelligenceLab/Long-Horizon-Terminal-Bench

How LHTB Is Scored

Each task yields a reward in the continuous range [0, 1]. Banded or proportional partial credit is awarded per task by a hidden verifier that replays the agent's evidence using seeded environments and held-out answer keys. A reward of exactly 0 means no verifiable progress at all; a reward ≥ 0.95 counts as a full solve. The headline metric is mean reward averaged over all 46 tasks. A secondary metric — solve count — reports how many tasks crossed the 0.95 threshold; this is a sparser, harder signal.

Partial credit matters because on tasks of this difficulty, binary scoring compresses nearly every model to zero. In the published runs, 7% of all 782 model-task pairs crossed the solve threshold; under strict pass/fail, the other 93% would be indistinguishable. The continuous reward spreads that mass: more than half of all runs land in the low-partial band (0–0.25), where models differ by how far they get before losing the thread.

State-of-the-Art Results

RankModelMean RewardSolved (≥0.95)SourceDate
1Grok 4.50.50513/46 (28%)LHTB leaderboard2026-07
2Claude Sonnet 50.4978/46 (17%)LHTB leaderboard2026-07
3Claude Opus 4.80.4929/46 (20%)LHTB leaderboard2026-07
4Claude Fable 50.48712/46 (26%)LHTB leaderboard2026-07
5GPT-5.6 Sol0.4517/46 (15%)LHTB leaderboard2026-07
6GPT-5.50.4457/46 (15%)LHTB leaderboard2026-07
7MiniMax M30.3853/46 (7%)LHTB leaderboard2026-07
8Claude Sonnet 4.60.3734/46 (9%)LHTB leaderboard2026-07
9Kimi K2.7 Code0.3673/46 (7%)LHTB leaderboard2026-07
10GLM 5.20.3161/46 (2%)LHTB leaderboard2026-07
11Qwen3.6 Plus0.3131/46 (2%)LHTB leaderboard2026-07
12DeepSeek V4 Pro0.3073/46 (7%)LHTB leaderboard2026-07
13Qwen3.7 Max0.2962/46 (4%)LHTB leaderboard2026-07
14Hy30.2881/46 (2%)LHTB leaderboard2026-07
15Seed 2.1 Pro0.2862/46 (4%)LHTB leaderboard2026-07
16Gemini 3.1 Pro0.2792/46 (4%)LHTB leaderboard2026-07
17GPT-5.40.2721/46 (2%)LHTB leaderboard2026-07
18GLM 5.10.2672/46 (4%)LHTB leaderboard2026-07
19Kimi K2.60.2550/46 (0%)LHTB leaderboard2026-07
20GPT-5.3 Codex0.2032/46 (4%)LHTB leaderboard2026-07
21Grok 4.200.0800/46 (0%)LHTB leaderboard2026-07

Scores sourced from the LHTB paper and official leaderboard (Li et al. 2026). All runs use the Terminus-2 harness with a 90-minute budget.

Price Is Not Performance

A striking result from the LHTB paper is the weak correlation between cost and quality. Per-task spend ranges nearly 30×, from approximately $2.50 (Hy3) to $73 (Claude Fable 5), while mean reward spans only 2.5× from the best to worst result. Grok 4.5 posts the top mean reward at roughly $11 per task — combining the best score with low cost. MiniMax M3 and Qwen3.6 Plus deliver 60–80% of the top score at $4–6 per task, making them the value-efficient picks for production workloads that require repeated long-horizon runs.

LHTB on Benchgen

No Benchgen results yet — be the first to run Long-Horizon Terminal-Bench.

LHTB vs Other Benchmarks

BenchmarkWhat it testsTasksMetricSaturation
LHTBLong-horizon multi-step terminal tasks46Mean reward (0–1)Low
TerminalBench 2.1Long-horizon terminal & shell interactions% successLow
SWE-bench VerifiedReal GitHub issue resolution500% resolvedMedium
SWE-bench ProHarder real-world software engineering% resolvedLow
CyberGymVulnerability reproduction1,507% successLow

Run Long-Horizon Terminal-Bench on Your Model

Comparing long-horizon terminal performance across model versions is precisely the kind of regression-sensitive evaluation where Benchgen adds the most value. Because LHTB tasks run for 60–90 minutes each and use hidden verifiers, a single ad-hoc run cannot tell you whether an improvement in one update was offset by a regression in another. Running LHTB through Benchgen gives you version-controlled, reproducible results with trajectory-level diagnostics — so you can see not just whether the score improved, but where and why the agent lost the thread.

Top-performing models: Claude Sonnet 5, Claude Opus 4.8, Claude Fable 5, GPT-5.6 Sol, GPT-5.5

Related benchmarks: TerminalBench 2.1, SWE-bench Verified, SWE-bench Pro, CyberGym, TAU3 Banking

Frequently Asked Questions

What is Long-Horizon Terminal-Bench?

Long-Horizon Terminal-Bench (LHTB) is a benchmark that evaluates AI agents on 46 hard, long-duration terminal tasks across 9 categories. Each task runs inside a Docker container, requires hundreds of dependent actions over a 90-minute budget, and is graded by a hidden verifier using continuous partial credit (0–1). It was created by Zongxia Li et al. from Lehigh University and Tencent and released in July 2026.

What does a good score look like on LHTB?

The best published result as of July 2026 is 0.505 mean reward (Grok 4.5, 13/46 tasks solved). A score above 0.40 places a model in the top tier. 29 of 46 tasks have never been solved (reward ≥ 0.95) by any model, so the benchmark is far from saturation.

Who created Long-Horizon Terminal-Bench?

LHTB was created by Zongxia Li, Zhongzhi Li, Yucheng Shi, Ruhan Wang, Junyao Yang, Zhichao Liu, Xiyang Wu, Anhao Li, Yue Yu, Ninghao Liu, Lichao Sun, Haotao Mi, and Leowei Liang, affiliated with Lehigh University and Tencent. The paper is available at arXiv:2607.08964.

How does LHTB differ from TerminalBench?

Both benchmarks evaluate AI agents on terminal tasks, but they differ in scope and difficulty. TerminalBench (version 2.1) measures reliability across CLI tasks at shorter time horizons and uses binary % success. LHTB specifically targets tasks that take 60–90 minutes per attempt and average 120–320 agent steps, using continuous partial-credit grading to maintain signal where binary scoring would assign near-universal zeros. LHTB also uses hidden, replay-based verifiers that make shortcutting and reward hacking unprofitable.

Why does LHTB use partial credit instead of binary pass/fail?

At the difficulty level targeted by LHTB, strict binary pass/fail collapses nearly all frontier models to zero — 10 of the 18 evaluated models solve zero tasks outright under a perfect-score threshold, even though many make substantial partial progress. Continuous partial credit preserves the ranking signal by distinguishing an agent that reconstructs 70% of a pipeline from one that reconstructs 20%, even if neither fully passes.