A small Phaser platform game with a local "Continue build the game" workflow.
Run the game and the local builder API together:
npm install
npm run devThe browser game runs through Vite. The builder API runs on a second local process and creates git worktrees for each approved feature request.
- Open the game in dev mode.
- Click
Continue build the game. - Describe one small feature.
- The app verifies that the request is small enough.
- A git worktree is created.
- A local coding agent implements the change.
npm testandnpm run buildrun inside the worktree.- If both pass, the feature branch is merged back into the current branch and the browser reloads.
The repository working tree must be clean before starting a build request, otherwise the merge back into the current branch is blocked.
BUILD_AGENT=codex|opencodeselects the implementation agent. Default:codexSCOPE_REVIEW_AGENT=codexselects the AI reviewer used to keep changes small. Default:codexALLOW_HEURISTIC_SCOPE_FALLBACK=true|falsedecides whether the build may continue when the AI reviewer is unavailable. Default:trueKEEP_FAILED_WORKTREE=true|falsekeeps failed worktrees under.ai-worktrees/. Default:false