For years, artificial intelligence researchers have attempted to solve open-ended scientific problems by scaling model size and single-prompt context windows. However, monolithic reasoning architectures frequently hit logical plateaus when confronted with long-horizon problems that require continuous error correction, self-critique, and sustained multi-day experimentation. To overcome these constraints, Google Research and Google DeepMind introduced a novel multi-agent framework named Teamwork under Project Antigravity.
By organizing swarms of lightweight language models into specialized collaborative roles, the Teamwork system successfully resolved seven previously unsolved problems in mathematics and theoretical computer science. Operating autonomously over multi-day execution windows without human intervention, the framework generated rigorous mathematical proofs—including a 40-page paper verified by formal proof assistants—and engineered functional system components from scratch. Crucially, three of these major mathematical breakthroughs were accomplished using Gemini 3.7 Flash, proving that structured agent orchestration can achieve state-of-the-art research outputs at a fraction of traditional inference costs.
How the Google Teamwork Multi-Agent Framework Works
Unlike traditional single-prompt reasoning systems that rely on linear sequence generation, the Teamwork multi-agent framework operates as an asynchronous, adversarial multi-agent system. The core architectural innovation lies in its separation of creative solution generation from formal verification and critique.
When assigned a complex research goal, the Teamwork system distributes tasks across four distinct operational roles:
- Proposer Agents: Generate diverse algorithmic candidates, proofs, or code implementations using randomized sampling parameters.
- Adversarial Critic Agents: Systematically search for logical fallacies, edge-case failures, or counterexamples in proposed solutions.
- Refinement & Recombination Agents: Extract surviving logical components from critiqued proposals and synthesize them into unified, higher-confidence frameworks.
- Formal Verification Agents: Interface directly with deterministic external toolchains—such as formal interactive theorem provers or compiler environments—to validate output accuracy.
Teamwork Multi-Agent Execution Loop
Asynchronous reasoning pipeline · Continuous adversarial refinement · Formal tool validation
By executing this loop continuously across hours or days, the framework prevents individual agent hallucinations from contaminating the final output. If an individual proposer agent produces a plausible yet incorrect step, adversarial critic agents isolate the error before compute resources are wasted on deeper downstream synthesis.
Mathematical Proofs and Formal Lean Verification
The most notable achievement of Google’s Teamwork system was its ability to conquer seven open problems in pure mathematics and theoretical computer science. In advanced mathematics, standard natural language explanations are often prone to subtle semantic errors. To establish complete mathematical validity, Google DeepMind integrated the Teamwork framework with the Lean Interactive Theorem Prover.
During one experiment, the autonomous agent swarm constructed a full 40-page mathematical proof. The agents converted abstract mathematical steps into formal computer-verifiable code, passing complete validation in the Lean proof environment without human intervention.
Remarkably, three of these seven mathematical proofs were fully reproduced using Gemini 3.7 Flash, demonstrating that massive ultra-high-parameter models are not always required for high-level reasoning when effective multi-agent execution frameworks are present.
Systems Engineering: RISC-V Simulation and Compiler Optimizations
Beyond pure theoretical mathematics, Google Research tested the Teamwork framework on practical systems engineering tasks that require deep architectural understanding and long-context state management.
Building an OS-Bootable RISC-V Simulator
In an automated hardware engineering trial, Teamwork agents were instructed to design a functional RISC-V CPU simulator from scratch. Over a multi-day autonomous coding loop, the agent team implemented instruction set architecture (ISA) decoding, register management, and memory translation layers. The resulting simulator successfully executed a complete operating system boot sequence.
Production C++ Library Performance Tuning
Google DeepMind also deployed Teamwork agents into real-world software maintenance workflows. The agent system analyzed and optimized core C++ performance libraries, producing verified code enhancements that were merged into major open-source repositories:
- Eigen: A widely used C++ template library for linear algebra, matrices, and vector math.
- ParlayHash: A high-performance parallel hash table implementation optimized for multi-core architectures.
Instead of applying generic micro-benchmarks, the multi-agent system systematically profiled execution bottlenecks, generated algorithmic refinements, and verified memory safety before generating pull requests.
Economics of Scale: Flash Models vs. Monolithic Reasoning
The engineering decisions behind Project Antigravity highlight a fundamental shift in AI deployment strategy: substituting single heavy inference requests with orchestrated swarms of faster, lower-cost models.
🧠 Monolithic Reasoning Model
- Execution: Linear, single-threaded inference
- Cost Profile: High cost per output token
- Error Resilience: High risk of cascade failure if early steps hallucinate
- Horizon Limit: Constrained by context limits and latency timeout
⚡ Teamwork Swarm (Gemini 3.7 Flash)
- Execution: Parallel, multi-role agent orchestration
- Cost Profile: Low token cost enabling high-throughput search
- Error Resilience: Continuous adversarial filtering and tool validation
- Horizon Limit: Multi-day autonomous task execution
By leveraging Google Cloud Platform infrastructure to run Gemini 3.7 Flash instances in parallel, research teams can explore thousands of candidate hypothesis paths simultaneously. The lower latency of Flash models enables high-frequency back-and-forth debate among agents, effectively replacing expensive single-model computation with exhaustive automated review.
Technical Challenges and Future Limitations
While the results from Google DeepMind and Google Research demonstrate impressive long-horizon capabilities, multi-agent frameworks introduce distinct engineering challenges:
- Compute Overhead: Running dozens of agents continuously across days consumes significant token volume, requiring fine-grained token budgeting.
- Verification Dependence: Agents excel when coupled with deterministic feedback systems (e.g., Lean proof checkers, compilers, unit tests). In domains without automated verifiers, detecting subtle hallucinations remains challenging.
- State Synchronization: Maintaining consistent shared memory across multiple asynchronous agents requires careful context compaction and protocol design.
Practical Implications for Enterprise AI Development
The success of Project Antigravity signals that future software engineering and scientific discovery tools will rely heavily on autonomous multi-agent environments. Development teams should prepare by modularizing codebases, establishing robust automated test suites, and building deterministic interfaces that AI agent swarms can use to validate their own work.
Some of the links below are affiliate links. If you sign up through them, we may earn a commission at no extra cost to you.
Based on public announcements by Google DeepMind and Google Research (August 2026).
Frequently Asked Questions
What is Google Antigravity Teamwork?
Teamwork is an autonomous multi-agent framework developed by Google Research and Google DeepMind under Project Antigravity. It orchestrates multiple AI agents into specialized roles—such as proposals, adversarial critique, and formal verification—to solve complex research and engineering problems over multi-day execution periods.
How does Gemini 3.7 Flash contribute to multi-agent research?
Gemini 3.7 Flash provides a fast, cost-effective inference engine that allows dozens of agents to collaborate concurrently. Its high speed and low token cost enable multi-agent swarms to run exhaustive search and adversarial review loops that would be cost-prohibitive with larger monolithic models.
Why is formal verification with Lean important for AI mathematical proofs?
Natural language proofs generated by AI models often contain subtle logic gaps or hallucinations. By converting proofs into Lean code, the system uses a deterministic mathematical compiler to guarantee that every logical step is 100% mathematically valid.
Can multi-agent frameworks replace human software engineers?
Multi-agent frameworks act as force multipliers rather than complete replacements. While Teamwork can automate complex tasks like writing CPU simulators or optimizing C++ libraries, human engineers are still required to define research goals, review pull requests, and maintain core system architectures.