# ThreeDog.js — An open-source Three.js game engine built for AI coding agents

**URL:** <https://discourse.threejs.org/t/threedog-js-an-open-source-three-js-game-engine-built-for-ai-coding-agents/96718>\
**Category:** Resources\
**Tags:** ai, game-engine\
**Created:** [November 7, 2026, 9:45am UTC](https://discourse.threejs.org/t/threedog-js-an-open-source-three-js-game-engine-built-for-ai-coding-agents/96718 "2026-11-07T09:45:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![penstic123](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/penstic123/32/75554_2.png) [@penstic123](https://discourse.threejs.org/u/penstic123)\
**Post date:** [November 7, 2026, 9:45am UTC](https://discourse.threejs.org/t/threedog-js-an-open-source-three-js-game-engine-built-for-ai-coding-agents/96718/1 "2026-11-07T09:45:46Z")

</div>

Hi everyone!

I’ve been working on **ThreeDog.js** , an open-source 3D game engine built on top of Three.js, designed specifically for AI coding agents like Claude Code and Codex.

The idea came from a problem I kept running into: when asking AI to build a 3D game with Three.js, it often has to recreate the same systems from scratch — day/night cycles, weather, physics, saving, character controls, and more.

As projects grow, these systems become harder to maintain, and AI agents can struggle to understand what’s happening inside a running game.

So I started building ThreeDog.js.

### What makes it different?

**1. Built for AI agents**

The engine provides AI-friendly documentation, a CLI, and MCP integration.

Agents can:

- Inspect the current game state

- Control characters and trigger actions

- Advance game time and take screenshots

- Inspect errors and diagnose problems

- Test and iterate on games with less human intervention

**2. Native Three.js compatibility**

ThreeDog.js isn’t intended to replace Three.js.

Agents can still write regular Three.js code, create custom shaders, materials, models, and effects. The engine focuses on coordinating systems and providing reusable infrastructure.

**3. Modular game systems**

The engine includes systems for weather, time, physics, pathfinding, characters, inventory, quests, dialogue, saving, and more.

Games can use only the modules they need.

**4. No predefined art style**

The engine doesn’t impose a particular visual style. The game’s appearance is controlled by its own code and assets.

I want AI to have the freedom to create different kinds of games, rather than making everything look the same.

### The long-term goal

I’d like to make game development possible through a workflow where humans focus on ideas, creative direction, and feedback, while AI agents handle most of the implementation, testing, and iteration.

The project is still in early development. Some parts of the native Three.js integration and rendering pipeline are still being improved.

I’d really appreciate feedback from the Three.js community, especially on the architecture, API design, and whether this approach could be useful for AI-assisted game development.

**GitHub:** [GitHub - penstic123-code/Threedog.js-Game-Engine: A 3D game engine for the web, built on three.js and made to be used by AI coding agents. · GitHub](https://github.com/penstic123-code/ThreeDog.js-Game-Engine)

MIT licensed and open source.

Thanks for checking it out!

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/d/5/d5c49fe9fa38962844dbeb5f79b32c9c9e139762.jpeg)
