Copilot · GitHub · GitHub Blog
Dungeons & Desktops: Building a procedurally generated roguelike with GitHub Copilot CLI
Compiled by KHAO Editorial — aggregated from 1 source. See llms.txt for citation guidance.
★ Tier-1 Source
The reporter got nerd-sniped into the GitHub Copilot CLI Challenge and made a questionable decision: the reporter turned their codebase into a roguelike dungeon.
Key facts
- At a high level, GitHub Dungeon layouts are generated using Binary Space Partitioning (BSP), seeded by your repository’s latest commit SHA (more on BSP in a bit)
- For example, /delegate Make each level progressively harder e.g. on level 2 there are extra baddies, but more health potions
- The reporter could MVP it quickly, iterate on the parts that mattered, and let Copilot handle the heavy lifting, things like BSP generation and even monsters and movement defined in a slightly cursed YAML file
- Using Copilot (especially with /delegate ) is like having an army of NPCs available to do whatever the reporter want them
Summary
It started with a simple prompt: Build a GitHub CLI extension in Go that takes the current repository and turns it into a playable roguelike dungeon, with dungeons generated with BSP . The result is GitHub Dungeons, a terminal game that generates a dungeon from your codebase. Rooms, corridors, and enemies, all built from your repo and rendered right in your terminal. Fun fact: /yolo (“you only live once”) is a Copilot CLI command (an alias for /allow-all ). Roguelikes trace back to games like Rogue in the 1980s, terminal-based adventures where each run generated a new dungeon, and death meant starting over.