TL;DR
Game studios spend vast amounts of human hours just making sure newly designed quests aren’t accidentally broken. Researchers at Riot Games built Buddy, an autonomous playtesting framework assembled entirely from off-the-shelf language models and coding-agent harnesses—zero model training or walkthroughs required. Buddy explores an unseen 3D role-playing game, files bug tickets when things go sideways, and compiles its successful runs into free, deterministic regression tests for future builds.
What Problem Does This Paper Address?
Picture a quest in a role-playing game (RPG) that looks completely logical in code, yet in practice, a critical item spawns behind a solid wall, or an NPC's quest-giving dialogue gets overwritten by another event. Finding out if content is actually completable usually requires human testers walking through every permutation—expensive, tedious work that pulls developers away from creative design.
Meanwhile, existing AI game-playing benchmarks lean heavily on famous games like Minecraft or Pokémon, where LLMs have essentially memorized every wiki and walkthrough on the internet during pretraining. Other approaches train custom reinforcement learning policies or pixel-to-mouse control models from scratch, which is impractical for an unreleased game whose mechanics change daily. Game studios need an automated tester that works out-of-the-box on brand-new, unmemorized worlds.
Methods
Instead of inventing a bespoke gaming AI, the authors treat game-playing like an agentic coding problem. Buddy connects an off-the-shelf LLM and standard coding harness (such as Hermes Agent or Codex CLI) to the game engine via a Python runtime and an in-engine action executor.
Rather than looking only at raw pixels and pressing keyboard keys, Buddy interacts primarily through structured game-state tools—like go_to, talk_to, or loot_all—supplemented by screenshots and maps when it needs visual context. Crucially, every tool returns rich execution feedback (e.g., telling the agent why navigation failed if a rock blocked its path). Using a run_code tool, Buddy can even write Python loops on the fly to compose basic actions into complex search strategies.
To make this affordable at scale, Buddy uses a clever two-loop architecture:
- Loop A (Solve & Hunt Bugs): Given a natural-language goal ("win the game"), the LLM explores, adapts, and logs anomalies via a
note_issuetool. - Loop B (Compile & Validate): Once solved, a fresh coding-agent session strips away all the messy wandering from the trace and compiles the winning steps into a Hierarchical Task Network (HTN)—essentially a structured, deterministic decision tree of native game checks and actions. It tests and repairs this HTN in the engine until it passes, yielding a reusable regression test that costs zero LLM tokens on future game builds.
Datasets
Because Buddy uses zero-shot off-the-shelf models, no training datasets are used. For evaluation, the authors introduce two novel, unpublished environments so the LLMs cannot rely on pretraining memory:
- Dogwood: A custom single-player 3D fantasy RPG built in Godot 4.6 featuring a multi-mission main quest, NPCs, item management, and turn-based combat.
- BugGym: A QA benchmark built inside Dogwood featuring 48 quest families—each with a clean version and a version containing a planted defect across 7 bug categories (such as cross-quest interference, softlocks, and floating objects)—totaling 96 evaluation trials per model.
Key Insights and Ideas
- Pay for intelligence once, replay forever: Running an LLM for 45 minutes per quest across thousands of quests on every nightly build would get expensive fast. Distilling an exploratory LLM trace into a native HTN turns LLM reasoning into a one-time compilation cost.
- Plug-and-play modularity: Because the game interface is just an API of tools, studios aren't locked into one vendor. Both the underlying LLM and the outer agent harness (Hermes vs. Codex) can be hot-swapped in minutes as cheaper or smarter models hit the market.
- Promptable player personas: By tweaking a simple markdown configuration file (
SOUL.md), developers can condition how Buddy plays. Telling it to seek heroic conquest versus peaceful diplomacy causes it to discover completely different questlines and map routes.
- Thrashing is a feature, not a failure: When Buddy gets wedged between a cart and a rock due to a broken navigation mesh, it logs a recoverable bug ticket, wiggles its way out via alternative pathing, and finishes the quest anyway—mirroring how a good human QA tester behaves.
Key Results
- Autonomous Game Completion: Given only the prompt "win the game," Buddy autonomously explores and beats Dogwood’s entire 18-step main questline over 45+ minutes. Small, fast models like
gpt-5.6-lunaachieved a 3/3 completion rate at a median cost of $0.69 per run**, while `gemini-3.8-flash` went 4/4 for **$0.93. - Fast, Token-Free Replay: A full end-to-end game trace was automatically compiled into a JSON HTN that beats the entire game in 7.6 minutes of wall-clock time without a single LLM call.
- Bug Hunting (BugGym): Top models (
GPT-6 AstraandGemini 4 Argon) caught 64.6% (31/48) of the planted bugs. Better yet,Astraachieved 98.5% augmented precision (0% false discovery rate) because it uncovered 11 genuine, unintended bugs the developers hadn't even realized were in the game!
Limitations and Future Work
- UI and Fast-Action Blindspots: Interacting via high-level game-state tools bypasses the actual user interface and mouse clicks. Consequently, Buddy won't catch a broken UI button, nor is it suited for fast-twitch, action-driven combat requiring millisecond reflexes.
- Skipped Combat: Turn-based battles were skipped in the main benchmarks for brevity (since difficult RPG fights can be trivially brute-forced by grinding XP). Evaluating tactical combat efficiency is left for future work.
- Small Sample Sizes: Evaluations were conducted on a relatively small sandbox with low run counts per model–harness pair, aimed at proving practical feasibility rather than establishing a definitive leaderboard.
Summary updated