Long-horizon task
A long-horizon task is a job that takes many dependent steps over a long stretch of time, often hours of skilled human work, which an AI agent has to complete without losing track of its goal.
Early chatbot tasks were short: answer a question, draft a paragraph, fix one line of code. A long-horizon task needs dozens or hundreds of steps, each depending on what came before. Fixing a bug that runs through a large codebase, researching and writing a report, or setting up and running an experiment all qualify. The agent has to plan, keep track of what it has already done, notice its own mistakes and recover from them, all while holding on to the original goal.
Length makes things hard because errors compound. If an agent gets each step right 99 times out of 100, the chance of getting all of a 100-step task right is only about 37 per cent. Long tasks also fill the model's context window with search results, files and error messages, so the agent has to summarise its progress or keep notes outside the window. Recovering from a dead end, rather than repeating the same failed action, turns out to matter as much as raw knowledge.
The best-known way to measure progress comes from METR, a research group that evaluates AI models. In March 2025 it proposed the 50% task-completion time horizon: the length of task, measured by how long skilled humans take, that a model completes with a 50 per cent success rate. Claude 3.7 Sonnet scored about 50 minutes. Models succeeded almost every time on tasks that take people under about four minutes, and less than 10 per cent of the time on tasks over about four hours. METR found the time horizon of frontier models had doubled roughly every seven months since 2019.
A concrete example: asking a coding agent to move a large application to a new version of a library. The agent has to find every place the library is used, change each one, run the tests, read the failures, fix them, and repeat until everything passes. A person might take a full working day. Each fix can break something elsewhere, so the agent must keep the whole picture in mind rather than treat each step in isolation.
The practical point is that a time horizon is not a promise of reliability. A 50 per cent success rate is far from good enough for unsupervised work, and METR's tasks are mostly software tasks in a controlled setting; the authors themselves flag limits on how far the results carry to messier real work. Long-horizon agents are improving quickly, but they still need tests, checkpoints and human review on anything that matters.
It describes tasks that take many steps over a long period, where each step depends on earlier ones. For AI agents it usually means tasks that would take a skilled person hours or days. Small error rates add up over many steps, so a model that is right almost every time on single steps can still fail long tasks. The context window fills with tool output, so the agent can lose track of earlier decisions. Agents also get stuck repeating failed approaches instead of stepping back and trying something different. METR measures the length of tasks, judged by how long skilled humans take to do them, that a model can complete with a given success rate, usually 50 per cent. In its March 2025 study, Claude 3.7 Sonnet had a 50 per cent time horizon of about 50 minutes, and frontier models' horizons had doubled roughly every seven months since 2019. It depends on the task and on how much failure is acceptable. Time horizons have grown fast since METR's 2025 study, but METR's own page notes that measurements above 16 hours are unreliable with its current task suite. In practice, longer autonomous runs work best where results can be checked automatically, such as code with good tests.Common questions
What does long-horizon mean in AI?
Why do AI agents struggle with long tasks?
What is METR's time horizon measure?
How long can AI agents work on their own?
Search for "METR time horizon", "long-horizon agents" or "AI task length doubling" to follow how the measure has developed. The most reliable sources are METR's own papers and pages, the evaluation sections of model providers' system cards, and research papers on arXiv that describe their task sets in detail. Treat headline claims about agents working for many hours with care unless they say what the task was, how success was judged and how often the agent failed.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.