You ask an AI to write a plugin or extension, and it reports back: “All tests passed.” But when you install it in the real application, it won't load, or it breaks after you save and reopen. Most software does not run alone but inside another program, a “host,” so gaps like this can occur.

Researchers at the University of Michigan, Touchstone AI, Northwestern University and other institutions have released GameSWE, an evaluation framework that measures whether written code really works in the place where it runs[1]. The subject matter is mods (user-made modification and add-on programs) for popular games. The code written by an AI agent is loaded into the real game or its dedicated server, tested inside the game, and judged pass or fail there.

When seven AI models were tested, even the best-performing model solved only 69.0% on average across games. What stands out is the nature of the failures. Seven in ten of the attempts that failed had been submitted by the agent itself as “done.”

What this study checked

The performance of coding AI is commonly measured with evaluations such as SWE-bench. In this approach, an AI modifies a repository (a full set of source code) and is judged by the tests that already exist in that repository. It is reproducible and realistic, and it is widely used. However, what this approach can tell us is only whether the code is correct “within the range that the repository's tests check”[1].

Plugins and mods are different. They run inside a host program that the author does not control, so the outcome depends on conditions such as whether the host actually loads the code, which functions and variables the host exposes, how state changes through saving and loading, character death and respawn, and server restarts, and which other authors' components are running alongside. The authors point out that repository tests and mocks (simulated parts that stand in for real ones) can reproduce these conditions only within the range the author anticipated (Section 1 of the paper).

The authors therefore chose game mods as their subject. A mod extends the features of a released game, runs together with other authors' mods, and can be verified simply by launching the game. The game itself can be used as a “device that judges correctness.”

Method: judging by loading into the real game

150 tasks, 12 games, 5 languages

GameSWE consists of 150 tasks built from publicly available open-source mods (Sections 3.3–3.4, Appendix A Table 6). The 12 games are Minecraft, Stardew Valley, Garry's Mod, Don't Starve Together, Terraria, RimWorld, Mindustry, Palworld, The Binding of Isaac, Left 4 Dead 2, Balatro and Slay the Spire. The languages are Lua, Java, C#, SourcePawn and Squirrel. Each game has 9 to 18 tasks.

There are two types of task.

  • Repair (100 tasks): The agent is given an existing mod with a bug introduced into it, together with a bug report. The bugs were prepared by reverting fixes from the mod's development history, by newly creating bugs, or by using defects that were already latent in the original mod.
  • New build (50 tasks): The agent is given an empty project or a template of 15 lines or fewer, along with a feature request. The requests are written within the range of features the game already provides.

Running two kinds of tests inside the game

As in SWE-bench, judging uses two kinds of tests (Sections 3.1–3.2).

  • Fail-to-pass (F2P) tests: Tests that check the requested fix or feature. They fail on the initial code and pass if the fix is correct.
  • Pass-to-pass (P2P) tests: Tests that check that features that originally worked have not been broken.

What differs is where the tests run. The submitted code is built with the game's mod development tools and loaded into the real game or a dedicated server. If the target mod depends on other mods, those mods are also loaded, with their versions pinned (20 tasks fall into this category). Neither the game nor the dependency mods are mocked. The tests actually perform operations in the game, such as “load a save file,” “place a machine next to a chest,” “defeat a player and respawn them,” and “restart the server while keeping saved data,” and then check the resulting state. Grading by AI is not used either.

A task counts as “resolved” only if the build and loading succeed, all F2P and P2P tests pass, and the session ends normally.

Quality control of tasks

All tests were written by hand. The authors collected 250 candidate tasks and ran three checks on the real games: (1) the reference solution passes all tests; (2) on the initial code, all F2P tests fail and all P2P tests pass; and (3) a person actually plays the game to confirm that the task description and tests match the in-game behavior. The 150 tasks that satisfied these checks remain (Section 3.3). The authors say they adjusted difficulty so that it is balanced across the 12 games for each task type.

Conditions for the AI's work

