Back to articles

Lee Reilly built GitHub Dungeons, a terminal roguelike that procedurally generates levels from your codebase using GitHub Copilot CLI.

GitHub Copilot Blog · May 12, 2026

Lee Reilly built GitHub Dungeons, a terminal roguelike that procedurally generates levels from your codebase using GitHub Copilot CLI.

AI Summary

  • GitHub Dungeons is a CLI extension written in Go that transforms a repository into a playable roguelike dungeon. Rooms, corridors, and enemies are generated from your codebase and rendered in the terminal; navigation uses arrow keys, WASD, or Vim keys, and the goal is to find the hidden door and escape five levels.
  • The dungeon layout is generated using Binary Space Partitioning (BSP)—a technique that recursively splits space into smaller regions, then connects them with corridors—and is seeded by the repository's latest commit SHA. This means the same codebase always produces the same map, but different repositories generate structurally distinct layouts, and the dungeon evolves as code changes.
  • The project was built using GitHub Copilot CLI's /delegate command, which hands tasks off to Copilot's coding agent running in the cloud to work asynchronously. This approach let the developer focus on game design and player experience (including easter eggs) rather than boilerplate and edge cases.
  • Installation is available via `gh extension install leereilly/gh-dungeons` for users with GitHub Copilot CLI already installed; features include fog of war, auto-attack, and stat tracking across five levels.

Related Articles

Stay ahead with AI news

Get curated AI news from 200+ sources delivered daily to your inbox. Free to use.

Get Started Free