Godogen: Autonomous Game Generation With Claude Code and Codex

Open-source project Godogen builds complete games from a description — architecture, assets, code, and a visual proof loop that fixes rendering bugs automatically.

cpaua4 min184

Godogen, an open-source project by developer htdt, has reached 7,345 stars on GitHub. The system takes a natural-language game description and drives the entire development cycle: it designs the architecture, generates assets, writes code, launches the engine, captures screenshots, and iterates until the visual output matches the intent. The agent runs on a standard desktop and uses either Claude Code or Codex as the underlying model.

How the autonomous loop works

After publishing a fresh game repository with publish.sh, the agent operates inside that repo. It reads a one-page engine guide, scaffolds the project, creates or fetches assets, writes runtime scripts, and starts the engine. Then it captures frames — either a live URL for Babylon.js and three.js, or a recorded clip for Godot and Bevy — and evaluates the running game for visible defects. If something looks wrong (misaligned UI, missing textures, physics glitches), the agent modifies the code or assets and reruns. The loop continues until the visual proof passes or the user intervenes.

Supported engines and how to choose

Godogen targets five engine configurations, each with a different language and viewing model:

  • godot — C# projects, watched via the Godot editor or a proof video; best for desktop 2D/3D with fewest surprises in long unattended runs.
  • godot-gdscript — GDScript projects, same viewing options; natural pick if you plan to continue development in the Godot editor.
  • bevy — Rust/Bevy ECS projects, watched via cargo run; chosen for a Rust codebase with compile-time guarantees.
  • babylon — TypeScript/Vite browser games served at a live URL; includes Havok physics, GUI, particles, and animation out of the box.
  • threejs — TypeScript/Vite browser games at a live URL; the agent wires Rapier physics, HTML-over-canvas UI, and audio itself, giving maximum shader control and a smaller bundle.

For 2D work, Godot's dedicated 2D engine (pixel-space nodes, tilemaps, 2D physics) is the recommended choice. Bevy handles 2D well; the web engines render 2D as sprites in a 3D scene.

Asset generation: local first, paid APIs as fallback

The bundled godogen_assets skill produces images with real transparency, textured 3D models, rigged humanoids with generated animations and lip-sync, sound effects, and voice lines — all locally on an NVIDIA GPU. When local tools fall short, the agent can call paid APIs via environment variables: GOOGLE_API_KEY for Gemini images, TTS, and Lyria music; XAI_API_KEY for Grok images and animated-sprite video; TRIPO_API_KEY for Tripo3D model generation. The agent decides which source to use per asset.

GDScript knowledge base loaded on demand

Inside the published repo the agent has access to documentation for more than 850 GDScript classes. The reference is not baked into the context window; it is fetched only when the agent needs a specific class, keeping token usage low while still providing accurate API details for Godot 4.

Prerequisites and first run

You need Godot 4 on PATH (.NET build for C#, either build for GDScript), Rust/Cargo for Bevy, Node.js 22.12+ and npm for the web engines, Chrome or Chromium with hardware WebGL2, Python 3 with pip, and Blender on PATH for 3D modeling tasks the generators handle poorly. System packages include vulkan-tools, xvfb, ffmpeg, and imagemagick (see setup.md for platform specifics). Tested on Ubuntu, Debian, and macOS.

Publish a game repo with the desired engine and host agent:

code
./publish.sh --engine godot --agent claude --out ~/my-game
./publish.sh --engine babylon --agent codex --out ~/my-game

Add --force to overwrite an existing target. The agent then runs inside ~/my-game and builds the actual game from your prompt.

Human involvement is optional

You can watch the live browser URL (Babylon.js, three.js) or the local Godot/Bevy window and steer at decision points, or you can leave the run unattended and receive a 15–20 second proof recording at the end. The agent takes its cue from how the task is framed.

Related reading

Sources

htdt/godogengithub.com/htdt/godogen
Share

Author

cpaua

VibeCode blog admin. Writing about vibe coding, AI and open source.

Related news

Comments

To leave a comment, log in
Loading...

Weekly digest

The best of vibe coding, AI agents and open source — once a week, no spam.