Spec-first agent workflow retrofits netplay into an existing game
- Source
- x.com
- Publisher
- banteg
- Date
i just shipped netplay in a game whose architecture was never planned to accommodate it. my time was split as follows: 3-4 days of grilling frontier models on the problem space and drafting the spec. over this time i found good answers to every single problem and my skepticism gradually dissolved. i went from "it's impossible for it to play well with 500 active entities to sync" to "it may be actually feasible and even rather cheap and it would play well even across continents". it's a bespoke design that fits this game specifically, it reuses the strong parts about my previous rearchitecture and it's stripped to the core, reusing as much of the existing game machinery. 1 full day of opus implementing the spec, along with multiple rounds of reviews by other models (sol, argon). i used ultra effort and everything worked flawlessly when it was done. this differs quite a lot from multiple previous attempts to add netplay where things went wrong and i got stuck with nasty debugging. this time i put much more human effort (asking the right questions) upfront and got an amazing result.
Context
Developer banteg says he shipped netplay, online multiplayer in which every player's machine has to stay in agreement about the game , in a game whose architecture was never planned for it, and attributes the success to how he split the work rather than to the alone (post). He spent three to four days questioning frontier models about the problem and drafting a specification, a stretch in which he went from believing the game could not play well with 500 active entities to keep in sync to thinking it could be cheap and work even across continents. The resulting design is specific to this game, keeps the strong parts of an earlier rearchitecture he had done, and reuses as much of the existing game machinery as possible.
Only then did implementation start: one full day of Anthropic's Opus, at what he calls ultra effort, building from the spec, with several rounds of review by other models he names as sol and argon. He reports that everything worked flawlessly when it was done, in contrast with several earlier attempts at netplay that went wrong and left him stuck in difficult . His conclusion is that the difference came from putting much more human effort into asking the right questions up front. This is a single self-reported project, and the post does not name the game or show the spec or code, so it describes one workflow that worked for him rather than a measured comparison.
- State — Information describing a system at a particular moment, such as its current text, settings or saved records.
- Model — A computational system that uses learned patterns to produce an output from information supplied to it.
- Debugging — Following a failure back along the data path to the place where the data first goes wrong.
- articleBattle Isle 2 via specmuro
articleSpecification-first convergence with an AI coding agent: a case study of dismantling a core architectural invariant across 189 files in a 717k-line codebase with no test oracle and no human code reviewJoel Abenhaim
articleSpecFirst: Behavioral Specification Elicitation as a First-Class Step in Agent-Based Program Synthesis from ScratchYihao Chen, Shi Chang, Feng Lin, Khaled Chawa, Boyuan Chen, Shaowei Wang, Ahmed E. Hassan

