pi-minesweeper

Minesweeper for pi coding agent — classic mine-clearing puzzle

Package details

extension

Install pi-minesweeper from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-minesweeper
Package
pi-minesweeper
Version
1.1.1
Published
Mar 7, 2026
Downloads
45/mo · 0/wk
Author
artale
License
MIT
Types
extension
Size
17.7 KB
Dependencies
0 dependencies · 0 peers
Pi manifest JSON
{
  "extensions": [
    "extensions/pi-minesweeper.ts"
  ],
  "commands": [
    "minesweeper"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-minesweeper

Classic Minesweeper for pi coding agent.

Install

npm i -g pi-minesweeper

Add to ~/.pi/agent/settings.json:

{ "packages": ["npm:pi-minesweeper"] }

Play

/minesweeper
/mines
/sweep

Controls

Key Action
←↑↓→ / WASD / HJKL Move cursor
Space / Enter Reveal cell
F Toggle flag
R Restart
1/2/3 Easy/Medium/Hard
Q / Esc Quit

Difficulty

  • Easy: 9×9, 10 mines
  • Medium: 16×16, 40 mines
  • Hard: 16×30, 99 mines

Features

  • Flood fill (auto-reveal empty regions)
  • First click is always safe
  • Flagging with mine counter
  • Timer + best times per difficulty
  • Box-drawing grid with 24-bit color