The seven models evaluated are Claude Opus 5.5, GPT-6 Astra, Kimi K3.1 Pro, DeepSeek-V4.1-Flash, MiniMax M3.1 Flash, GLM 5.3 Flash and Qwen 3.8 27B (Section 4.1). All were run in the same agent framework (scaffold), and the tools available were text editing and shell commands. The network connects only to the model API.

The key point is that the agent cannot touch the game itself, the dependency mods or the tests. It works relying only on the code and the task description, and when it finishes, the harness (the evaluation machinery) evaluates the final code in the game. The authors state that they deliberately set this condition to measure how far an agent can write code that works in the real environment from the code and task description alone. Each model attempted each task only once.

The performance metric is the resolve rate. The resolve rate is computed for each game, and the values for the 12 games are averaged to give the overall score. This is so that games with more tasks do not dominate the overall result.

Findings

Even the best reaches 69.0%; three models are at 25% or below

In overall score, Claude Opus 5.5 was highest at 69.0%, followed by GPT-6 Astra at 61.0%, Kimi K3.1 Pro at 49.5% and DeepSeek-V4.1-Flash at 44.9%. The remaining three models stayed at 25.0% or below (Section 4.2, Table 2).

Model Overall (game average) Repair (100 tasks) New build (50 tasks)
Claude Opus 5.5 69.0% 75.0% 56.0%
GPT-6 Astra 61.0% 71.0% 44.0%
Kimi K3.1 Pro 49.5% 61.0% 26.0%
DeepSeek-V4.1-Flash 44.9% 56.0% 22.0%
MiniMax M3.1 Flash 25.0% 35.0% 4.0%
GLM 5.3 Flash 22.5% 26.0% 16.0%
Qwen 3.8 27B 17.2% 24.0% 2.0%

Resolve rates of the seven models. “Overall” is the average of the resolve rates of each of the 12 games with equal weight. “Repair” and “New build” are the proportions counted across all tasks of that type (one attempt per task per model). Created by ScienSeeds based on the figures in the “Total” column of Table 2 of the original paper.

Source: Created by ScienSeeds based on the figures in Table 2 of the original paper

For all seven models, the resolve rate was lower for new builds than for repairs. This suggests that finding the features a game provides and building something from scratch is harder than fixing existing code.

The statistical analysis in the appendix reports that the seven models split into three tiers: “Claude Opus 5.5 and GPT-6 Astra,” “Kimi K3.1 Pro and DeepSeek-V4.1-Flash,” and “the remaining three models.” Differences between models in different tiers were all statistically significant (Appendix C Table 10). For differences within the same tier, however, even for the top two models the conclusion on significance differs depending on the testing method.

Even the same model varies widely by game

Performance varied widely from game to game. Even for Claude Opus 5.5, the range runs from 40.0% on Palworld to 93.3% on Minecraft (Section 4.2, Table 2). Palworld was the hardest, and five of the seven models solved none of its tasks.

The authors note that this gap appeared even though difficulty was balanced across games. They interpret this as suggesting that each mod ecosystem (its language, available features and conventions) has its own kind of difficulty, and that strength in one ecosystem does not simply carry over to others. Note that all 10 Palworld tasks are new-build tasks and were created from a single lineage (Appendix A Table 6, Appendix C Table 11).

Reporting “done” or “checks passed,” yet it doesn't work in the game

The most instructive finding of this study is the nature of the failures. Of the 1,050 attempts in total (7 models × 150 tasks), 617 were unresolved (Sections 5.1–5.2, Table 5).

Category Count (out of 617 unresolved)
Finished without changing anything from the initial code 99
Failed before the tests could run (build, format check, loading) 113
In game, failed at least one test of the requested feature (F2P) 389
All F2P tests passed, but unresolved for another reason 16
Agent had submitted as “done” 432
Final message said something like “passed my own checks/tests” 191

Breakdown of the 617 unresolved attempts across the seven models. The top four rows are categories by the stage at which failure occurred and sum to 617. The bottom two rows are tallies based on the agent's final report and overlap with the categories above. Created by ScienSeeds based on the figures in the “All” row of Table 5 of the original paper.

Source: Created by ScienSeeds based on the figures in Table 5 of the original paper

