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.
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.
AGENTS.mdDocument engine version, coordinate scale, build commands, folder boundaries, and past gotchas at the repo root so agents stop guessing.
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.
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.
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).
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.
Keep rule logic in engine-free code validated by golden test vectors shared between server and client, with zero gameplay logic in Blueprints.
Agents extend working character controllers, camera rigs, and test harnesses far more reliably than inventing architecture from an empty folder.
Enforce strict types, linters, and tests whose failure messages specify exactly what broke and how to repair it automatically.
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 →
Commit the root context skeleton to your repository and start every change with a scoped task document and Plan Mode kickoff prompt.
# Project Context — <Game Title>
- **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: `<fast CLI test command>`
2. Run build / type-check command (include `Shipping` config on milestone checks): `<build CLI command>`
3. For any visual fix, attach rendered BEFORE and AFTER captures of the exact reported case.
Before editing any files, read AGENTS.md and the task document at <path/to/task.md>.
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.
Check off items as you configure your studio pipeline—progress is saved locally in your browser.