Skip to content
The research frontier Frontier 28 min read

Computer-use and long-horizon agents

An agent is a model in a loop: observe, think, act, observe again. The frontier question is no longer whether models can use a computer, but for how long they can keep going before a mistake ends the run. The single most useful idea on this page is that the horizon an agent can sustain is set by its per-step error rate, so halving the errors doubles the horizon.

10,000 ft

Until 2022 a language model answered; it did not do. Agents and tool use changed that: a model emits an action (a function call, a shell command, a click), a harness executes it, and the result comes back as the next observation. Two things made this a frontier rather than a demo. First, reasoning models trained with RL on verifiable rewards became good at multi-step work with checkable outcomes, such as fixing a repository until its tests pass. Second, from October 2024 models were given the same interface people use, a screen, a mouse and a keyboard, so any software became a possible tool. What limits agents now is horizon: a task that takes a skilled person minutes is usually done; one that takes a day usually is not. This page connects that limit to reliability maths, to how labs measure it, and to the levers (context engineering, verification, RL in environments) that are pushing it out. The safety side, an agent that can be hijacked by text it reads, is covered in guardrails and security and red-teaming.

2,000 ft

  1. The loop. At each step the agent sees an observation (screenshot, accessibility tree, terminal output), reasons, and emits one action. The environment changes; repeat until the agent declares it is done.
  2. Two kinds of interface. Computer use acts through pixels and keystrokes, so it works on any software but must solve visual grounding. Tool and code agents act through APIs and shells, which are more precise but only reach what has an API.
  3. Measurement. Benchmarks moved from single answers to tasks in live environments (WebArena, OSWorld, SWE-bench, τ-bench). METR's time horizon rescales them all to one number: the length of task, in skilled-human minutes, that an agent completes half the time.
  4. The trend. That horizon went from seconds (GPT-2, 2019) to roughly an hour (early 2025) to many hours (2026), doubling every few months, with wide error bars.
  5. The limit. Success over \(n\) steps decays like \(p^n\). Long horizons need tiny per-step error, recovery from mistakes, and a way to check work.
  6. The levers. RL on real tasks, better agent–computer interfaces, context management, verifiers, and grounding models.

One step of a computer-use agent
One step of a computer-use agent. task + history, observe screenshot, a11y tree, terminal output, policy model think, then choose one action, act click(x,y), type, key, shell command, API call, environment OS, browser, repo, other people's servers, check tests, assertions, human approval, context and memory compaction, notes, new state, done?One step of a computer-use agent. task + history, observe screenshot, a11y tree, terminal output, policy model think, then choose one action, act click(x,y), type, key, shell command, API call, environment OS, browser, repo, other people's servers, check tests, assertions, human approval, context and memory compaction, notes, new state, done?

Ground level

From answering to acting: how we got here

The modern agent was assembled from a handful of ideas, each a few months apart.

  • Interleave reasoning and acting. ReAct (Yao et al. 2022) prompted a model to alternate Thought → Action → Observation. Writing a thought before each action let the model plan, track progress and react to surprises; observations kept the thoughts grounded in fact. Nearly every agent harness since is a ReAct loop with better tools.
  • Learn when to call a tool. Toolformer (Schick et al. 2023) showed a model could teach itself, from its own filtered samples, where an API call (calculator, search, translation) would lower its loss. Function calling became a standard API feature the same year (see structured outputs and function calling).
  • Give agents an interface designed for them. SWE-agent (Yang et al. 2024) argued that language-model agents are a new kind of user and need their own agent–computer interface (ACI): a file viewer that shows 100 lines with line numbers, an edit command that runs a linter and rejects syntax errors, search that returns summaries rather than floods. With the same model, the ACI alone moved SWE-bench pass@1 to 12.5%. Interface design is a first-class research variable, not plumbing.
  • Give them the human interface. On 22 October 2024 Anthropic released computer use for Claude 3.5 Sonnet: the model sees screenshots and returns mouse and keyboard actions. It scored 14.9% on OSWorld's screenshot-only category, against 7.8% for the next-best system, and 22.0% with more steps allowed; the announcement called the capability "at times cumbersome and error-prone" and noted that scrolling, dragging and zooming were hard (Anthropic, 2024). OpenAI's Computer-Using Agent followed on 23 January 2025 with 38.1% on OSWorld, 58.1% on WebArena and 87% on WebVoyager (OpenAI, 2025).
  • Long-running coding agents. Through 2025–2026 the most economically important agents were coding agents working in a repository and terminal for hours: reading code, running tests, editing, committing. They are the best-measured case of long-horizon agency because tests give an outcome signal.

