AutoPILOT: A Visual Agent Harness for Real-Time Gameplay

Mark Zhao, Pengcheng Wang, Rui Yang, Jiarui Yao, Xirui Jiang, Yuxi Chen, Bingxuan Li, Hanyang Chen, Ke Yang, Manling Li, Tong Zhang, Huan Zhang

Imagine you’re playing a high-stakes game of Praxis Fighter X. You see a projectile heading straight for your ship. You decide to dodge left. But there’s a catch: your brain takes six seconds to process that single frame and send the command to your thumb. By the time you actually move, your ship is a cloud of digital debris.

This is the "latency gap" facing today’s most advanced Multimodal Foundation Models (like GPT-4o or Claude 3.5). They are brilliant, but they are slow. In a new paper, researchers from UIUC, Georgia Tech, and Northwestern introduce AutoPILOT, a system designed to let these slow-thinking giants keep up with a world that doesn't wait.

TL;DR

AutoPILOT bridges the gap between slow AI reasoning and fast real-time gameplay by allowing models to delegate control to local, high-speed "autopilots." Instead of sending one action per slow model call, the AI can write a short Python script or a macro on the fly to handle the "twitch" reactions, nearly doubling success rates in real-time games while slashing API costs by 80%.

What Problem Does This Paper Address?

Most AI agents operate in a "stop-and-think" loop: the agent sees a frame, thinks for a few seconds, and sends one action. This works fine for chess or turn-based puzzles. However, in real-time environments, this is a disaster.

Existing "harnesses"—the software wrappers that connect a model to a game—mostly focus on improving what the model sees (visual memory) or how it reasons. But they still treat the model as a single-action-per-call engine. If the model takes 6 seconds to think, it can only act once every 6 seconds. In a fast-paced shooter, that’s an eternity. As shown in Figure 1, the action often lands long after the "ship is lost."

The latency problem: by the time the model finishes thinking, the game state has changed.

Methods

The researchers propose a shift in agent design: delegation. Instead of the model being the "driver," it becomes the "captain" who can delegate tasks to three different execution modes:

  1. Primitive Action: A standard single move (e.g., "Press Up").
  2. Open-loop Macro: A pre-planned sequence of moves (e.g., a menu navigation sequence) that the system executes without further model input.
  3. Closed-loop Controller (The Secret Sauce): The model writes a short Python function at runtime. This script runs locally at a much higher frequency (~2.5 Hz), reading the screen and reacting to pixels (like dodging bullets based on color) without needing to call the expensive, slow LLM again until a "wake event" occurs (like a level ending or a total failure).
Examples of a model-written macro and a closed-loop Python controller.

Datasets

To test this, the authors introduced AFK-Bench (Away From Keyboard Bench), a collection of 120 diverse browser games. They categorized these into three types based on how they punish "thinking time":

  • Hostile real-time: Inaction leads to immediate death (e.g., shooters).
  • Benign real-time: The world moves on, but you don't die immediately (e.g., a racing game where you just lose time).
  • Turn-based: The world waits for you (the baseline).

They also evaluated on GameWorld, an existing benchmark of 170 tasks across 34 games.

The three environment types in AFK-Bench.

Key Insights and Ideas

  • Harness Design is Action Design: We’ve spent years perfecting AI "eyes" and "brains," but the "nervous system" (the harness) was the bottleneck. AutoPILOT proves that how an agent acts over time is just as important as what it decides to do.
  • Code as a Reactive Layer: Models are surprisingly good at writing "heuristic" code—simple pixel-counting logic—that can handle high-speed tasks. This allows the agent to have "reflexes."
  • Efficiency is a Feature: Because one model call can now cover hundreds of game steps via a controller, the agent uses far fewer tokens. It reaches the same success rate as previous state-of-the-art methods at 1/5th the cost.

Key Results

Using GPT-6.1 Sol (a placeholder for a high-end model), AutoPILOT significantly outperformed the previous state-of-the-art harness, VISTA:

  • Real-time Success: On AFK-Bench, AutoPILOT achieved a 68.6% success rate, compared to VISTA’s 38.3%.
  • Hostile Environments: The gap was even wider in "hostile" games, where AutoPILOT won 62.5% of the time vs. VISTA’s meager 16.7%.
  • GameWorld Robustness: On GameWorld, VISTA’s performance plummeted from 84.1% (paused) to 42.9% (real-time). AutoPILOT stayed rock-solid, maintaining 80.0% success in real-time.
AutoPILOT scales better with budget and is significantly more cost-effective than VISTA.

Limitations and Future Work

The authors note that AutoPILOT currently relies on the model's ability to write perception code (like "find the red pixels"). This is relatively easy in 2D browser games but becomes much harder in cluttered 3D environments with complex lighting and textures.

Future work could involve giving the "autopilot" its own small, fast vision-language model (a "reflex" model) or improving how the main model handles "handoffs" when the local controller gets stuck. For now, AutoPILOT stands as a compelling argument that for AI to live in our world, it needs to learn how to delegate.

Summary updated

Abstract

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 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.
BibTeX
@misc{zhao2026autopilot,
  author = {Mark Zhao and Pengcheng Wang and Rui Yang and Jiarui Yao and Xirui Jiang and Yuxi Chen and Bingxuan Li and Hanyang Chen and Ke Yang and Manling Li and Tong Zhang and Huan Zhang},
  title = {{AutoPILOT: A Visual Agent Harness for Real-Time Gameplay}},
  year = {2026},
  eprint = {2611.28202},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.28202},
}
Figure