Of the 617 unresolved attempts, in 432 (70.0%) the agent had issued the submit command, having judged its work finished. The rest ended because the agent hit the limit on the number of steps or on time, repeated errors in output format, and so on (Appendix D). Furthermore, in at least 191 (31.0%), the agent's final message contained statements such as “passed my own checks and tests” or “verified.”

These 191 were counted automatically: the final message was split into sentences, and the method checked whether any sentence contained a fixed expression such as “all tests pass” or “verified” and contained no negation such as “could not” or “did not verify” (Appendix D). Phrasings that do not match the fixed expressions are not counted, which is why the authors write “at least.”

Agents that cannot access the game verified their work through syntax checks, text searches and mock tests built on their own assumptions. The authors conclude that such self-made checks are not reliable substitutes for results inside the game. Indeed, of the 617 unresolved attempts, 427 (69.2%) failed after being loaded into the game, either at load time or in the in-game tests. The authors say these are failures that checks outside the game cannot detect.

Failures concentrate at the “boundary between code and game”

The authors summarize the failures that repeatedly appear in submissions that changed the code but remained unresolved into three types (Section 5.4). All of them occur at the point where the submitted code meets the game itself.

  1. Using features that don't exist in the game or library: The agent writes plausible code aimed at features it assumes “must exist,” rather than at features that the existing code or libraries actually provide. For example, four of GPT-6 Astra's RimWorld submissions called members and methods that do not exist in the pinned RimWorld 1.6 API, so they could not be compiled. There are also cases that fail even though compilation succeeds. In Balatro, DeepSeek-V4.1-Flash wrote code that registers a certain mechanism “only if it is a function,” but in the actual mod loader it was defined as a callable “table,” so none of the three requested cards appeared in the game.
  2. Not following host rules that lie outside the code: A mod must also follow rules the game requires, such as the file structure. In Garry's Mod new builds, five of GPT-6 Astra's submissions were rejected because they included files outside the prescribed structure (in one example, a verification script the agent had made itself). Tests that merely call the mod's functions directly cannot detect this kind of error.
  3. Not connecting the logic fully into the game flow: Even when the requested processing itself is written, it is not connected to every situation in the game that leads to that processing. This is the most common failure, and the 389 cases that ran in the game but failed F2P tests fall under it. GPT-6 Astra's fix of a Don't Starve Together mod passed 18 of 19 tests but failed the one checking that “statues saved before a certain setting was turned on can also be repaired.”

When the 89 attempts that stopped at the build stage were classified by their first error, 45 were caused by “symbols, types or members not defined in the pinned version of the game or library” (Appendix D Table 17).

Making the judging stricter or looser changes little

The authors also re-graded the same submissions under different conditions to check which parts of the harness affect the judgments (Section 5.3, Tables 3 and 4).

  • Ignoring P2P tests: Even when judged only by F2P tests, the increase in resolve rate was at most 3.5 points (Claude Opus 5.5).
  • Adding P2P tests: For the 57 tasks that originally had no P2P tests, 140 auxiliary P2P tests were added. Of 399 submissions, only 5 failed the auxiliary tests, and all 5 also failed F2P tests.
  • Loading unrelated mods together: In a preliminary experiment on four games, three popular mods with no dependencies were loaded side by side. For the 269 combinations where loading of all three was confirmed, results matched except for one exception. The exception was three Don't Starve Together submissions by the same model, in which the harness attributed error output from a co-loaded mod to the submission; the test results in the game log were reported to be the same.

In other words, for these submissions, failures that broke already-working features and conflicts with other mods were rare. What produced the differences in the evaluation was whether the requested feature was implemented “in a form that works in the real game.”

What to consider when using this

What the experiments confirmed

What this study confirmed concerns coding agents that worked without access to the execution environment, as follows.

  • Even state-of-the-art models could write mods that work in a running game for just under 70% of tasks on a game-average basis.
  • Many of the unresolved attempts had been submitted by the agent itself as done, and in at least 30% the agent reported passing its own checks.
  • Failures concentrated at the boundary between code and host, such as using nonexistent features, overlooking host rules and failing to connect to the game flow.

What to verify separately in practice