How a computer-use agent sees and acts

Acting through pixels sounds simple and is not. Three sub-problems recur.

Perception. A 1920×1080 screenshot holds about two million pixels, but the agent needs a few dozen facts: which window is focused, where the "Save" button is, whether the dialog closed. Agents combine the screenshot with structured views where available: the accessibility tree (the semantic UI hierarchy screen readers use), the DOM for web pages, or terminal text. Structured views are cheaper and more exact; screenshots are universal.

Grounding. Knowing you want to click "Export as PDF" is not the same as producing the pixel coordinates of that menu item. Early systems drew numbered boxes over detected elements and let the model name a box: Set-of-Mark prompting (Yang et al. 2023). SeeAct found that GPT-4V could describe the right action for live websites far more often than it could ground it to an element (Zheng et al. 2024), and SeeClick (Cheng et al. 2024) made GUI grounding a pre-training task with its own benchmark (ScreenSpot). Native GUI agents such as UI-TARS (Qin et al. 2025) train one model end to end on screenshots and actions instead of wrapping a general model with detectors.

Action space. A typical action vocabulary is small: click(x, y), double_click, drag(x1, y1, x2, y2), type(text), key(combo), scroll(dx, dy), wait, screenshot, and done. The model's job is to choose the action and its arguments; the harness executes it and returns the next observation. Each action costs a model call, often with a full image, so a 300-step task is 300 calls: latency and cost scale with horizon.

Pixels versus APIs

An API call is a sentence in a precise language: calendar.create(date="2026-11-02") either works or raises an error. A click is a gesture in an imprecise one: it may land on the wrong element, arrive before the page has loaded, or trigger a pop-up. Computer use trades precision for reach. Good harnesses use APIs and shells where they exist and fall back to the screen only where they do not.

The benchmark ladder

Agent benchmarks run the agent inside a live, resettable environment and check the final state rather than the text of the answer. That is what makes them hard to game and expensive to run.

Benchmark What the agent does Size At launch: best agent vs humans
WebArena (2023) tasks on self-hosted shopping, forum, GitLab and CMS sites 812 tasks 14.41% vs 78.24%
GAIA (2023) questions needing browsing, files and tools 466 questions 15% (GPT-4 with plugins) vs 92%
SWE-bench (2023) resolve real GitHub issues in 12 Python repos; hidden tests decide 2,294 issues 1.96% (Claude 2)
OSWorld (2024) open-ended tasks across real desktop apps in a VM 369 tasks 12.24% vs 72.36%
τ-bench (2024) customer-service agent with tools, policies and a simulated user retail and airline domains gpt-4o under 50%, pass^8 under 25% in retail
RE-Bench (2024) open-ended ML research engineering, scored against 8-hour human attempts 7 environments AI 4× human at a 2-hour budget; humans 2× AI at 32 hours
OSWorld 2.0 (2026) long workflows on 31 self-hosted sites; median human time 1.6 h 108 workflows 20.6% binary completion (best model, 500 steps)

