Multimodal foundation models can play video games well when the game waits for them, but often fail when it keeps running. We find that much of this gap lies in the harness, which decides what the model sees, what it remembers, and how its outputs become actions over time. Existing harnesses such as VISTA improve the first two, yet turn each model call into at most one action, so the agent acts only as often as its model thinks. We introduce AutoPILOT, which changes the third: in each model call, the model can send a primitive action, start an open-loop macro, or write a closed-loop controller that keeps playing from the screen without further model calls until it hands control back. To evaluate agents in real-time games, we build AFK-Bench, 120 diverse browser games grouped by how they respond to inaction and playable in real time or with the clock paused. With GPT-6.1 Sol under the same budgets, AutoPILOT reaches 68.6% real-time success against 38.3% for VISTA, and on GameWorld it keeps 80.0% in real time while VISTA drops from 84.1% to 42.9%. Its gains hold across closed and open-source models, and it reaches VISTA's final success rate at a fifth of its API cost. Our results suggest that how a harness turns model outputs into actions over time is a central yet underexplored part of agent design, and we hope AutoPILOT and AFK-Bench will serve as a foundation for agents in a world that does not wait.
Figures & tables
Method
Observation
No game-specific training
One harness for many games
Real-time evaluation
Macro actions
Model-written controller
Env. type
# Envs
Voyager [ 42 ]
game state
✓
✗
New A
✓
✓
Minecraft
1
Code as Policies [ 21 ]
perception API
✓
✗
New A
✓
✓
robotics
3
Cradle [ 38 ]
screen
✓
✓
✗
✓
✗
PC games, apps
10
Game-TARS [ 47 ]
screen
✗
✓
✗
✗
✗
video games
7
HLA [ 23 ]
text
✓
✗
✓
✓
✗
Overcooked
1
DPT-Agent [ 60 ]
text
✓
✗
✓
✓
∼
Overcooked
1
Table 1: Comparison with game agents and harnesses. ∼ partly (DPT-Agent uses rules for a hand-built state machine, and TORSI makes multi-step plans in 2 of 6 games). New A not reported. Real-time: the game runs during model calls. Macro actions: several actions per model call. # Envs: distinct games, apps or benchmarks (ours: 120 in AFK-Bench, 34 in GameWorld).
Figure 3: The three environment types of AFK-Bench. Each row shows three of the 40 games of one type. Below each game are the real-time wins of VISTA and AutoPILOT out of three episodes with GPT-6.1 Sol. Tab. 8 lists all 120 games.
Harness
Model
Hostile real-time
Benign real-time
Turn-based
Overall
Paused Clock
Codex only
GPT-6.1 Sol
52.5 .737
45.0 .693
57.5 .780
51.7 .737
Claude Code only
Claude Opus 5.5
47.5 .735
40.0 .594
40.0 .664
42.5 .665
GPT-6.1 Sol
56.7 .783
55.8 .746
55.8 .796
56.1 .775
Claude Opus 5.5
37.5 .629
40.0 .644
40.0 .670
39.2 .648
DeepSeek-V4.1-Flash
25.0 .537
22.5 .468
25.0 .496
24.2 .500
Table 2: Main results on AFK-Bench. Success rate (%) with mean progress in small type. Bold: best overall success rate for each model and clock. DeepSeek-V4.1-Flash, GLM-5.3-Flash and Hy4-flash are open-source, and Qwen4-Max is closed. All models use low reasoning effort. Hy4-flash has a single thinking mode. Tab. 12 gives 95% intervals and statistics over the three seeds.
Figure 4: Recovery, model-call budget, generation speed and cost. (a) Success within k restarts and (b) within the first b model calls (300-call budget), on all 120 games (solid) and the 40 hostile real-time games (dotted), with GPT-6.1 Sol. (c) Success of AutoPILOT and VISTA on the 80 hostile real-time and benign real-time tasks against simulated generation speed (in tokens/s, where ∞ means a paused clock), with GPT-6.1 Sol and Claude Opus 5.5. (d) Success against the total list-price API cost over all 120 tasks as a per-episode spending cap is raised. Arrows run from where AutoPILOT first matches VISTA’s final success (white ring) to VISTA’s total cost.
Table 5
Budget
model calls / steps / time
Success
Cost / ep.
AutoPILOT
Standard
100 / 2000 / 2000 s
69.2
$0.83
3 × model calls
300 / 2000 / 2000 s
71.7 (+2.5)
$1.18
2 × steps
100 / 4000 / 2000 s
70.8 (+1.7)
$0.90
2 × game time
100 / 2000 / 4000 s
70.8 (+1.7)
$0.94
All relaxed
300 / 4000 / 4000 s
78.3 (+9.2)
$1.92
Table 5: Scaling the budget. Success rate (%) and API cost per episode with GPT-6.1 Sol in real time on 120 episodes. Parentheses give the change from the standard budget. VISTA sends one step per model call, so the step budget does not apply (–).
Figure 5: Low vs . high reasoning effort (AutoPILOT and VISTA, real time). Overall success rate. Arrows mark the gap from VISTA at high effort to AutoPILOT at low effort, in points.
Model
Harness
Paused
Real time
VISTA
84.1 .917
42.9 .653
GPT-6.1 Sol
AutoPILOT
82.9 .911
80.0 .900
VISTA
67.1 .830
41.2 .623
Claude Opus 5.5
AutoPILOT
72.4 .855
67.6 .845
Table 6: Results on GameWorld. Success rate (%) on its 170 tasks, with mean progress in small type. Bold marks the best per model and clock.
Appendix figures & tables21 assets
Supplementary material from the paper’s appendix.
Appendix
Tool
Codex
VISTA
AutoPILOT
act (one action per call)
✓
✓
✓
run_macro (open-loop)
✓
python (closed-loop controller)
✓
inspect , read_pixels , history
✓
✓
notes ( GUIDE.md , WORKING.md )
✓
✓
Appendix
Table 7: Game tools per harness in the GPT-6.1 Sol runs. Every harness sees a screenshot after each action, and AutoPILOT also on every wake. The Codex harness also has screenshot and keeps Codex’s code execution without shell, file or network access.
Hostile real-time (40)
Game
VISTA
AutoPILOT
A Dance of Fire and Ice
0/3
3/3
Backstreet Warriors
0/3
0/3
Bad Monday Simulator
0/3
2/3
Cave Buster
0/3
1/3
Dead Estate CLASSIC
0/3
3/3
Appendix
Table 8: The 120 games of AFK-Bench , by environment type, with real-time wins out of three episodes with GPT-6.1 Sol for VISTA and AutoPILOT (bold: higher). Titles follow the games’ source pages. Tab. 10 lists sources and licences.
Turn-based (40)
Game
VISTA
AutoPILOT
AGLOBO
0/3
1/3
awake
3/3
3/3
Blackout
0/3
0/3
Bloody Fun Day
1/3
2/3
Bob Velseb the Cannibal the Dating Simulator
3/3
3/3
Appendix
Table 9: The 120 games of AFK-Bench (continued).
Game
Author
Src.
Lic.
Achievement Unlocked
John
A
–
A Dance of Fire and Ice
fizzd et al.
I
–
AGLOBO
Daniel Moreno
I
–
APOLLO
Daniel Moreno et al.
I
–
awake
droqen
I
–
Backstreet Warriors
SebaGamesDev
I
–
Appendix
Table 10: Sources and licences of the 120 games. Author: the first author or uploader named on the source page. Src.: I itch.io, A Armor Games, K Kongregate, N Newgrounds, D Not Doppler, G GitHub, – no source page recorded. Lic.: the licence the author states on the source page, in the source repository or in a licence file shipped with the game. MIT is the MIT licence (code), NC, NC-SA and NC-ND are CC BY-NC 4.0, CC BY-NC-SA 4.0 and CC BY-NC-ND 4.0 (assets or cartridge), MIT/NC is MIT code with CC BY-NC 4.0 assets, PD is a public-domain dedication, and – means that no licence is stated (unknown).
Harness (real time, GPT-6.1 Sol)
run 1
run 2
run 3
mean
Codex
39.2
37.5
40.0
38.9
VISTA
37.5
39.2
38.3
38.3
AutoPILOT
69.2
68.3
68.3
68.6
No controller
66.7
65.0
62.5
64.7
No macro
65.0
70.0
67.5
67.5
AutoPILOT, high effort
71.7
72.5
70.8
71.7
Appendix
Table 11: Success rate (%) in each of the three runs, with random seeds 42, 43 and 44. Each run covers 120 tasks.
Model, clock
Harness
SR (%)
95% interval
Run std
GPT-6.1 Sol, paused
VISTA
56.1
[48.3, 63.9]
1.0
AutoPILOT
73.1
[65.8, 80.0]
2.4
GPT-6.1 Sol, real time
Codex
38.9
[30.8, 47.2]
1.3
VISTA
38.3
[30.3, 46.4]
0.8
AutoPILOT
68.6
[61.1, 76.1]
0.5
Claude Opus 5.5, paused
VISTA
39.2
[30.8, 48.3]
–
Appendix
Table 12: Intervals and paired tests. Top: success rate with a 95% bootstrap interval over tasks and the std over the three runs. The bootstrap uses 4,000 resamples and averages the episodes of a task. A dash marks a single run. Bottom: pairs won by only one side, and the two-sided exact McNemar p .
GPT-6.1 Sol
Claude Opus 5.5
Genre
Tasks
VISTA
AutoPILOT
VISTA
AutoPILOT
Hostile real-time
Shooter
18
24.1
63.0
11.1
55.6
Fighting
11
6.1
72.7
18.2
36.4
Action (other)
11
15.2
51.5
27.3
45.5
Benign real-time
Appendix
Table 13: Success by game genre in % in real time at low effort, averaged over the episodes of a task and then over tasks. Genres come from a keyword rule on each game’s description, and genres with fewer than six tasks join “other”.
Model
Clock
VISTA
AutoPILOT
Only one wins
p
DeepSeek-V4.1-Flash
real time
20.0
39.2
1 / 24
2×10−6
paused
24.2
44.2
1 / 25
8×10−7
Qwen4-Max
real time
14.2
27.5
1 / 17
1.5×10−4
paused
25.0
41.7
2 / 22
4×10−5
GLM-5.3-Flash
real time
3.3
18.3
0 / 18
8×10−6
paused
1.7
26.7
1 / 31
2×10−8
Appendix
Table 14: Paired tests for the four further models on AFK-Bench. Each model plays one episode on each of the 120 tasks. Success rates by environment type are in Tab. 2 . Only one wins: tasks won only by VISTA/ only by AutoPILOT. p : two-sided exact McNemar test.
Model
VISTA
AutoPILOT
Only one wins
p
GPT-6.1 Sol
42.9 .653
80.0 .900
0 / 63
2×10−19
Claude Opus 5.5
41.2 .623
67.6 .845
6 / 51
6×10−10
Qwen4-Max
27.6 .515
57.1 .758
3 / 53
8×10−13
Hy4-flash
20.0 .399
51.8 .713
0 / 54
1×10−16
Appendix
Table 15: Other models on GameWorld. Success rate (%) with mean progress in small type, in real time with one episode on each of the 170 tasks. Only one wins: tasks won only by VISTA/ only by AutoPILOT.
Model
Effort
Hostile real-time
Benign real-time
Turn- based
Overall
GPT-6 Astra
low
70.0 .822
62.5 .781
87.5 .934
73.3 .846
high
70.0 .841
67.5 .820
87.5 .941
75.0 .867
Claude Fable 5.2
low
70.0 .810
60.0 .791
85.0 .945
71.7 .849
high
75.0 .862
55.0 .777
85.0 .926
71.7 .855
Appendix
Table 16: Further models with AutoPILOT only. All runs are in real time with one episode per task. Small type gives mean progress.
Harness
Hostile real-time
Benign real-time
Turn-based
Overall
Model calls
Tokens
Cost / ep.
Codex
17.5
36.7
62.5
38.9
81
5.1M
$1.35
VISTA
16.7
37.5
60.8
38.3
80
5.3M
$1.50
AutoPILOT
62.5
60.0
83.3
68.6
43
2.8M
$0.89
No controller
50.8
60.0
83.3
64.7
58
4.6M
$1.31
No macro
62.5
61.7
78.3
67.5
46
3.1M
$0.91
No controller & macro
22.5
45.0
70.0
45.8
81
5.5M
$1.45
Appendix
Table 17: Ablations and cost for all environment types. All runs use GPT-6.1 Sol in real time. Tokens include input, output, cached and reasoning tokens. Cost is at list price. VISTA’s model calls are its tool calls.
Figure 6: Success against cost on AFK-Bench in real time. Color marks the harness, light and dark shades low and high effort. Cost per episode at list price. Claude Fable 5.2 cache prices assume Fable 5.1 ratios.
Setting
Model
AutoPILOT
VISTA
Both win
Both lose
AFK-Bench, real time
GPT-6.1 Sol
0.89
1.50
0.42 / 0.68
1.65 / 2.01
Claude Opus 5.5
2.41
3.07
0.94 / 1.27
3.89 / 3.80
AFK-Bench, paused
Claude Opus 5.5
2.73
2.83
0.86 / 1.37
4.88 / 3.72
GameWorld, real time
GPT-6.1 Sol
0.56
1.35
0.20 / 0.39
1.35 / 2.06
Claude Opus 5.5
2.02
2.53
0.41 / 0.67
4.37 / 3.91
Appendix
Table 18: Cost per episode in $ at list price. Both win and both lose: paired episodes that both harnesses win or both lose, given as AutoPILOT/ VISTA.
Tool calls (%)
Steps (%)
Episodes
act
macro
python
other
model
macro
ctrl.
Won (247)
51
24
20
5
5
11
84
Lost (113)
34
27
35
5
2
5
93
Appendix
Table 19: Tool use in successful and failed episodes of AutoPILOT with GPT-6.1 Sol in real time, pooled over episodes. Here “other” means read-only tools and “ctrl.” means controllers.
Figure 7: Lives and restarts in real time with GPT-6.1 Sol and Claude Opus 5.5. A life is the playable game time between consecutive restarts. The last, censored segment of each episode is excluded from (a) and (b). (a) Game seconds and (b) model calls per life: median over episodes of each episode’s median life, with interquartile range, over episodes with at least one restart. (c) Success on paired episodes in which both harnesses restarted: GPT-6.1 Sol 71/123 vs . 7/123 ( p≈10−19 ) and Claude Opus 5.5 11/37 vs . 4/37 ( p=0.039 ).
Figure 8: Success over game time with GPT-6.1 Sol at low effort in real time. Panel (b) shows hostile real-time only. Share of all episodes won by game time t . Failures stay in the denominator, so the right end equals the success rate. Dotted lines mark 30 s, 2 min and 5 min.
Budget
Limits
Hostile real-time
Benign real-time
Turn-based
Overall
Standard
100 / 2000 / 2000 s
65.0 .806
57.5 .761
85.0 .918
69.2 .828
3 × model calls
300 / 2000 / 2000 s
60.0 .757
70.0 .807
85.0 .924
71.7 .829
2 × steps
100 / 4000 / 2000 s
67.5 .810
62.5 .801
82.5 .907
70.8 .839
2 × game time
100 / 2000 / 4000 s
65.0 .812
60.0 .772
87.5 .919
70.8 .834
Relaxed
300 / 4000 / 4000 s
77.5 .871
70.0 .846
87.5 .942
78.3 .886
VISTA
Appendix
Table 20: Scaling the budget, by environment type with GPT-6.1 Sol in real time on 120 tasks, with mean progress in small type. Limits are model calls / steps / game time. § Not applicable to VISTA, which sends one step per model call.
Generation speed (tokens/s)
Model
10
25
50
100
200
Paused
GPT-6.1 Sol, high
55.0 .738
61.3 .762
68.8 .819
66.3 .809
66.3 .805
71.3 .846
GPT-6.1 Sol, low
55.0 .760
56.3 .762
61.3 .782
63.8 .798
63.8 .799
66.3 .821
Claude Opus 5.5, high
31.3 .522
42.5 .658
46.3 .658
58.8 .774
62.5 .770
63.8 .810
Claude Opus 5.5, low
36.3 .604
43.8 .622
45.0 .661
50.0 .703
48.8 .677
52.5 .729
Appendix
Table 21: Success rate at controlled generation speed for AutoPILOT on 80 hostile real-time and benign real-time tasks, with mean progress in small type. The game is frozen during generation and then runs for N/v s for N output tokens.
Game
VISTA
AutoPILOT
PRAXIS FIGHTER X hostile real-time
One action per model call, each after several seconds of thinking. The ship is often destroyed before the action lands. 30 failures in 100 tool calls. Best progress 25%. Lost.
A macro ends with the first failure at 0:14, and two more follow by 0:44. At 0:32 the model writes the screen-driven controller of Fig. 2 b. It takes over at 0:44, plays 103 steps without another failure and wins at 1:26, after 6 model calls in total. Won.
Radius Raid hostile real-time
One strafe per model call. Health runs out 12 times. Model call 100 ends the episode at 10:24. Lost.
One act turns on autofire. Two model calls write a targeting controller that takes 58 of 59 steps. Won at 1:02 with 3 model calls, no loss. Won.
Trichromat turn-based
One tile per model call. Solves two of three rooms at 3:06 and 9:10. Model call 100 arrives in the last room at 14:32. Lost.
Writes each room as a Python model and searches it, then reports “found a 25-move solution”. Tests one move, then executes the rest with controllers and one macro. 180 of 182 steps come from the worker. Won at 3:16 with 14 model calls. Won.
Appendix
Table 22: Three recorded episodes with GPT-6.1 Sol in real time. Times are game time. Recorded separately from the main-table runs.
Figure 9: Case study: Radius Raid , a hostile real-time game, with GPT-6.1 Sol in real time. (a) VISTA at 6:42, shortly before its eighth failure. (b) An abridged version of AutoPILOT’s controller, which tracks the ship and enemies by color. (c) Best progress, model calls, steps and failures over game time. VISTA loses its progress at every failure, while AutoPILOT wins at 1:02.
Figure 10: Case study: Trichromat , a turn-based game, with GPT-6.1 Sol in real time. (a) VISTA moves once per model call and reaches the last room with its last calls. (b) AutoPILOT searches a Python model of each room and executes the solution with controllers, shown abridged for room 1. (c) Best progress, model calls, controller runs and steps over game time. Each room adds a third to progress.
Pre-trained models can read screens and reason about games, yet on an unfamiliar game, an agent still has to learn to play. We ask how an agent can self-improve on such a game from a few of its own attempts, in real-time visual games where the agent sees only the screen and the game keeps running while the agent thinks. We study two kinds of policy that can carry this improvement. In model as policy, a model selects actions during play; we adapt real-time chunking so that committed actions keep executing while the model reasons, and train a 2B controller for this interface. In code as policy, a model writes, tests, and revises a program between attempts, and the program acts during play. Across 170 GameWorld tasks, with at most eight one-minute executions per run, code as policy reaches 47.80% mean progress, against 30.90% for our trained controller, and leads in all five game categories. Improving the controller's weights on a single game, by contrast, yields only modest gains. These results favor letting a model think offline and storing what it learns in a program that acts in real time. Project repository: https://github.com/TabibitoQZP/SIGame
AI agents have made substantial progress in domains where they have a non-trivial amount of time to deliberate between actions, such as mathematics, software engineering, and performing tasks on desktop applications. It is less clear how such models fare in settings that demand real-time interaction, such as playing a video game or operating a physical device. In these settings, the environment state may evolve as the agent is reasoning, or even as the underlying model is performing a forward pass. To gain insight into the real-time interaction capabilities of vision-language agents, we introduce Gym-Anything-RT. Our key idea is to construct visual minigames that demand a portfolio of capabilities required for interactive real-time settings. Gym-Anything-RT uses an agentic pipeline to automatically generate such environments based on a taxonomy of six capabilities required for real-time interaction, including the ability to perceive the environment and act under an evolving environment state. A key feature of Gym-Anything-RT is that it allows for controlled comparison of real-time interaction capabilities: we can run the same minigame in real time, or pause or slow down the environment to relax the requirement for real-time actions. We use Gym-Anything-RT to construct 100 real-time minigames and evaluate AI agents on them. We find large capability gaps in real-time interaction. For example, GPT-6 Astra (xHigh) achieves a pass rate of only 9.0% on the real-time minigames, which rises to 75.0% when the environment is paused. We also identify intriguing behaviors by the most powerful frontier agents: for instance, when given the ability to write code, these agents write code that bypasses the need to perceive and act in real time. We publicly release Gym-Anything-RT and the generated minigames to spur further research on AI agents in real-time interactive settings.
Large language model (LLM) agents can solve complex interactive tasks, yet reasoning and tool calls take time. In continuously changing environments, an otherwise correct action may arrive too late. We introduce RealtimeBench, with 180 tasks across six game types, to evaluate agents while games continue running during inference. Paired evaluations show that GPT-6.1-sol outperforms the faster Jev when games are paused, but falls behind when they keep running. We propose Two-Timescale Offline Recursive Self-Improvement (TORSI): a slow teacher studies failures and tests corrections in paused games between attempts, then writes reusable instructions for a fast student. The student acts without teacher calls during gameplay, and validation scores determine which updates are adopted. Two rounds raise Jev's average test score from 13.51 to 24.19 on a 0--100 progress scale, improving all six game types. The instructions also improve average scores for three other models without retuning. These findings point toward real-time intelligence: enabling powerful LLM agents to remain effective in a continuously changing world by organizing deliberation, learning, and action across timescales.
Ningxin Pan, Hanyu Li, Yeqing Shen +3
Peking University · Samsung Research, Beijing, China