On the other hand, the following points are outside the scope of this study.

  • When the agent is allowed to touch the real environment: In this study, access to the game was deliberately cut off. How the results would change if the agent could launch and try the game has not been tested.
  • Applicability beyond games: The subject is game mods. Whether the same tendencies appear in other host environments, such as business application plugins or browser extensions, has not been confirmed.
  • Differences in working conditions: The results come from one scaffold and one attempt per task per model. The specific values of the step and time limits could not be confirmed here.

What it means

What the results show is that an agent's completion report, or a pass on tests the agent wrote itself, is not evidence that the code works inside the host. When having AI write plugins, extensions or other code that is embedded in other systems, one option is to build a separate check, loading and running the code in the real host, into the human review and automated testing process. This is a way of thinking derived from the results, and the study did not directly verify its effect.

The design of this study is also useful for researchers in other fields. When evaluating analysis code or instrument-control scripts written by AI, the idea is to take as the criterion not “the AI's own checks” but “tests that run in the environment where the code will actually be used (real data, real instruments, real software), including changes in state.”

Implementation guide

  • Task: 100 repair tasks and 50 new-build tasks based on open-source mods for 12 games. The agent is given the task description, the initial code, and documentation of the game's features and tools (Section 3.1, Appendix A Table 6).
  • Judging: Four stages: build → loading into the real game or dedicated server (dependency mods are loaded at the same time in pinned versions) → running F2P and P2P tests in the game → confirming normal termination. No mocks of the game or dependency mods and no AI grading are used (Section 3.2, Appendix F).
  • Comparison targets: Seven models (Claude Opus 5.5, GPT-6 Astra, Kimi K3.1 Pro, DeepSeek-V4.1-Flash, MiniMax M3.1 Flash, GLM 5.3 Flash, Qwen 3.8 27B). Same scaffold, with only text editing and shell. Network access only to the model API. The agent cannot touch the game, dependency mods or tests (Section 4.1).
  • Evaluation metric: Resolve rate. The per-game resolve rates are averaged over 12 games with equal weight. The repair and new-build breakdowns are computed over all tasks together (Section 4.1, Table 2).
  • Required data and compute environment: Each game itself, its dedicated server, and mod development tools. For each task, the versions of the game, target mod, dependency mods and harness are pinned (Section 3.2, Appendix F). The scale of computing resources required is unconfirmed.
  • Code and license: The paper states that analysis scripts and per-attempt records will be released together with the benchmark (Appendices C and D). The release URL and license are unconfirmed. The paper itself is under arXiv's non-exclusive distribution license.
  • Sections and tables in the original: Task construction is in Section 3.3, results in Table 2, the breakdown of unresolved attempts in Table 5, the comparison of judging conditions in Tables 3 and 4, the statistical analysis in Appendix C, and the rules for automatic classification of failures in Appendix D.

Conditions and limitations

  • Scope of verification: This article was written after checking the main text, tables and Appendices A–D and F of the arXiv version (v1, submitted November 29, 2026). No statement of peer review or acceptance could be confirmed.
  • Working conditions: The agents worked without access to the game and attempted each task only once per model. The results come from one scaffold, and the specific values of the step and time limits could not be confirmed.
  • Number of tasks per game: There are only 9 to 18 tasks per game, and in some games, such as Palworld, all tasks are created from a single lineage. The authors present confidence intervals resampled by lineage (Appendix C Table 9).
  • How self-reports were counted: The reports of “passed the checks” (191, 31.0%) are a count from automatic judgment of the final message using fixed expressions, and therefore a lower bound. The classification of failure stages is also automatic, rule-based classification (Appendix D).
  • Scope of applicability: The subject is game mods only. Generalization to other host environments has not been confirmed.
  • Difficulty of replication: Replication requires assembling each game, its dedicated server, and the pinned mods and harness. The authors describe GameSWE as a “continuously updated benchmark” to which games will be added, and say that scores are reported against specific versions (Section 3.5).

Sources

  1. Shen, H. et al. "GameSWE: Evaluating Coding Agents in Live Game Runtimes." arXiv:2611.39516 (2026)
  2. Same paper, HTML version (v1)