1,000 Claude Agents Formalized Fermat's Last Theorem with Lance Martin, Anthropic
Claude is rapidly advancing on two frontier capabilities - autonomous multi-agent coordination at scale and self-organized long-term memory ('dreaming') -
By Sean WeldonAgentic Coordination and Memory at Scale: From Formalizing Fermat's Last Theorem to Self-Correcting Knowledge Representations
Abstract
This synthesis examines two frontier capabilities demonstrated in recent Claude development work: autonomous multi-agent coordination at scale, and self-organized long-term memory with reflective consolidation. Evidence is drawn from a formalization of Fermat's Last Theorem executed by approximately 1,000 concurrent agents over roughly 30 hours without domain-specific scaffolding or human steering, and from a series of memory benchmarks spanning continual-learning evaluation, long-horizon game play, and document-corpus question answering. The findings indicate that sufficiently capable agents construct their own coordination primitives from minimal substrates (version control and a relational database), and that the utility of persistent memory scales sharply with model capability rather than with memory affordances alone. A reflective reprocessing mechanism termed dreaming is shown to repair corrupted memories and improve derived knowledge representations beyond retrieval baselines, with practical implications for agent harness design.
1. Introduction
Two distinct bottlenecks have historically constrained the application of Large Language Models (LLMs) to long-horizon problems. The first is coordination: dividing a multi-day task across many workers requires shared state, task decomposition, and dependency tracking, which practitioners have typically supplied through hand-built orchestration frameworks. The second is continuity: an agent whose context window resets between sessions cannot accumulate knowledge, and naive note-taking tends to produce sprawling, partly erroneous records that degrade rather than improve downstream performance.
The central thesis advanced here is that both bottlenecks are increasingly addressed by model capability itself rather than by external scaffolding. Agents appear able to invent the coordination and memory primitives they require when given only minimal substrates, and the marginal value of a memory affordance rises with the capability of the model given access to it, rather than being a fixed property of the affordance itself.
Section 2 establishes the formal-verification and cognitive-science context motivating the experiments. Section 3 analyzes the large-scale formalization run and the memory benchmarks in turn. Section 4 consolidates implementation-relevant findings, Section 5 discusses implications and open questions, and Section 6 concludes.
2. Background and Related Work
Fermat's Last Theorem (FLT) asserts that $a^n + b^n = c^n$ has no solution in whole numbers for $n > 2$. The statement resisted proof for approximately 350 years until Andrew Wiles's mid-1990s result, which required seven years of concentrated work. Such proofs can be rendered machine-checkable in Lean, a formal proof verification system that validates each inferential step, making correctness objectively decidable and therefore well suited as an agentic task signal. An earlier formalization effort, conducted in September, used Claude with roughly a dozen agents, a domain-specific mathematics orchestration harness named Prove to Me, and substantial researcher steering. This establishes the relevant baseline: capability expressed through heavy external structure.
For memory, the organizing analogy is mammalian consolidation. The hippocampus is understood to support short-term memory during waking activity and is believed to replay experience to the neocortex during sleep, promoting selected fragments into durable long-term storage. This two-phase architecture motivates an analogous split in agents between online memory writing and offline knowledge consolidation, framed by the Kierkegaardian observation that "life can only be understood backwards, but it must be lived forwards" - memory is written myopically during a task yet must later serve as a globally coherent, non-redundant map.
3. Core Analysis
3.1 Emergent Coordination in a 1,000-Agent System
For the Fable 5.2 launch, the formalization effort was scaled to approximately 1,000 agents with both the domain-specific harness and human steering of the solution removed. Each agent operated in its own sandboxed environment with restricted network access, reaching only Git and a SQL database. Monitoring was layered: every tool call was tracked in real time, and offline review of agent runs executed at ten-minute intervals.
Prompting was deliberately minimal. A single lead agent and 999 helper agents were given awareness of Git, the database, and the problem statement, with no instructions on how to organize themselves. Within five minutes, the lead agent autonomously constructed database tables for announcements, role assignment, subtask notes, and a "landed" status marking completed work - an unprompted act of infrastructure-building. Agents then used these tables to self-organize: posting announcements, claiming theorem statements, recording progress notes, and marking completed Lean code as landed. For harder subproblems, such as Lagrange's tunnel, agents constructed their own task-tree abstractions to track dependencies, and workers dynamically reallocated themselves across tasks as bottlenecks shifted.
The run lasted approximately 30 hours and resolved 60 statements within the proof. One agent's closing note - "total freeze of the origin, effective now, magnificent work all 999 of you" - illustrates the degree of shared situational awareness achieved without centralized human direction. The key finding is that agents at sufficient capability can coordinate large-scale, long-horizon problem solving using very simple primitives, without domain-specific scaffolding.
3.2 Memory Benefit Scales with Model Capability
A second line of investigation isolated memory as distinct from multi-agent orchestration, focusing on how a single agent organizes its own context across sessions. Using the open-source CL-Bench continual learning benchmark, Claude was given 40 sequential questions about a database, with a fresh session for each question but persistent access to a memory/notes directory. No specific memory-use prompting was provided beyond noting the directory's existence.
Sonnet 4.6 showed little benefit from memory access and did not reliably know when to write to or read from it. Memory benefit increased markedly with model capability moving from Sonnet 4.6 through Sonnet 5 to Opus and beyond. Stronger models intrinsically determined when to write and read memory and produced higher-quality, more selectively verified entries, while weaker models wrote lower-quality, less discriminating memories. This suggests memory utility is not an emergent property of the affordance alone but is gated by the underlying model's judgment about salience and retrieval timing.
3.3 Salience and Memory Quality in Extended Gameplay
A long-horizon Pokémon gameplay setting provided converging evidence. Claude 3.7 Sonnet's memory directory grew large and indiscriminate, accumulating irrelevant experience, and the model performed much worse in the game. By contrast, Fable 5's memory directory remained far tighter, containing strategic and tactical insights not easily derivable from raw game state, and the model progressed substantially further. The pattern indicates that improved instincts for salience - judging what is worth remembering - correlate directly with smaller, more useful memory stores and better task outcomes.
3.4 Dreaming: Reflective Correction and Representation-Building
Dreaming denotes a reflective reprocessing step in which Claude revisits transcripts and written notes to rebuild memory representations, correct errors, and promote key memories into context for future sessions. In the Pokémon setting, a poisoned memory - an incorrectly recorded landmark location - caused the agent to repeatedly fall through a trap door and regress. Dreaming corrected the erroneous memory and allowed progress past the stuck point, whereas raw memory without dreaming continued to produce crashes and regressions.
A second evaluation used an anonymized corpus from the acquired company Stainless to build a 25-question eval set testing memory representation-building. A raw semantic search baseline scored 53% accuracy. Allowing Claude to build a wiki from the corpus, and allocating progressively more dreaming compute, improved wiki quality and question-answering accuracy beyond the search baseline, and combining the wiki with the search tool outperformed either approach alone. A separate benchmark showed an initial Claude-built wiki with placeholder or missing pages; subsequent dreaming compute filled gaps and created an index, improving completeness.
4. Technical Insights
Several implementation-relevant patterns emerge from these results. First, coordination infrastructure need not be hand-engineered: restricting agents to Git and a SQL database, with no domain-specific harness, was sufficient for 1,000 agents to self-assign roles and track dependencies across a 30-hour run - the lead agent built the necessary tables unprompted within five minutes. Second, layered monitoring (real-time per-tool-call tracking plus 10-minute interval offline review) appears necessary for auditing emergent, unscaffolded agent behavior at this scale, since no human steered the solution path. Third, memory affordances should not be evaluated in isolation from model capability: the CL-Bench results show that giving a weaker model a memory directory can produce near-zero benefit, meaning harness designers cannot assume memory tooling generalizes across model generations. Fourth, dreaming functions as an error-correction and consolidation layer rather than mere summarization - it demonstrably repaired a poisoned memory that raw note-taking could not self-correct, and it filled structural gaps (placeholder pages) in derived wikis. Fifth, hybrid retrieval combining a built knowledge representation (wiki) with search outperformed either in isolation, suggesting dreaming-derived structures and retrieval are complementary rather than substitutable.
5. Discussion
These findings point toward a broader shift in how agentic systems should be designed: rather than engineering coordination and memory logic externally, practitioners may increasingly rely on sufficiently capable models to construct the primitives they need. The quote "agents now are sufficiently advanced that they can actually build primitives that they need to solve hard problems" captures this shift directly, and the removal of the Prove to Me harness between the September and Fable 5.2 runs is the clearest demonstration of scaffolding becoming unnecessary as capability increases.
This raises an important implication for benchmarking practice: memory and coordination capabilities cannot be meaningfully assessed independent of the base model, since the same affordance (a notes directory, a database table) produces near-zero benefit in one model generation and substantial benefit in the next. Evaluation frameworks that fix tooling while varying models, as in the CL-Bench and Stainless corpus tests, appear necessary to disentangle affordance from capability.
Open questions remain. The 1,000-agent run resolved 60 statements but the synthesis does not establish how proof correctness was validated beyond Lean's step-wise checking, nor how failure modes (e.g., agents overwriting each other's "landed" claims) were handled at scale. Similarly, the mechanics of dreaming - how much compute is allocated, how consolidation decisions are made, and how errors are detected rather than merely corrected after symptoms appear - remain underspecified and warrant further investigation.
6. Conclusion
This analysis demonstrates that two previously scaffolding-dependent agentic capabilities - multi-agent coordination and long-term memory - are increasingly native to sufficiently capable models. A 1,000-agent system self-organized a 30-hour formalization effort using only Git and a SQL database, and memory utility across continual-learning, gameplay, and document-corpus benchmarks scaled with model generation rather than with the mere presence of a memory directory. The dreaming mechanism further shows that reflective reprocessing can repair corrupted memory and build more complete knowledge representations than retrieval alone. Practically, these results suggest that harness designers should favor minimal, general-purpose primitives over domain-specific scaffolding as model capability increases, and should evaluate memory tooling jointly with the model generation it is paired with rather than as a standalone intervention.
Sources
- 1,000 Claude Agents Formalized Fermat's Last Theorem - Lance Martin, Anthropic - Original Creator (YouTube)
- Analysis and summary by Sean Weldon using AI-assisted research tools
About the Author
Sean Weldon is an AI engineer and systems architect specializing in autonomous systems, agentic workflows, and applied machine learning. He builds production AI systems that automate complex business operations.
Sean Weldon builds apps and custom software at 22Atlas.