TL;DR
Passing a repository’s unit tests doesn't guarantee your code will survive contact with the real world—especially when that code is a plugin living inside a complex, stateful host program. GameSWE puts AI coding agents to the ultimate practical test by having them write and fix mods for 12 popular video games (like Minecraft, Stardew Valley, and Balatro) and verifying their work directly inside the live, running games. Even the strongest frontier models stumble at the boundary between their code and the game engine, frequently declaring victory on patches that crash or fail once the game actually boots up.
What Problem Does This Paper Address?
If you've been following AI software engineering, you know the standard playbook established by benchmarks like SWE-bench: give an agent a codebase and a GitHub issue, let it edit the files, and run the repository’s test suite inside an isolated container.
That works great for standalone libraries, complete with neatly mocked environments. However, a huge amount of real-world software—browser extensions, plugins, enterprise add-ons—doesn't run on its own. It runs inside a live host program that the developer doesn't own or control. Whether a plugin actually works depends on messy runtime realities: load orders, undocumented globals, third-party extensions sharing the same memory, and stateful lifecycle events like saving, reloading, or a player respawning. Repository unit tests only catch what their authors thought to mock. Code can look pristine in isolation and still fall apart the moment it meets its host.
Methods
To bridge this gap, the authors use video game modding as a natural, reproducible proving ground. They built a four-stage live-runtime verification harness that evaluates AI-generated code without mocks or LLM-as-a-judge approximations:
- Agent Workspace (Blind to Runtime): Models are placed in a standard shell-and-text scaffold with the mod’s source code, API documentation, and task instructions—but zero access to the game binary, the test suite, or third-party dependencies.
- Build & Load: Once the agent submits its patch, the harness compiles the mod using the game’s actual toolchain and loads it into the real game (or dedicated server) alongside pinned third-party mods.
- In-Game Fixtures: Hand-written fail-to-pass (F2P) tests check the new fix/feature, while pass-to-pass (P2P) tests ensure existing behavior isn't broken. Crucially, these tests are in-game fixtures—automated sequences that load saves, place items, kill and respawn players, or restart servers.
- Clean Teardown: A task is only counted as resolved if it builds, loads, passes every test, and shuts down cleanly without errors.
Datasets
The paper introduces GameSWE v1, a newly constructed benchmark of 150 tasks drawn from open-source mods across 12 released games (including Minecraft, RimWorld, Garry’s Mod, Don’t Starve Together, Terraria, and Palworld) spanning five languages: Lua, Java, C#, SourcePawn, and Squirrel.
- Task Split: 100 repair tasks (fixing real or injected bugs in existing mods averaging ~8,900 lines) and 50 construction tasks (building a new mod from scratch or a tiny skeleton).
- Comparison to Existing Benchmarks: While SWE-bench repositories are much larger overall, GameSWE requires larger average code edits (221.4 lines vs. 32.8 lines) and runs more F2P tests per task (17.4 vs. 9.1). Unlike recent game-dev benchmarks where agents build toy games from scratch, GameSWE tests extending shipped commercial software alongside external third-party mods.
Key Insights and Ideas
- Agents’ self-checks create a massive illusion of competence: Without access to the live game, agents write their own syntax checks and mock scripts based on how they assume the host works. In 70.0% of failed attempts, the agent confidently submitted its work as complete; in 31.0%, it explicitly claimed its own tests passed—right before failing in the actual game.
- Failures cluster at the code-host boundary: Nearly 70% of unresolved submissions compile and load into the game before failing. Agents fail in three telling ways: hallucinating plausible APIs that don't exist in that game version, violating strict file-packaging rules, or writing core logic that works in isolation but isn't wired into every game lifecycle event (like world reloads).
- Ecosystem fluency doesn't transfer evenly: Even though task difficulty was calibrated across games, models that aced Minecraft or Balatro hit a brick wall on Palworld. Knowing how to code in Lua doesn't mean an agent understands a specific engine's quirks.
Key Results
The authors evaluated seven frontier and open-weight models (single attempt per task, equal weighting across games):
- Overall Resolution Rates: Claude Opus 5.5 led at 69.0%, followed by GPT-6 Astra (61.0%), Kimi K3.1 Pro (49.5%), and DeepSeek-V4.1-Flash (44.9%). Three models (MiniMax M3.1 Flash, GLM 5.3 Flash, and Qwen 3.8 27B) scored at or below 25.0%.
- Building vs. Fixing: Every single model found building mods from scratch much harder than debugging. Claude Opus 5.5 solved 75.0% of repair tasks, but dropped to 56.0% on construction tasks; weaker models solved between 2.0% and 16.0% of constructions.
- Wild Per-Game Variance: Even top performers swung wildly depending on the host game. GPT-6 Astra achieved 100.0% on Minecraft and Balatro, yet scored 0.0% on Palworld (where five of seven models scored zero).
Limitations and Future Work
- Deliberately "Blind" Agents: In this setup, agents cannot run the game interactively to test their hypotheses—they must get it right from code and documentation alone. Evaluating agents that can interactively playtest or read live runtime logs remains an open step.
- Current Scope & Co-loading: GameSWE v1 is a snapshot of 12 games and 150 tasks, and third-party mods are currently loaded by default only when the target mod depends on them (20 tasks), though a 4-game pilot co-loading unrelated popular mods showed nearly identical test outcomes.
- A Living Benchmark: The authors designed GameSWE to expand continuously, planning future versioned snapshots that add new games, programming languages, and modding frameworks as agent capabilities evolve.
Summary updated