Towards General Computer Control: A Multimodal Agent for Red Dead Redemption II as a Case Study

Weihao Tan, Ziluo Ding, Wentao Zhang, Boyu Li, Bohan Zhou, Junpeng Yue, Haochong Xia, Jiechuan Jiang, Longtao Zheng, Xinrun Xu, Yifei Bi, Pengjie Gu, Xinrun Wang, Börje F. Karlsson, Bo An, Zongqing Lu

TL;DR

The authors propose General Computer Control (GCC)—a benchmark setting where AI agents interact with computers using only standard human interfaces: screen pixels as input and keyboard/mouse commands as output, without internal APIs or cheat hooks. To tackle this, they introduce CRADLE, a multimodal agent framework powered by GPT-4V, and evaluate it on the complex, closed-source AAA video game Red Dead Redemption II (RDR2), demonstrating that foundation models can learn skills, follow storylines, and complete long-horizon open-world missions from scratch.

What Problem Does This Paper Address?

Most existing foundation agents are specialized: web agents interact directly with HTML Document Object Models (DOMs) and element IDs, while gaming agents (such as Voyager in Minecraft) rely heavily on internal game APIs (like Mineflayer) and scripted high-level actions. These shortcuts fail to generalize across arbitrary desktop software or modern video games.

The paper introduces General Computer Control (GCC) to bridge this gap. GCC requires agents to perceive only what a human sees (visual frames, on-screen text, icons) and act only through OS-level keyboard and mouse signals. Digital AAA games like Red Dead Redemption II represent the most extreme testbed for GCC: they are complex, visually rich, dynamic 3D environments with continuous mouse control, timing-sensitive keyboard combinations, long horizons, and zero access to internal telemetry.

Methods

CRADLE uses GPT-4V as its core reasoning engine and organizes its architecture into six interacting modules:

  1. Information Gathering: Extracts keyframes using subtitle detection (VideoSubFinder), performs OCR on notifications/dialogue, and uses lightweight CV models (Grounding DINO for object bounding boxes and template matching for UI icons) to augment GPT-4V’s spatial and icon perception.
  2. Self-Reflection: Assesses whether the previous action succeeded or failed (e.g., whether the agent was blocked by an obstacle or selected the wrong item) using sequential low-resolution frames to track dynamic changes.
  3. Task Inference: Determines current priorities and categorizes tasks into short-horizon (e.g., picking up a gun) or long-horizon (e.g., riding to town) goals, preventing goal-drift over multi-step sequences.
  4. Skill Curation: Translates on-screen instructions into reusable Python functions wrapping low-level inputs (e.g., io_env.key_press('q', duration=2)). It annotates skills with natural language docstrings to enable semantic retrieval.
  5. Action Planning & Execution: Uses vector similarity search (text-embedding-ada-002) to retrieve relevant skills from procedural memory, selects and parameterizes the next skill, and executes it via an OS-level interface (PyDirectInput and ctypes).
  6. Memory: Divided into Episodic Memory (a sliding window of recent frames plus an RNN-like recurrent text summary of past history) and Procedural Memory (a library storing primitive and self-generated skills).

To address foundation model latency in real-time gameplay, the agent pauses the game during LMM inference.

Datasets

Rather than using static offline datasets, the framework is evaluated directly inside Red Dead Redemption II across:

  • Main Storyline Missions (Chapter I): Two long-horizon missions (Explore Shelter and Rescue John) broken into six representative tasks, including horse riding, indoor exploration, weapon wheel selection, and combat.
  • Open-Ended Mission (Chapter II): A free-roam task (Buy supply), requiring the agent to navigate from camp to Valentine, locate the general store, enter, talk to the shopkeeper, and purchase items with minimal on-screen guidance.

Key Insights and Ideas

  • Silent Failures Demand Self-Reflection: Unlike API-driven environments that return explicit error messages, a keypress in GCC may silently fail (e.g., pressing a key too briefly, or interacting while slightly out of range). Dedicated self-reflection over consecutive frames is critical to detect and retry failed actions.
  • Low-Resolution Aids Temporal Reasoning: Feeding GPT-4V sequences of low-resolution screenshots outperformed high-resolution images for self-reflection. High-res images consumed too many tokens, causing the model to fixate on fine details rather than global motion or state changes.
  • Dynamic Skill Synthesis: Instead of hard-coding every game interaction, CRADLE reads on-screen tutorial hints (e.g., "Hold TAB to view stored weapons") and generates new executable Python functions on the fly, adding them to its procedural memory.

Key Results

CRADLE was evaluated across seven representative RDR2 tasks (5 trials each, up to 10 minutes in-game time per trial) against two ablation baselines: CRADLE w/o Reflection and CRADLE w/o Task Inference.

Task Success Rates (Approximate % from Figure 7):
  Task                CRADLE    w/o Reflection    w/o Task Inference
  ------------------------------------------------------------------
  Go to shed           100%          80%                 40%
  Protect Dutch         40%           0%                  0%
  Search house          60%           0%                  0%
  Investigate barn     100%          40%                 60%
  Lead horse           100%          60%                 40%
  Equip shotgun        100%          60%                 60%
  Buy supply (Open)     40%           0%                  0%
  • Ablation Impact: Disabling Self-Reflection led to catastrophic failures in navigation and indoor exploration (Search house dropped to 0%), because the agent could not recover when stuck against furniture or doors. Disabling Task Inference caused the agent to lose track of long-horizon objectives once temporary on-screen prompts faded.
  • CRADLE is the first LMM agent shown to follow story progression and complete complex, multi-minute missions in a modern AAA title without internal cheats or environment APIs.

Limitations and Future Work

  • Reliance on External CV Tools: GPT-4V struggled with spatial coordinates, minimap compass orientation, and domain-specific UI icons, requiring Grounding DINO and template matching as visual crutches.
  • Model Latency and Real-Time Control: GPT-4V's multi-second API latency required pausing the game between actions, making unassisted real-time reactions (e.g., dodging in combat or avoiding fast-moving traffic in Valentine) infeasible.
  • Future Directions: Expanding GCC to include continuous screen-audio input, removing the need for auxiliary CV detectors as vision-language models improve, and reducing latency to support real-time, unpaused interactive environments.

Summary updated

BibTeX
@inproceedings{tan2024towards,
  author = {Weihao Tan and Ziluo Ding and Wentao Zhang and Boyu Li and Bohan Zhou and Junpeng Yue and Haochong Xia and Jiechuan Jiang and Longtao Zheng and Xinrun Xu and Yifei Bi and Pengjie Gu and Xinrun Wang and Börje F. Karlsson and Bo An and Zongqing Lu},
  title = {{Towards General Computer Control: A Multimodal Agent for Red Dead Redemption II as a Case Study}},
  booktitle = {LLMAgents @ ICLR},
  year = {2024},
  url = {https://openreview.net/forum?id=pmcFzuUxsP},
}

Loading related content...

Figure