---
title: "Dungeons & Desktops: Building a procedurally generated roguelike with GitHub Copilot CLI"
url: https://daily.dev/posts/dungeons-desktops-building-a-procedurally-generated-roguelike-with-github-copilot-cli-ngdmj7dg7
source_url: https://github.blog/ai-and-ml/github-copilot/dungeons-desktops-building-a-procedurally-generated-roguelike-with-github-copilot-cli
type: article
source: "GitHub Blog"
published: 2026-05-12T15:03:49.931Z
updated: 2026-05-12T15:04:13.901Z
tags: ["github", "game-development", "golang"]
reading_time: 7
upvotes: 70
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Dungeons & Desktops: Building a procedurally generated roguelike with GitHub Copilot CLI

**[GitHub Blog](https://daily.dev/sources/ghblog)** · 7 min read · 70 upvotes · 0 comments

## Summary

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.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.blog/ai-and-ml/github-copilot/dungeons-desktops-building-a-procedurally-generated-roguelike-with-github-copilot-cli>

## Similar posts on daily.dev

- [Procedural Dungeon Generator For Seamless Worlds](https://daily.dev/posts/procedural-dungeon-generator-for-seamless-worlds-wpxrkvrts) · 80 LEVEL · 1 upvotes · 0 comments

---

Tags: [#github](https://daily.dev/tags/github), [#game-development](https://daily.dev/tags/game-development), [#golang](https://daily.dev/tags/golang)

[View this post on daily.dev](https://daily.dev/posts/dungeons-desktops-building-a-procedurally-generated-roguelike-with-github-copilot-cli-ngdmj7dg7)
