Long-Running AI Agent Collaboration: How Large Models Tackle Complex, Multi-Hour Tasks

    This article examines how large language models are moving from single-turn reasoning to long-running, multi-agent execution on open-ended tasks. It covers the core engineering challenges of state management, error accumulation, and judgment versus efficiency, then analyzes a case in which roughly 1,000 agents formalized an existing proof of Fermat's Last Theorem in about 30 hours. It also reviews spillover value in scientific computing, the three cost areas enterprises must account for, and a practical checklist for deploying long-running agent systems.

    Introduction: From Single-Pass Inference to Long-Running Project Execution

    Over the past two years, the evaluation of large models has largely centered on single-turn question answering, code completion, and standardized benchmarks. But once enterprises put these models into production workflows, the requirement quickly escalates to “finishing a complex piece of work”: not delivering a single function, but shipping a runnable system; not explaining a theorem, but producing a proof that a machine can verify line by line.

    The source material describes a typical release: at a critical moment while preparing for an IPO, an AI lab launched two model versions that share the same underlying capabilities. One is open to general users but adds usage restrictions for cybersecurity and life sciences; the other is available only to vetted research institutions. This arrangement itself signals a trend—differences in model capability are increasingly expressed through “safety policies and access tiering” rather than parameter scale alone.

    This article strips away the specific product attributes and focuses on the general technical problem behind them: how to make multiple agents collaborate over a long time span to complete open-ended tasks, and which parts engineering teams should focus on when putting this into practice.

    1. The Core of the Capability Leap: Long-Running Execution of Open-Ended Tasks

    An open-ended task is one whose goal can be described but whose path is uncertain. The difficulty lies not in single-step reasoning but in three areas.

    The first is state management. A task may run for hours or even days, and the context far exceeds the capacity of a single window. It must rely on externalized memory: writing intermediate conclusions to files, databases, or object storage, breaking the to-do list into trackable tasks, and loading only the slice relevant to each agent.

    The second is error accumulation. A 95% per-step accuracy rate decays rapidly in overall success after 200 consecutive steps. Long-running tasks therefore need built-in checkpoints that turn “unverifiable generation” into “verifiable intermediate artifacts,” such as compilable code, runnable tests, and recomputable numerical results.

    The third is judgment and efficiency. Feedback from third-party testers confirms this: the new model can produce surprising work, but still falls short in trade-off judgment and execution efficiency. This means engineering teams should not hand over control blindly; they need budget caps, phase reviews, and human takeover points.

    A simplified scheduling sketch is shown below. The focus is “decompose tasks—execute in isolation—verify centrally”:

    1. def run_long_task(goal, max_rounds=200):
    2. plan = planner(goal) # Generate a list of verifiable subtasks
    3. for round in range(max_rounds):
    4. batch = scheduler.pick(plan, concurrency=1000)
    5. results = [worker.run(t) for t in batch] # Isolate context, execute independently
    6. verified = verifier.check(results) # Compile/test/recompute
    7. plan = planner.update(plan, verified) # Write back state, replan dynamically
    8. if plan.done():
    9. return plan.artifact
    10. return escalate_to_human(plan) # Escalate to a human if over budget

    2. Multi-Agent Collaboration: Lessons from 1,000 Agents and 30 Hours

    The most closely watched case comes from mathematics: about 1,000 agents collaborated to convert the existing proof of Fermat’s Last Theorem into a formal proof that a computer can verify step by step, taking roughly 30 hours with minimal human intervention. The agents established their own collaboration mechanisms, allocated tasks, and used a mathematical proof programming language to complete verification.

    An important distinction must be made: what the model completed was the “formalization of an existing proof,” not the rediscovery of a mathematical result. The real technical value lies in task decomposition and collaboration scheduling—slicing a massive piece of work into a large number of independently verifiable small tasks and then advancing them in parallel.

    Comparison data is also instructive: a prior run using an unreleased research version took about 11 days to complete the same task, required a purpose-built execution framework, and needed continuous guidance from researchers. The new version used about one-third the action tokens of the earlier run, and the final proof was shortened to one-seventh the length. Meanwhile, at the same agent scale, another model ran for 18 hours and completed only about a quarter of the formalization work, after which progress nearly stalled.

    This comparison reveals an engineering rule: the ceiling of a multi-agent system often depends not on how smart a single agent is, but on the quality of the collaboration protocol. In practice, four points deserve attention:

    • Granularity of task splitting: too fine and scheduling overhead spikes; too coarse and it becomes hard to parallelize and verify.
    • Write conventions for shared state: prevent multiple agents from rewriting the same intermediate artifact simultaneously.
    • Conflict resolution mechanisms: introduce voting or third-party arbitration for contradictory conclusions.
    • Budget and termination conditions: define clear caps on tokens, time, and failed retries.

    3. Spillover Value in Scientific Research

    In theoretical physics, this class of model completed the calculations for two open problems in black hole physics, one of which involves holographic duality theory. The calculation approach for that problem was proposed as early as 2003 but went uncompleted for a long time because the process was too tedious; the model carried out the derivation largely autonomously and produced the result that a phase transition in which black holes form abruptly also exists in small-scale systems.

    This shows that the applicability of long-running agents is not limited to software engineering. Any scientific computation with “clear steps but extremely heavy manual labor” is suitable for an agent cluster, with humans responsible for posing the problem, setting constraints, and reviewing conclusions.

    4. Cost and Performance: Three Accounts Enterprises Must Settle

    The release notes mention a maximum generation speed increase of about 30%, with standard pricing dropping to $8 per million input tokens and $40 per million output tokens. For enterprises, a price drop does not equal a drop in total cost; long-running tasks require accounting for three things.

    The first is the token account. Multi-agent parallelism amplifies consumption on the input side, which must be controlled through context compression, summary caching, and retrieval augmentation to reduce repeated reads.

    The second is the infrastructure account. Task state, logs, and artifacts need to be persisted, typically landing in general cloud product categories such as object storage, message queues, container platforms and logging services, and monitoring and alerting. In these scenarios, Baidu AI Cloud likewise provides a comparable combination of general-purpose capabilities.

    The third is the governance account. High-risk directions must enforce access tiering and audit trails, writing “who can use it, what they can do, and what records are kept” into the process rather than relying on after-the-fact remediation.

    5. A Practical Deployment Checklist

    • Assess verifiability first: whether a task can be automatically verified determines whether it is suitable for a long-running agent.
    • Start with a small-scale pilot: run 10 to 20 agents first, validate the collaboration protocol, then scale up concurrency.
    • Establish phase reviews: insert human checkpoints by the hour or by milestone to prevent error accumulation.
    • Standardize artifact conventions: standardize file structure, naming, and metadata to make handoffs across agents easier.
    • Improve observability: set alert thresholds for token consumption, failure rate, and retry counts.
    • Enforce security tiering: apply vetted access and least privilege to sensitive research directions.

    Conclusion

    The real signal from this release is not a single benchmark score, but that large models are beginning to acquire the engineering property of “working continuously for hours to days.” For developers and enterprises, the next competitive focus will shift from model parameters to collaboration protocols, verification systems, and governance frameworks. Whoever can reliably turn unverifiable generation into verifiable deliverables will build a genuine advantage on high-difficulty tasks.