# Agentic Game Development Best Practices Playbook (2026)

Source: https://www.kuura.app/en/guides/agentic-game-dev/best-practices.html

FIELD-TESTED PLAYBOOK  

# How Engineering Teams Keep Agents From Wrecking Their Repo

Agentic pipelines break for predictable reasons: vague specs, unconstrained architecture, missing visual proof, and colliding parallel runs. Every reliable workflow rests on three pillars: Explicit Specs, Isolated Execution, and Verifiable Evidence.

UNIVERSAL PRINCIPLES  

## The 8 Production Rules of Agentic Game Dev

Rule 01  

### Codify Context in AGENTS.md

Document engine version, coordinate scale, build commands, folder boundaries, and past gotchas at the repo root so agents stop guessing.

Rule 02  

### One Task Doc Per Change

Start every change from a scoped task document with explicit acceptance criteria, target files, and required verification commands—then start a fresh session per feature.

Rule 03  

### One Git Worktree + Shared Activity Board

Run each agent in its own Git worktree and coordinate builds, machine locks, and server/editor restarts on a shared activity board so parallel agents do not collide.

Rule 04  

### Cross-Model Review

Have a different model review the diff than the model that implemented it (e.g., flagship model for new features, a separate faster model for reviews and targeted fixes).

Rule 05  

### Exact Before/After Visual Evidence

Evidence for a visual fix is a rendered capture of the exact reported case, before and after. Automated metrics and generic screenshots can pass while the result is visibly wrong.

Rule 06  

### Engine-Free Rules + Golden Vectors

Keep rule logic in engine-free code validated by golden test vectors shared between server and client, with zero gameplay logic in Blueprints.

Rule 07  

### Start From Vertical-Slice Templates

Agents extend working character controllers, camera rigs, and test harnesses far more reliably than inventing architecture from an empty folder.

Rule 08  

### Actionable Automated Guard Rails

Enforce strict types, linters, and tests whose failure messages specify exactly what broke and how to repair it automatically.

### See These Rules Applied Under Production Load

Read how cross-model review, single-worktree isolation, golden test vectors, and before/after GPU captures performed on a real C++ multiplayer codebase in [Field Notes from a Real UE 5.8 Project →](<https://www.kuura.app/en/guides/agentic-game-dev/ue58-field-notes.html>)

COPY-PASTE STARTER TEMPLATES  

## Drop-In Repo & Task Spec Scaffolding

Commit the root context skeleton to your repository and start every change with a scoped task document and Plan Mode kickoff prompt.

Template 1: Root AGENTS.md / CLAUDE.md Skeleton

\# Project Context — &lt;Game Title&gt; - \*\*Engine & Version:\*\* e.g., UE 5.8.3 / Godot 4.4 / Unity 6000.0 / Three.js - \*\*Target Platform & Scale:\*\* e.g., 16:9 Desktop, 1 unit = 1 meter, Y-up - \*\*Core Loop:\*\* 2-sentence description of player verbs and win/loss states. \#\# Architecture & Directory Map - \`/core/\` — Engine-free deterministic rule logic + golden test vectors shared between server and client (MUST pass in seconds without launching the editor). - \`/scripts/assets/\` — Version-controlled scripts that generate binary assets + manifests/hashes. - \`/scenes/\` — Visual wiring only (ZERO gameplay logic in Blueprints; never hand-edit Unity \`.meta\` files). - \`/data/\` — JSON/CSV balance tables. \#\# Multi-Agent Coordination Rules - Use one Git worktree per agent run and clean up build artifacts after completion. - Check and update the shared activity board before acquiring build locks or restarting servers/editors. - Route review to a different model than the implementer. \#\# Verification Protocol (Required Before Reporting Done) 1. Run engine-free rule & golden-vector tests: \`&lt;fast CLI test command&gt;\` 2. Run build / type-check command (include \`Shipping\` config on milestone checks): \`&lt;build CLI command&gt;\` 3. For any visual fix, attach rendered BEFORE and AFTER captures of the exact reported case.

Template 2: Single-Change Task Doc & Plan Mode Kickoff Prompt

Before editing any files, read AGENTS.md and the task document at &lt;path/to/task.md&gt;. Return: 1. Exact files/scripts you plan to read or modify (in a fresh Git worktree). 2. Any ambiguities in acceptance criteria, edge cases, or network/data schemas (max 3 questions). 3. Your exact verification plan: automated test command, build target, and (if visual) the exact before/after capture case. Wait for approval before writing code. After implementation, prepare the diff for cross-model review.

ENGINE-SPECIFIC TACTICAL CHECKLISTS  

## Pre-Flight Checklists by Engine

Check off items as you configure your studio pipeline—progress is saved locally in your browser.

### Unity 6+ Checklist

  0/4 done

- Configure the official Unity CLI/MCP relay and verify Unity\_ReadConsole access before bulk tasks.
  
- Split pure C\# gameplay systems into separate Assembly Definitions (.asmdef) to shrink compile and domain-reload delays.
  
- Require passing EditMode and PlayMode tests on every agent task.
  
- Commit a clean Git checkpoint before scene/prefab edits—if a C\# syntax error triggers Safe Mode, revert immediately rather than debugging blind.

### Godot 4.x Checklist

  0/3 done

- Connect a Godot MCP server or plugin (e.g., Ziva) so agents inspect live node paths and debugger traces.
  
- Enforce strict static typing in GDScript (var speed: float = 5.0) to catch type errors before runtime.
  
- Commit .tscn changes per task so malformed text-scene diffs revert cleanly in one command.

### Three.js Checklist

  0/3 done

- Modularize rendering, physics (e.g., Rapier), input, and deterministic rules into discrete TypeScript modules—avoid monolithic main.ts files.
  
- Expose a window.\_\_GAME\_DEBUG\_\_ hook supporting deterministic time-stepping, JSON state dumps, and before/after Playwright captures of exact reported cases.
  
- Keep uncompressed source glTF/GLB assets during development to avoid Draco import snags, and lock world-scale units on Day 1.

### Unreal Engine 5.8 Checklist

  0/6 done

- Keep rule logic in engine-free code with shared server/client golden test vectors, and keep zero gameplay logic in Blueprints.
  
- Generate binary .uasset files from Git-tracked Python scripts via headless UnrealEditor-Cmd -nullrhi and track outputs with manifests and hashes.
  
- Coordinate UBT builds on a shared activity board, isolate runs in separate Git worktrees, and auto-clean finished ~50 GB build profiles.
  
- Require GPU-rendered before/after captures of the exact reported case for visual fixes rather than trusting headless runs or generic screenshots.
  
- Compile the Shipping configuration regularly, release client + dedicated server together with a network-layout match check, and disable OS auto-reboots on build hosts.
  
- Restrict UE 5.8 Experimental MCP to narrow editor-side tweaks; use CLI automation and cross-model diff reviews for core changes.
