Abstract
An agent that runs one long loop has to get every step right, in sequence, while its own earlier mistakes stay in context and steer what comes next. Its reliability decays with the length of the chain. Breaking the same work into atomic tasks, each run by a short loop that starts clean, is checked, and can be retried, changes that arithmetic.
This paper reviews what the literature says about decomposition, compounding errors in long-horizon execution, and parallel attempts at test time. It also covers what goes wrong when multi-agent systems are built carelessly. We then describe a simple reliability model and how Chad applies it: many more LLM loops than a monolithic agent, each with a small compiled context and exactly one atomic task.
Errors compound along a chain
The basic arithmetic is unforgiving. If each step of a task succeeds independently with probability p, a chain of N steps succeeds with probability:
Real agents are worse than this independence model in one specific way. Sinha et al. separate planning from execution by handing models the plan and the knowledge, and measure how long they can keep executing correctly [7]. Per-step accuracy declines as the task gets longer, and models become more likely to err when their context already contains their own earlier errors. The authors call this self-conditioning, and report that scaling model size does not remove it. In other words, p is not a constant in a long loop: it drops as the transcript fills with mistakes.
The same work makes the optimistic point too: small gains in per-step accuracy compound into large gains in the length of task a model can finish [7]. METR measures this from the outside, as the length of software tasks (in human time) that models complete with 50% probability. They report a horizon of roughly 50 minutes for Claude 3.7 Sonnet and a doubling time of about seven months since 2019 [8]. Horizons grow, but a 50% success rate on an hour of work is still a coin flip, and an organization’s backlog is made of weeks of work.
Success of an N-step chain, p^N
Probability that every step succeeds, for three per-step success rates. Independent errors, no verification.
Computed from the formula above; illustrative.
Meyerson et al. report that in their Towers of Hanoi experiments, single-agent runs derailed after at most a few hundred steps. With extreme decomposition and voting at every step, their system completed a task of over one million LLM steps with zero errors. [9]
Decomposition is an old idea that works
Breaking a problem into smaller ones before solving it is one of the most consistent wins in the prompting literature.
Least-to-Most Prompting
Zhou et al. first reduce a problem to a sequence of simpler subproblems, then solve them in order. On the SCAN compositional generalization benchmark, code-davinci-002 reaches at least 99% accuracy on every split, including the length split, with 14 exemplars, against 16% for chain-of-thought. [1]
Decomposed Prompting
Khot et al. route each sub-task to a dedicated prompt (or a symbolic function, or a trained model) that can be refined or replaced on its own. The value is modularity: a weak sub-task handler can be fixed without touching the rest. [2]
Plan-and-Solve
Wang et al. ask the model to devise a plan that splits the task into subtasks before executing them, and report consistent gains over zero-shot chain-of-thought across ten reasoning datasets. [3]
Role-based multi-agent frameworks
MetaGPT encodes standard operating procedures into an assembly line of roles whose intermediate outputs can be checked, which the authors argue limits the error buildup of naively chained LLMs [4]. ChatDev organizes software development as communicating role agents [5], and AutoGen provides a general framework for multi-agent conversation [6].
The common thread is not “more agents”. It is that each unit of work becomes small enough to be done well and checked on its own. Least-to-most and Plan-and-Solve decompose inside one prompt; MetaGPT and Decomposed Prompting push the decomposition into the architecture, where each piece can be inspected.
Many attempts beat one long attempt
The second line of evidence comes from test-time compute. When a task can be checked, several independent attempts are often a better use of compute than one long one.
Reported gains from decomposition and repeated attempts
Each paper's own reported numbers, baseline (small dot) to method (large dot). Different models, tasks and metrics: read as direction, not comparison. Hover for details.
Sources: Least-to-Most [1], Large Language Monkeys [12], Agentless [11].
- Repeated sampling. On SWE-bench [10], Brown et al. raise the share of SWE-bench Lite issues solved by DeepSeek-Coder-V2-Instruct from 15.9% with one sample to 56% with 250 samples, above the 43% single-sample state of the art at the time [12]. The catch is that this is coverage: some sample is right, and something must pick it. Verification is what turns parallel attempts into results.
- Compute-optimal test time. Snell et al. show that allocating test-time compute adaptively per prompt is more than 4× more efficient than best-of-N, and that in a FLOPs-matched comparison a smaller model with extra test-time compute can beat a model 14× larger on problems where it has non-trivial success [13].
- Simple pipelines are competitive. Agentless replaces the open-ended agent loop with fixed phases (localize, repair, validate) and reports 32% on SWE-bench Lite at $0.70 per issue [11].
- Parallel subagents. Anthropic reports that a multi-agent research setup (an Opus 4 lead with Sonnet 4 subagents) beat single-agent Opus 4 by 90.2% on its internal research eval, and that parallel tool calls cut research time by up to 90% on complex queries [14].
Isolation is what makes retries cheap
A failure in a long loop is expensive twice. First, it contaminates the context: the wrong hypothesis, the bad patch and the misleading log all stay in the transcript and keep steering the model [7]. Second, when it is finally detected, often at the end, there is no clean unit to redo. The choice is to keep going on a damaged context or start over.
A failure in a short loop costs one atomic task. The loop’s context is discarded, a verifier rejects the output, and a new loop starts from a freshly compiled context that does not contain the failed attempt. Other loops keep running in the meantime.
One long loop vs many short loops
Same work, two schedules. Red marks a wrong step. Illustrative animation: block sizes and timing are not measurements.
In the long loop, the error at step 9 stays in the transcript and every later step builds on it; the final check fails and the whole run is redone. In the short loops, each failure costs one small task, is caught by a verifier, and is retried from a freshly compiled context while other loops continue.
MAKER takes this to its limit: every step is a microagent with a minimal context, and errors are corrected at each step by voting among independent samples [9]. Few engineering tasks need a million steps, but the mechanism generalizes. Small units make each error local, detectable and retryable.
A reliability model
Put the pieces together. Split N steps into tasks of k steps. A task succeeds with probability q = pk. If a verifier catches failed tasks and each task gets up to r retries from a clean context, the job succeeds with probability:
Two things follow. Decomposition without verification buys nothing: (pk)N/k is still pN. And with verification, the extra compute is small, because retries only happen on the tasks that fail.
Compounding reliability, as a model
Probability that a job of N steps finishes with no uncorrected error. A simplified model, not a measurement: adjust the assumptions.
Assumptions: errors are independent across steps, the verifier detects every failed task, and a retry starts from a clean context so it is independent of the failed attempt. Splitting work without verification changes nothing (pk raised to N/k is still pN): the gain comes from isolation plus checking. The model also holds p constant, while studies report per-step accuracy falling as a single context accumulates its own errors, which would widen the gap.
The model is deliberately generous to the long loop. It holds p constant, while the evidence above says per-step accuracy falls as a single context accumulates its own errors [7]. It also assumes a perfect verifier, which no real system has; a verifier that misses failures lowers the short-loop curve. That is why we treat validation (by a human or by an AI verifier) as a first-class part of the architecture rather than an afterthought.
What multi-agent systems get wrong
Decomposition is not free, and the multi-agent literature is full of systems that make things worse.
- Coordination failures. Cemri et al. annotate more than 1,600 traces from seven popular multi-agent frameworks and find 14 failure modes in three groups: system design issues, inter-agent misalignment and task verification. They note that gains over single agents on popular benchmarks are often minimal [15].
- Conflicting assumptions. Cognition argues that parallel subagents that do not share context make inconsistent decisions, and recommends single-threaded agents for that reason [16].
- Token cost. Anthropic reports that its multi-agent systems use about 15× the tokens of a chat, against about 4× for single agents, and that coding tasks with many interdependencies are a poor fit for their parallel design [14].
We agree with the diagnosis and draw a different conclusion. These failures come from agents that talk to each other through transcripts: they hand off long conversations, duplicate context and negotiate in natural language. The fix is not to fall back to one long loop. It is to give every short loop the same shared, validated ground truth, compiled fresh, and to make tasks small enough that they do not need to negotiate.
How Chad applies it
Chad is built around the short loop as the unit of work.
- Planner. A Planner turns validated intents (from people, Slack threads, Granola meeting notes, Linear or Jira issues) into atomic tasks with explicit target files and acceptance criteria.
- One task, one loop. Each Spec writer, Builder, Verifier, Debugger or Improver loop starts empty. A context compiler builds a small context (about 6k tokens) from durable memory: global best practices, the validated intent and its acceptance criteria, related changes found by a ClickHouse query, validated input → output pairs, and the task itself.
- Shared ground truth instead of chat. Loops do not pass transcripts to each other. They read from and write to the same memory in ClickHouse, where every GitHub event, human input and tool signal is logged and git history is decomposed into rows linked to intents. This is how short loops stay consistent without sharing a conversation.
- Verify, then remember. A loop’s output is checked by a human or by an AI verifier. Only validated actions enter memory, so a failed attempt never contaminates the next loop’s context; the task is simply retried.
- Parallel by default. Independent tasks run concurrently. A Debugger loop woken by a Sentry error or a CI failure does not wait for a long agent to finish its current plan.
The design choice is to trade one long, stateful conversation for many short, stateless loops over a stateful memory. State lives in the database, where it can be queried and validated, not in the transcript.
Limits & next steps
The reliability model is a simplification. Real errors are correlated (the same misunderstanding of an intent will produce the same wrong patch on every retry), verifiers are imperfect, and some work resists decomposition into independent tasks. Decomposition also moves difficulty into the Planner: a bad split produces many tasks that are each done correctly and still do not add up. The results cited above come from different models, benchmarks and years, and are not directly comparable.
Chad has no published benchmark numbers yet. We are preparing measurements on real repositories that compare one long agent loop against many short verified loops on task success, retries per task, tokens and wall-clock time. We will publish them here.
References
- Zhou, D. et al. Least-to-Most Prompting Enables Complex Reasoning in Large Language Models. ICLR, 2023.
- Khot, T. et al. Decomposed Prompting: A Modular Approach for Solving Complex Tasks. ICLR, 2023.
- Wang, L. et al. Plan-and-Solve Prompting: Improving Zero-Shot Chain-of-Thought Reasoning by Large Language Models. ACL, 2023.
- Hong, S. et al. MetaGPT: Meta Programming for A Multi-Agent Collaborative Framework. arXiv:2308.00352, 2023.
- Qian, C. et al. ChatDev: Communicative Agents for Software Development. ACL, 2024.
- Wu, Q. et al. AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation. arXiv:2308.08155, 2023.
- Sinha, A., Arun, A., Goel, S., Staab, S., Geiping, J. The Illusion of Diminishing Returns: Measuring Long Horizon Execution in LLMs. ICLR, 2026.
- Kwa, T. et al. Measuring AI Ability to Complete Long Software Tasks. NeurIPS, 2025.
- Meyerson, E. et al. Solving a Million-Step LLM Task with Zero Errors. arXiv:2511.09030, 2025.
- Jimenez, C. E. et al. SWE-bench: Can Language Models Resolve Real-World GitHub Issues?. ICLR, 2024.
- Xia, C. S., Deng, Y., Dunn, S., Zhang, L. Agentless: Demystifying LLM-based Software Engineering Agents. arXiv:2407.01489, 2024.
- Brown, B. et al. Large Language Monkeys: Scaling Inference Compute with Repeated Sampling. arXiv:2407.21787, 2024.
- Snell, C., Lee, J., Xu, K., Kumar, A. Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters. arXiv:2408.03314, 2024.
- Anthropic. How we built our multi-agent research system. 2025.
- Cemri, M. et al. Why Do Multi-Agent LLM Systems Fail?. arXiv:2503.13657, 2025.
- Yan, W. (Cognition) Don't Build Multi-Agents. June 2025.