Four Gemini 4 Argon agents beat Minecraft on easy difficulty by writing code
Four Gemini 4 Argon agents defeated Minecraft’s Ender Dragon on easy difficulty in 27 hours, writing 2,783 programs along the way. The result comes from a single run, which the researchers describe in a preprint published on arXiv.
Four AI agents running on Google’s Gemini 4 Argon model played Minecraft through to the end on easy difficulty. They defeated the game’s final boss, the Ender Dragon, in 27 hours and 14 minutes. Maxence Faldor, Satinder Singh and Roberta Raileanu describe the run in a preprint published on arXiv on 15 October. Google DeepMind presented the result on its X account the following day.
The result comes from a single run, and it was the researchers’ first attempt. According to the authors, one run does not show how reliably the same setup succeeds.
The agents did not see the game’s image and did not use a keyboard. Each controlled its own character by writing short JavaScript programs. The open-source Mineflayer library ran the programs on the game server. A program might, for example, tell the character to walk to a given point and mine nearby iron ore. The agent received text in return, such as the character’s position, health, inventory or an error message. Based on that, the agent wrote its next program.
The authors point out that this makes the game easier. Mineflayer tells the agent exactly which blocks and creatures are around the character. This includes blocks hidden behind stone and the dragon’s internal state. The library’s pathfinding plugin steers the character around obstacles. According to the authors, playing from the image alone is much harder.
The agents were general-purpose coding agents. The only information they received about the game was a one-paragraph description of the goal. Nobody gave them roles, a strategy or ready-made game tools. Gemini 4 Argon does, however, know Minecraft and Mineflayer from its training data. For that reason, the authors say, the run measures whether an agent can turn its knowledge into working programs and teamwork. It does not measure whether an agent can play a game it does not know.
Ten minutes into the game, one agent proposed a division of labour in the game chat, another replied with its own plan, and the roles settled soon afterwards. The agents recorded coordinates and observations in a shared memory. At the 19-minute mark, one agent warned the others about a problem with item crafting in Mineflayer and explained how to avoid it. A helper function containing the fix ended up in 655 programs. On one occasion, an agent’s program announced in the chat that it had succeeded when it had not. The agent corrected this two minutes later. A fifth agent watched the game as an observer. It detected no cheating.
During the game, the agents wrote 2,783 programs and died 605 times, most often killed by monsters. Of the programs, 22 per cent ended in an error. On easy difficulty, monsters deal less damage than on harder levels, and the player cannot starve to death. The slowest phase was the final battle, which lasted almost 14 hours. The dragon killed the agents 69 times. At around the 21-hour mark, one agent reasoned that the crystals on top of the pillars heal the dragon, and came up with a way to destroy them.
The authors estimated the cost from list prices and the tokens used. By the time they won, the four playing agents had processed around 1.35 billion input tokens and generated around 16 million output tokens. This would have cost about $520 at Gemini 4 Argon’s public introductory price and $1,040 at the standard price.
To the authors’ knowledge, this is the first time agents have completed Minecraft using only the standard Mineflayer library. They had no game tools written by humans and no pre-explored game world. The authors mention two community projects that have already reported defeating the dragon. In the first, a single Claude Opus 5 agent used 37 ready-made Minecraft tools on normal difficulty. In the second, a planning model played in a preselected speedrun world on peaceful difficulty.