hn.today

How to engineer an AI harness for game development

kylekukshtel.com93 points38 comments
Screenshot of How to engineer an AI harness for game development

This piece argues that large language models work well for web stacks because those projects expose nearly everything as code, but they routinely fail on traditional games because games contain large amounts of opaque, non-code content (assets, data, state, and bespoke systems) that LLMs can’t easily reason about. It explains how model sessions are composed of system, assistant, and user prompts and how repeated re-submission of prior messages builds a context that can become polluted; managing that context is central to getting useful results. Practical observations include that Three.js projects succeed with LLMs because “everything is code,” while conventional game projects lack standardized tooling and training data, making generated game code brittle or irrelevant.

The proposed remedy is to engineer a harness: a set of patterns, interfaces, and tooling that make a game legible to agents. A harness extracts and normalizes game state, assets, telemetry, profiling, and SDLC artifacts into forms an LLM can consume and act on, reduces context pollution by supplying targeted context, and provides repeatable agent workflows for iteration. Building such harnesses - customizing Claude Code-style workflows, exposing internal representations, and scripting clear agent actions - enables faster, more reliable agentic game development.

Read on kylekukshtel.com38 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

your C is not standard C

your C is not standard C

Standard C has many incompatibilities with how C is implemented in real-world compilers like gcc and clang, leading to non-conformance by default. These differences include handling of asm keywords, floating-point rounding modes, and support for standard pragmas, which are often ignored or unsupported by compilers. (sebsite.pw)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.