
A team of Gemini 4 Argon agents beats Minecraft
Key Points
- 1A team of four autonomous Gemini 4 Argon agents successfully defeated the Ender Dragon in Minecraft by collaboratively writing 2,783 custom programs over a 27-hour session.
- 2Without human intervention or game-specific training, the agents leveraged the Mineflayer library to coordinate roles, share memories, and autonomously debug complex tasks within a survival world.
- 3This achievement demonstrates that general-purpose coding agents can manage long-horizon planning and multi-agent cooperation to solve complex objectives, signaling potential for similar performance in real-world software engineering tasks.
"A team of Gemini 4 Argon agents beats Minecraft" details an autonomous experiment in which four Gemini 4 Argon coding agents successfully completed the game of Minecraft—from a randomly generated world to the defeat of the Ender Dragon—without human intervention, game-specific training, or pre-programmed logic. The run lasted 27 hours and 14 minutes, involving 2,783 self-written JavaScript programs, 605 in-game deaths, and active coordination between the agents.
Methodology
The agents operated as general-purpose software engineers rather than specialized game-playing bots. Each agent controlled a player instance via an open-source library, Mineflayer, which allows JavaScript programs to interact with a standard Minecraft Java Edition 1.20.4 server.Technical Interaction:
- Action Mechanism: Agents did not perceive pixels or use standard input devices. Instead, they wrote and executed asynchronous JavaScript programs that sent commands to their respective Mineflayer bots (e.g., movement, resource gathering, inventory management).
- Control Loop: Each agent followed a loop: observe the environment (position, health, inventory), process the goal, write a script, execute it, read the output (or error logs), and update internal persistent memory.
- Shared Coordination: The agents communicated via the in-game chat and a shared memory system, enabling them to log coordinates, store item locations, and document strategies.
Problem Solving and Tooling:
The agents were not pre-loaded with game-specific heuristics. Instead, they:
- Built Infrastructure: They developed 42 reusable helper functions and 146 persistent state variables, such as navigation algorithms and automated resource management scripts.
- Mathematical Planning: When locating the "Stronghold," an agent performed geometric triangulation to estimate the target's coordinates. Using the flight trajectory of two "Eyes of Ender," the agent solved for the intersection of two rays:
By calculating the determinant , the agent successfully navigated to the subterranean structure.
Emergent Behaviors
The agents exhibited advanced collaborative behaviors typically seen in human software teams:- Division of Labor: Roles emerged organically (e.g., one agent focused on smelting and tool fabrication, another on food and supplies, and others on exploration and combat).
- Dynamic Error Recovery: Upon suffering losses—such as a Ghast destroying items or a teammate drowning—the agents logged "Critical Lessons" to update their shared strategy to prevent future recurrences.
- Verification and Correction: When an agent's code produced a false claim (e.g., reporting a success that did not occur), the agents performed peer-checks, with teammates identifying the inconsistency and triggering a retraction or correction.
- Strategy Formulation: They discovered efficient, non-standard tactics, such as constructing "Enderman shelters" by building two-block-high ceilings to nullify the mobs' height advantage, and using dirt pillars to reach healing crystals instead of using pickaxes.