
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
copilot-quest
Advanced tools
An AI-powered text adventure game where GitHub Copilot CLI is your Game Master
An AI-Powered Text Adventure where GitHub Copilot CLI is Your Game Master
Every playthrough is unique. Every choice matters. Every world is invented on the fly by GitHub Copilot.
╔══════════════════════════════════════════════════════════╗
║ ██████╗ ██████╗ ██████╗ ██╗██╗ ██████╗ ████████╗║
║ ██╔════╝ ██╔═══██╗██╔══██╗██║██║ ██╔═══██╗╚══██╔══╝║
║ ██║ ██║ ██║██████╔╝██║██║ ██║ ██║ ██║ ║
║ ██║ ██║ ██║██╔═══╝ ██║██║ ██║ ██║ ██║ ║
║ ╚██████╗ ╚██████╔╝██║ ██║███████╗╚██████╔╝ ██║ ║
║ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝ ╚═════╝ ╚═╝ ║
║ Q U E S T ║
╚══════════════════════════════════════════════════════════╝
Copilot Quest is a terminal-based text adventure game where GitHub Copilot CLI acts as the Game Master. Instead of pre-written stories, every scene, choice, character, and puzzle is dynamically generated by Copilot in real-time.
npm install -g @github/copilot
copilot
/login
npx copilot-quest
npm install -g copilot-quest
copilot-quest
# Clone the repository
git clone https://github.com/YOUR_USERNAME/copilot-quest.git
cd copilot-quest
# Install dependencies
npm install
# Start the game!
npm start
npm start┌─────────────┐ ┌───────────────────┐ ┌──────────────┐
│ Player │────▶│ Copilot Quest │────▶│ Copilot CLI │
│ (Terminal) │◀────│ (Ink/React TUI) │◀────│ (AI Engine) │
└─────────────┘ └───────────────────┘ └──────────────┘
Arrow keys, Game state mgmt, Story generation,
Enter, Text UI rendering, ASCII art,
input Prompt engineering World building
The game uses Copilot CLI's programmatic mode (copilot -p "...") to send structured prompts containing the current game state. Copilot responds with JSON containing the narrative, choices, ASCII art, and game state changes. The app parses this and renders it as a beautiful terminal UI.
copilot-quest/
├── src/
│ ├── index.tsx # Entry point
│ ├── App.tsx # Main game loop & state machine
│ ├── components/
│ │ ├── TitleScreen.tsx # Splash screen with ASCII title
│ │ ├── NameInput.tsx # Player name entry
│ │ ├── NarrativePanel.tsx # Story display with typing effect
│ │ ├── ChoiceMenu.tsx # Choice selection + free-form input
│ │ ├── StatsBar.tsx # HP bar, location, inventory
│ │ ├── LoadingScene.tsx # Animated loading while Copilot thinks
│ │ └── GameOver.tsx # Victory/defeat screen
│ ├── engine/
│ │ ├── copilot.ts # Copilot CLI integration layer
│ │ ├── gameState.ts # Game state management
│ │ ├── promptBuilder.ts # Structured prompt engineering
│ │ └── parser.ts # JSON response parsing with fallbacks
│ └── types/
│ └── game.ts # TypeScript type definitions
├── package.json
├── tsconfig.json
└── README.md
MIT
Built with ❤️ and GitHub Copilot CLI for the GitHub Copilot CLI Challenge
FAQs
An AI-powered text adventure game where GitHub Copilot CLI is your Game Master
We found that copilot-quest demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.