(WebArena's 812 tasks are from its paper body; all other figures are from the linked abstracts or project pages.)

Two refinements matter. SWE-bench Verified is a human-filtered subset of 500 SWE-bench instances, created with OpenAI, after annotators found that many original issues were underspecified or had tests that rejected valid fixes (swebench.com). OSWorld-Verified (28 July 2025) fixed community-reported task errors and moved to official, uniformly run evaluations; by June 2026 the maintainers had released OSWorld 2.0, whose workflows need about ten times as many actions: Claude Opus 4.7 averaged about 318 tool calls per task, against about 30 on the original (OSWorld 2.0).

The benchmark treadmill
The benchmark treadmill. new benchmark humans far ahead, labs optimise scores climb, saturation noise, shortcuts, contamination, longer, messier, more realistic tasksThe benchmark treadmill. new benchmark humans far ahead, labs optimise scores climb, saturation noise, shortcuts, contamination, longer, messier, more realistic tasks

Benchmark scores are about the harness too

An agent's score is a property of model plus harness: prompts, tools, the step budget, retries, how many samples are drawn. "AI Agents That Matter" (Kapoor et al. 2024) showed that leaderboards which ignore cost reward needlessly expensive agents, and that many agent benchmarks have weak or no held-out sets, so agents learn shortcuts. Compare agents on a cost–accuracy plot, on held-out tasks, with the harness fixed.

Measuring horizon: METR's time-horizon metric

Benchmarks with different units cannot be compared, and a percentage saturates. METR's idea (Kwa et al. 2025) was to put every task on one physical scale: how long a skilled human takes to do it. They timed experts on a suite mixing RE-Bench, HCAST (Rein et al. 2025) and 66 new short tasks, ran each model on all of them, and fitted a logistic curve of success against the logarithm of human time. The 50% time horizon is the task length at which the curve crosses one half.

The headline: Claude 3.7 Sonnet had a 50% horizon of about 50 minutes, and the horizon had doubled roughly every seven months since 2019, possibly faster in 2024. METR's running estimates (task-suite version 1.1 where available, as compiled on METR's Wikipedia page from METR's time-horizon reports):

Model (release) 50% horizon 80% horizon
GPT-2 (Feb 2019), suite 1.0 2 seconds —
GPT-4 (Mar 2023) 4 minutes 37 seconds
o1 (Dec 2024) 38 minutes 6 minutes
Claude 3.7 Sonnet (Feb 2025) 1 hour 10 minutes
GPT-5 (Aug 2025) 3 h 34 min 32 minutes
Claude Opus 4.5 (Nov 2025) 5 h 20 min 42 minutes
Claude Opus 4.6 (Feb 2026) 11 h 59 min 1 h 10 min

Read this table with four caveats that METR itself stresses. (1) The tasks are software, research-engineering and cyber tasks; horizons for other kinds of work are not measured by these numbers. (2) Confidence intervals at the top are very wide, and METR's page warns that measurements above 16 hours are unreliable with the current task suite; the page says it is no longer actively updated as of September 2026. (3) The tasks are cleaner than real work: well specified, automatically scored, with no colleagues to coordinate with. (4) The 80% horizon is five to ten times shorter than the 50% horizon, a gap that is itself the most important fact in the table, and the subject of the maths below.

Worked example: has the trend sped up? Start from Claude 3.7 Sonnet's one hour in February 2025. At a seven-month doubling, twelve months later you would expect \(2^{12/7} = 3.3\) hours. The February 2026 estimate was about 12 hours, which is \(\log_2 12 = 3.6\) doublings in 12 months, a doubling time of \(12/3.6 \approx 3.3\) months. A single pair of points is noisy, but METR's January 2026 re-analysis (Time Horizon 1.1) reached the same qualitative conclusion, a post-2023 doubling time of roughly four months.

Why long horizons are hard

Errors compound. If each step succeeds with probability \(p\) and any error is fatal, an \(n\)-step task succeeds with probability \(p^n\). At \(p = 0.99\), a 100-step task succeeds \(0.99^{100} = 37\%\) of the time; a 300-step task 5%. Long tasks punish small error rates brutally.

Not all errors are fatal. People make mistakes constantly on long tasks; they notice and fix them. An agent that recovers from half its slips has half the effective error rate and twice the horizon. Recovery requires noticing, which requires checking: rerunning tests, re-reading the screen, comparing against the goal.

State must be tracked. A long task generates far more observations than fit in a context window. The agent must decide what to keep, summarise or write to files, and must not lose the thread. Vending-Bench (Backlund and Petersson 2025) ran models as the operator of a simulated vending business for runs of over 20 million tokens. Every model had runs that derailed: misreading delivery schedules, forgetting orders, or spiralling into "meltdown" loops they rarely escaped. Notably, the failures did not line up with the point at which the context filled; long-horizon coherence breaks for reasons beyond memory size.

Reliability is not capability. τ-bench introduced pass^k: the probability that the agent succeeds on all of \(k\) independent attempts at the same task. A customer-service agent that solves a task 60% of the time is useless if a given customer has a 40% chance of a botched refund. In the original paper gpt-4o succeeded on under half the tasks and its pass^8 in retail was below 25%.

The world fights back. Real environments have pop-ups, rate limits, CAPTCHAs, flaky networks and other people. And they contain adversarial text: a web page or email can carry instructions aimed at the agent. AgentDojo (Debenedetti et al. 2024) built 97 realistic tasks with 629 security test cases and found both that models failed many tasks even without attack and that prompt-injection attacks broke some security properties. Every new tool an agent can use is a new way to be hijacked; see guardrails and security.

100%80%50%0 1 min10 min1 h4 h16 h64 h task length for a skilled human (log scale) Feb 2025: 50% at 1 h, 80% at 10 min Feb 2026: 50% at 12 h, 80% at 70 min
Two METR-reported models drawn as logistic curves in log task length, each pinned by its 50% and 80% horizons (Claude 3.7 Sonnet and Claude Opus 4.6, suite 1.1). The curve moved right by about 3.6 doublings in a year, but it is shallow: between "usually works" and "usually fails" lies a factor of ten in task length. Shapes are illustrative; only the marked points are reported values.

How agents are getting better

Five levers that lengthen the horizon
Five levers that lengthen the horizon. longer reliable horizon lower per-step error, more recovery, RL in environments reward = task actually done, agent-computer interface better tools and observations, context engineering compaction, notes, sub-agents, verification tests, checkers, self-review, grounding see the screen, hit the pixelFive levers that lengthen the horizon. longer reliable horizon lower per-step error, more recovery, RL in environments reward = task actually done, agent-computer interface better tools and observations, context engineering compaction, notes, sub-agents, verification tests, checkers, self-review, grounding see the screen, hit the pixel
  1. RL on real tasks. The recipe that made reasoning models (sample attempts, reward the ones a checker accepts) extends to agents when the environment can be reset and the end state checked: a repository whose tests pass, a database in the goal state, a file with the right contents. The model learns behaviours no prompt teaches well: checking its work, backing out of dead ends, reading error messages. The cost is infrastructure: thousands of sandboxed environments running in parallel, each episode thousands of tokens long, with rewards that must not be hackable (an agent that edits the test file to pass the tests has learned the wrong lesson).
  2. Better interfaces. The SWE-agent lesson: an observation format that fits the model's strengths (line-numbered file windows, concise search results, linting on edit) beats a raw shell. Protocols such as MCP standardise how tools are described to models.
  3. Context engineering. Anthropic's guide (2025) names three techniques for tasks longer than one context window: compaction (summarise the history and restart with the summary), structured note-taking (the agent writes a progress file it can reread) and sub-agents (delegate a sub-task to a fresh context and receive a short report). All three trade completeness for focus. See context engineering and memory.
  4. Verification. Anything that turns "I think I am done" into "I checked I am done" cuts the effective error rate: running tests, re-rendering the page and comparing, asking a second model to review, or requiring human approval before irreversible actions.
  5. Grounding. Dedicated GUI-grounding training (SeeClick, UI-TARS) and higher-resolution vision lower the rate of "right intention, wrong pixel" errors that dominate early computer-use failures.

Jarvis keeps its horizon short on purpose

Jarvis answers financial-planning questions by routing to a deterministic FIRE engine: the model chooses a tool and explains the result; code does the arithmetic. That is a deliberate horizon choice. A one-or-two-step plan with an exact tool has per-step reliability close to 1, so \(p^n\) never bites. Long autonomous runs are a frontier capability; a product that does not need them should not pay their error rate.

What is established and what is not (October 2026)

Claim Status
Agents reliably complete short (minutes-long), well-specified software tasks Established, across many benchmarks
Measured time horizons on software tasks have grown exponentially since 2019 Established for METR's suite; the rate (4–7 months) is uncertain
Pixel-level computer use works across arbitrary desktop software Partly: original OSWorld is near saturation, OSWorld 2.0's hour-long workflows are mostly failed (best 20.6%)
Horizons on software predict horizons on other work Unknown; barely measured
Agents are robust to adversarial content in their environment No: prompt injection is an open problem
Agents will run multi-day projects unsupervised by 2027 Speculative extrapolation of a noisy trend

History

Date Event
Oct 2022 ReAct interleaves reasoning traces and actions
Feb 2023 Toolformer: a model teaches itself to call APIs
May 2023 Voyager (Wang et al.): an LLM agent writes a growing skill library of code to play Minecraft
Jul–Nov 2023 WebArena, SWE-bench and GAIA: agent benchmarks in live environments
Apr–Jun 2024 OSWorld, SWE-agent, τ-bench
Aug 2024 SWE-bench Verified (500 human-checked tasks)
22 Oct 2024 Claude computer use (public beta)
23 Jan 2025 OpenAI's Computer-Using Agent and Operator
Mar 2025 METR's time-horizon paper
Jul 2025 OSWorld-Verified
Jan 2026 METR Time Horizon 1.1
Jun 2026 OSWorld 2.0: hour-long workflows

First principles

Strip an agent to its skeleton: a policy \(\pi\) chooses actions in an environment it only partly observes, and the run succeeds if the final state satisfies a goal. Three consequences follow from almost nothing.

Horizon is the reciprocal of error. If the effective per-step failure probability is \(\varepsilon\) (small), success over \(n\) steps is \((1-\varepsilon)^n \approx e^{-\varepsilon n}\), so the 50% horizon is \(n_{50} = \ln 2/\varepsilon \approx 0.69/\varepsilon\) steps. Halving \(\varepsilon\) doubles the horizon. An exponential trend in horizon is therefore the same thing as a steady exponential decline in per-step error, which is a more ordinary-sounding claim: a fixed fractional improvement in reliability per few months.

Recovery is as valuable as accuracy. If a fraction \(r\) of slips are caught and repaired, the effective error is \(\varepsilon(1-r)\). Going from catching none to catching half your mistakes doubles the horizon exactly as halving raw error does. This is why verification (tests, checks) is the cheapest lever: it does not require being smarter, only noticing.

Verification is easier than generation. Checking that tests pass, that a file exists or that a form was submitted is cheaper and more reliable than producing the solution. Agents get good first in domains with cheap, exact checks (code, maths, structured data) and slowest where success is a judgement call (writing a strategy, negotiating). That asymmetry is the same one that made RL with verifiable rewards work.

What breaks if you change the assumptions? If errors are correlated (a model that misunderstands the task errs at every step), the \(p^n\) model is too optimistic about averaging and too pessimistic about length: such failures happen early and do not depend on \(n\). If tasks have irreversible steps (sending money, deleting data), recovery is impossible for those steps, so they must be guarded by approval rather than retries.

The maths

Agent as a POMDP. The environment has hidden state \(s_t\), the agent receives observation \(o_t \sim O(\cdot \mid s_t)\), keeps a context \(c_t = (o_1, a_1, \dots, o_t)\) (or a compressed version), chooses \(a_t \sim \pi_\theta(\cdot \mid c_t)\), and the state moves \(s_{t+1} \sim T(\cdot \mid s_t, a_t)\). A task is a goal predicate \(G(s)\); reward is \(R = \mathbb{1}[G(s_T)]\) at the end. RL maximises \(J(\theta) = \mathbb{E}_{\pi_\theta}[R]\) with the policy gradient \(\nabla_\theta J = \mathbb{E}\big[R \sum_t \nabla_\theta \log \pi_\theta(a_t \mid c_t)\big]\); the sparse, end-of-episode reward is why long-horizon RL is sample-hungry.

Compounding with recovery. Let each step slip with probability \(\varepsilon_0 = 1 - p\), and let a slip be repaired with probability \(r\). Then each step is fatal with probability \(\varepsilon = \varepsilon_0(1-r)\) and

\[ P(\text{success over } n \text{ steps}) = (1-\varepsilon)^n, \qquad n_{50} = \frac{\ln 2}{-\ln(1-\varepsilon)} \approx \frac{\ln 2}{\varepsilon}. \]

At \(p = 0.99\), \(r = 0\): \(n_{50} \approx 69\) steps. At \(r = 0.5\): 139. At \(p = 0.999\): 693.

The time-horizon model. METR fits success probability against task length \(t\) (human minutes) as a logistic function of \(\log_2 t\). In one convenient parameterisation,

\[ P(\text{success} \mid t) = \sigma\big(\beta\,(\log_2 h_{50} - \log_2 t)\big), \qquad \sigma(z) = \frac{1}{1+e^{-z}}, \]

where \(h_{50}\) is the 50% horizon and \(\beta\) is the slope per doubling of task length. Setting \(P = 0.8\) gives \(\sigma(z) = 0.8 \Rightarrow z = \ln 4\), so

\[ \log_2 h_{80} = \log_2 h_{50} - \frac{\ln 4}{\beta}, \qquad \frac{h_{50}}{h_{80}} = 2^{\ln 4/\beta}. \]

The ratio between the two horizons tells you the slope. Claude Opus 4.6's \(h_{50}/h_{80} = 719/70 = 10.3\) gives \(\beta = \ln 4/\log_2 10.3 = 1.386/3.36 = 0.41\); Claude 3.7 Sonnet's \(60/10 = 6\) gives \(\beta = 0.54\). A shallow slope means success depends only weakly on length: some short tasks fail and some long ones succeed. That is the signature of failures that are not simply "ran out of steps" but "misread the task", consistent with correlated errors.

Exponential growth. If \(h_{50}(T) = h_0\, 2^{(T - T_0)/D}\) with doubling time \(D\), then the date at which the horizon reaches \(H\) is \(T_0 + D \log_2(H/h_0)\). From one hour, reaching a 40-hour working week takes \(\log_2 40 = 5.3\) doublings: 37 months at \(D = 7\), 21 months at \(D = 4\). That small change in \(D\) moves the date by more than a year, which is why forecasts built on this trend disagree.

pass@k and pass^k from n trials

Run each task \(n\) times and observe \(c\) successes. For \(k \le n\), the unbiased estimators (choosing \(k\) of the \(n\) runs without replacement) are

\[ \widehat{\text{pass@}k} = 1 - \frac{\binom{n-c}{k}}{\binom{n}{k}}, \qquad \widehat{\text{pass}^k} = \frac{\binom{c}{k}}{\binom{n}{k}}. \]

The first is the probability that at least one of \(k\) randomly chosen runs succeeded; the second that all \(k\) did. If the true per-attempt success is \(q\), their expectations are \(1-(1-q)^k\) and \(q^k\). They pull in opposite directions as \(k\) grows: pass@\(k\) measures capability (can it ever do this?), pass^\(k\) measures reliability (can you count on it?). With \(n = 8\) and \(c = 6\): pass@4 \(= 1\) (any four runs include a success, since only two failed), pass^4 \(= \binom{6}{4}/\binom{8}{4} = 15/70 = 0.214\).

Build it

NumPy only. Three experiments: compounding with recovery, fitting a time horizon to noisy task outcomes (with a bootstrap interval), and the pass@k / pass^k estimators.

import numpy as np
from math import comb
rng = np.random.default_rng(0)

# 1. Compounding: per-step success p, optional recovery r from a slip
def success_rate(n_steps, p, r=0.0, trials=20_000):
    ok = np.ones(trials, bool)
    for _ in range(n_steps):
        slip = rng.random(trials) > p
        fatal = slip & (rng.random(trials) > r)   # a slip is fatal unless recovered
        ok &= ~fatal
    return ok.mean()

for p, r in [(0.99, 0.0), (0.99, 0.5), (0.999, 0.0)]:
    rates = [success_rate(n, p, r) for n in (10, 50, 100, 300)]
    eps = (1 - p) * (1 - r)
    print(f"p={p} r={r}: " + "  ".join(f"{x:.2f}" for x in rates),
          f"| 50% horizon = ln2/eps = {np.log(2)/eps:.0f} steps")

# 2. METR-style fit: success vs log2(human minutes), recover 50% and 80% horizons
h50_true, beta_true = 60.0, 0.6               # minutes; slope per doubling
t = 2 ** rng.uniform(-1, 10, 400)             # task lengths 0.5 min .. 17 h
y = rng.random(400) < 1/(1+np.exp(-beta_true*(np.log2(h50_true)-np.log2(t))))
X = np.c_[np.ones_like(t), np.log2(t)]
def fit(X, y):                                # logistic regression, Newton steps
    w = np.zeros(2)
    for _ in range(25):
        pr = 1/(1+np.exp(-X @ w))
        H = X.T @ (X * (pr*(1-pr))[:, None])
        w += np.linalg.solve(H, X.T @ (y - pr))
    a, b = w                                  # logit = a + b*log2(t)
    return 2**(-a/b), 2**((np.log(4) - a)/b), -b
h50, h80, s = fit(X, y)
print(f"fit: slope {s:.2f}/doubling, 50% horizon {h50:.0f} min, "
      f"80% horizon {h80:.0f} min, ratio {h50/h80:.1f}x")
boot = [fit(X[i], y[i])[0] for i in rng.integers(0, 400, (500, 400))]
print("bootstrap 90% CI for 50% horizon:", np.percentile(boot, [5, 95]).round(0))

# 3. pass@k vs pass^k from n=8 trials with c successes (unbiased estimators)
n = 8
for c in (8, 7, 6, 4):
    at_k = 1 - comb(n-c, 4)/comb(n, 4)
    hat_k = comb(c, 4)/comb(n, 4)
    print(f"c={c}/8: pass@4={at_k:.3f}  pass^4={hat_k:.3f}")

Output:

p=0.99 r=0.0: 0.90  0.61  0.37  0.05 | 50% horizon = ln2/eps = 69 steps
p=0.99 r=0.5: 0.95  0.78  0.60  0.22 | 50% horizon = ln2/eps = 139 steps
p=0.999 r=0.0: 0.99  0.95  0.91  0.74 | 50% horizon = ln2/eps = 693 steps
fit: slope 0.77/doubling, 50% horizon 51 min, 80% horizon 15 min, ratio 3.5x
bootstrap 90% CI for 50% horizon: [41. 63.]
c=8/8: pass@4=1.000  pass^4=1.000
c=7/8: pass@4=1.000  pass^4=0.500
c=6/8: pass@4=1.000  pass^4=0.214
c=4/8: pass@4=0.986  pass^4=0.014

Read the output closely. Recovering half of all slips buys exactly as much horizon as the tenfold harder job of cutting raw error. With 400 tasks and a true horizon of 60 minutes, the fit says 51 minutes and the 90% interval runs from 41 to 63: horizon estimates are noisy even in a clean simulation, and real task suites have fewer long tasks than this. And a model that succeeds 6 times in 8 looks perfect by pass@4 and unusable by pass^4.

Things to try

  • Make errors correlated: give each simulated task a hidden difficulty that sets \(p\) for every step of that task. Fit the time horizon again. Does the slope get shallower, as it did between 2025 and 2026?
  • Add irreversible steps: a fraction of steps where recovery is impossible (\(r=0\)). How much does a single irreversible step per 50 hurt?
  • Halve the number of tasks longer than 4 hours and refit. Watch the interval on \(h_{50}\) widen: this is the problem METR faces at the top.
  • Use the doubling-time formula to compute when \(h_{50}\) reaches 167 hours (a working month) under \(D = 4\) and \(D = 7\) months, starting from 12 hours in February 2026. Then list three reasons the extrapolation could fail.

In practice

  • Design for short horizons. Break long jobs into checkpointed stages with explicit success checks between them. Each check resets compounding.
  • Measure pass^k, not just pass@1. Run each eval task 5–10 times. Report the success rate, its spread and the all-k reliability. Track cost per successful task. See evals in practice.
  • Prefer APIs, then shells, then screens. Use computer use for the last mile, not the first resort.
  • Guard irreversible actions. Require confirmation for payments, deletion, sending messages and anything outside a sandbox. Treat all retrieved content as untrusted input that may contain instructions.
  • Log full trajectories. Agent failures are diagnosed by reading the run. Keep the screenshots, tool calls and reasoning for every failed episode.
  • Budget context deliberately. Decide in advance what is compacted, what is written to notes and what is delegated to sub-agents.

Common misconceptions

\"A 12-hour time horizon means the agent can do a 12-hour job\"

It means that on METR's suite of well-specified software tasks that take experts about 12 hours, the model succeeds about half the time, with a wide interval. On the same suite its 80% horizon was about 70 minutes. For a job you need done, the 80% (or 95%) horizon is the relevant number, and for messy real work with unclear goals it is shorter still.

\"Bigger context windows will solve long-horizon tasks\"

Vending-Bench's failures did not coincide with the context filling. Long-horizon failure is about staying on goal, noticing errors and recovering, not only about memory capacity.

\"Computer use is the general solution, APIs are legacy\"

Every pixel-level action carries grounding and timing risk an API call does not. Computer use extends reach to software without APIs; it does not replace them where they exist.

Check yourself

An agent has 98% per-step success with no recovery. What is its 50% horizon in steps? What recovery rate would double it?

\(\varepsilon = 0.02\), \(n_{50} = \ln 2/0.02 \approx 35\) steps (exactly \(\ln 0.5/\ln 0.98 = 34.3\)). Doubling requires halving the effective error: \(0.02(1-r) = 0.01\), so \(r = 0.5\), catching and repairing half of all slips.

Why does METR measure task length in human time rather than number of steps?

Steps depend on the agent and harness (one agent may take 30 actions where another takes 300), so they are not comparable across systems or with people. Human time is a common physical unit that roughly tracks difficulty and economic value, and it lets benchmarks of very different kinds be placed on one axis.

A model has a 50% horizon of 8 hours and an 80% horizon of 1 hour. Under the logistic model, what is its slope per doubling and its predicted success on a 30-minute task?

\(h_{50}/h_{80} = 8 = 2^3\), so \(\ln 4/\beta = 3\) and \(\beta = 0.462\). For 30 minutes, \(\log_2(480/30) = 4\) doublings below \(h_{50}\), so \(P = \sigma(0.462 \times 4) = \sigma(1.85) = 0.86\). Even a task 16 times shorter than the 50% horizon fails one time in seven.

Your agent scores pass@1 = 70% on your eval. A colleague says it is ready for customers. What do you measure next and why?

pass^k on repeated runs (a 70% agent may be 99% on some tasks and 0% on others, or 70% on each, which gives very different customer experiences), cost and latency per successful task, behaviour on held-out tasks not used to tune the prompt, and behaviour under adversarial inputs such as prompt injection in retrieved content. And for irreversible actions, the error rate after guards, not before.

Why did SWE-bench need a 'Verified' subset?

Human annotators found that many original instances were underspecified or had tests that rejected correct fixes. A benchmark whose ceiling is well below 100% for reasons unrelated to capability mixes model errors with benchmark errors; the 500-task human-checked subset removes most of those.

Hard: the slope β of the time-horizon curve fell from about 0.54 to 0.41 between the two models in the figure. Give two different explanations, and an experiment that would tell them apart.

(a) Errors became more correlated with task identity than with length: the newer model fails mainly on tasks it misunderstands, regardless of length, and succeeds on long tasks it understands. (b) The long-task end is measured with few tasks and generous scoring, flattening the fitted curve by noise. To tell them apart, rerun each task many times: under (a), success is bimodal per task (near 0 or near 1); under (b), per-task success rates look like a smooth function of length with large sampling error. Adding more long tasks would also shrink (b) but not (a).

Hard: why is prompt injection fundamentally harder for agents than for chatbots?

A chatbot's input comes from its user, who is the principal. An agent reads content written by third parties (web pages, emails, documents, tool outputs) and the model processes instructions and data in the same token stream, with no hard boundary between "what my user asked" and "what this page says". The more tools the agent has, the more damage a hijack can do, and the attack surface grows with every source it reads.

Go deeper

Papers

Articles and blog posts

Courses

Code

Where this leads