A GitHub employee built a terminal roguelike game called GitHub Dungeons as a GitHub CLI extension using Go and GitHub Copilot CLI. The game procedurally generates dungeon layouts from a repository's commit SHA using Binary Space Partitioning (BSP), meaning every codebase produces a unique dungeon that evolves with each commit. The post explains how BSP works for dungeon generation, how the /delegate command in Copilot CLI was used to asynchronously build features via pull requests, and how to install and play the extension. A 'danger mode' pre-commit hook that deletes unsaved work if you lose the game is included as a (strongly discouraged) bonus.
Table of contents
So how does a repository actually become a dungeon?Building it with Copilot CLIWhy this lands so wellHow to install and play itDanger zone!Take this with youTags:Written bySort: