Add this Piglet
Add the Piglet source
pig piglet add npm:@pi-in-go/pigpen-piglet-pig-gamesPiG copies the Piglet source into ~/.pig/piglets/ and validates it. Start it with pig --piglet pig-games.
Piglets run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party Piglet. This one is published by the PiG project from the Pigpen repository; that is not a verification claim.
What this Piglet is
Pigpen index status: planned (it records no signed Binary release for this Piglet). Source in the Pigpen repository ↗
- Not released yet: no signed Piglet Binary is published and no remote install command is offered. The source composition is in this repository; see RELEASE-BLOCKERS.md.
- Go only. Two pixel-art games, PiG Runner (/runner, /pig-runner) and Angry Pigs (/angry-pigs), moved from PiG Standard (Michael Kinsy, MIT). They draw the pig chosen with PiG's built-in /sprite (PiG 0.4.0 and later), so the Piglet bundles no login of its own. Run npm run stage before using its generated manifest under dist/staged.
- Nothing starts by itself. The games register only their commands and no event handler (PIG_GAMES_MCP=1 adds a session_start handler for the opt-in agent server; /runner mcp on and /angry-pigs mcp on serve a game to an agent on 127.0.0.1 behind a random token, off by default). Both Packages (pig-runner, angry-pigs) also install on their own from a Pigpen checkout; each needs the pig-play sprite library beside it (../pig-play).
- A Piglet Binary builds locally from the staged manifest with PIG_SOURCE_ROOT set to a git checkout of the PiG source. No release is published; version 0.1.0 is a development default and only linux/amd64 has been built and run; linux/arm64, darwin/arm64, darwin/amd64 and windows/amd64 are listed in the manifest and compile-checked only; neither is a support claim.
Selects
Extensions (2)
pigrunnerfrom package:pig-runnerangrypigsfrom package:angry-pigs
Packages it uses
- @pi-in-go/pigpen-pig-play
^0.1.2 - @pi-in-go/pigpen-pig-runner
^0.1.2 - @pi-in-go/pigpen-angry-pigs
^0.1.2
Binary targets
linux/amd64linux/arm64darwin/arm64darwin/amd64windows/amd64
These are the targets the manifest lists for pig piglet build. Which of them have been built and run is in the notes above.
Signing
- Signed Piglet Binary: none published. Nothing has been signed for this Piglet yet, so
pig piglet pullhas no release to pull. - npm package: 2 registry signatures.
piglet.yaml
# GENERATED by scripts/npm-piglets.mjs from piglets/pig-games/piglet.yaml. Do not edit.
name: pig-games
description: PiG with two pixel-art games, PiG Runner (/runner) and Angry Pigs (/angry-pigs), starring the pig you chose with PiG's /sprite. Nothing starts until you type a command.
release:
version: 0.1.1
build:
targets:
- linux/amd64
- linux/arm64
- darwin/arm64
- darwin/amd64
- windows/amd64
extensionRealization: fused
packages:
pig-play: npm:@pi-in-go/pigpen-pig-play@^0.1.2
pig-runner: npm:@pi-in-go/pigpen-pig-runner@^0.1.2
angry-pigs: npm:@pi-in-go/pigpen-angry-pigs@^0.1.2
extensions:
- name: pigrunner
origins:
- package:pig-runner
tools: []
- name: angrypigs
origins:
- package:angry-pigs
tools: []
skills: []
discovery:
extensions:
- user
- workspace
skills:
- user
- workspace
PiG manifest JSON
The pig field of package.json.
{
"piglet": "piglet.yaml"
}README
Written by the package's publisher, shown as published in version 0.1.1 (README.md). PiG does not review it.
pig-games
PiG with two pixel-art games, all Go, moved from PiG Standard (Michael Kinsy, MIT). Nothing starts until you type a command.
| Command | From | What it does |
|---|---|---|
/runner, /pig-runner | Package pig-runner | PiG Runner, an obstacle runner over the whole terminal. |
/angry-pigs | Package angry-pigs | Angry Pigs, a slingshot game over the whole terminal. |
Both games share the pig from the library Package
pig-play, which selects no extension of its own. Each
game registers commands only (no event handler, no tool), so bundling it costs nothing until
it is opened; Esc closes only the game overlay.
Which pig. The sprite login header and /sprite are part of PiG itself (built in since 0.4.0), so this
Piglet no longer bundles a login of its own. The games draw the pig you chose with PiG's /sprite: PiG saves the
choice in $PIG_HOME/state/pig-standard/login.json and the games read that file. A sprite the games do not know
(one of PiG's character sprites, or one an extension registered) is drawn as pig-default.
Let an agent play (opt-in, off by default). /runner mcp on and /angry-pigs mcp on (or PIG_GAMES_MCP=1 in the
environment, which adds one session_start handler to each game) serve that game to an agent as an MCP server on
127.0.0.1 behind a random bearer token, for this session. Until then nothing listens. A codemode script finds the tools with
searchTools("game"); demo/jev-plays.js has Jev play. Details in each game's README.
The same Packages are selected by pig-with-batteries.
The built-in tools, models and ambient extensions and Skills stay at PiG's defaults.
Run from a checkout
npm ci --ignore-scripts
npm run stage
pig piglet validate dist/staged/piglets/pig-games/piglet.yaml
pig --piglet dist/staged/piglets/pig-games/piglet.yaml
Build a Piglet Binary (needs a git checkout of the PiG source the pig was built from):
PIG_SOURCE_ROOT=/path/to/pig-git-checkout \
pig piglet build dist/staged/piglets/pig-games/piglet.yaml --format binary --targets <os>/<arch> --out ./pig-games
The Binary fuses both extensions (extensionRealization: fused). Linux/amd64 is the
development default; no release is published and no support is claimed.
Credits
The games and the art are PiG's (Michael Kinsy, MIT). See each Package's CREDITS.md and port/PORT.md.
Signed Binary
This npm package is the Piglet's source: pig piglet add npm:@pi-in-go/pigpen-piglet-pig-games registers it, and its Packages install from npm. The signed per-platform Binary is published separately on GitHub Releases (release pig-games/v0.1.1):
pig piglet pull 'github:MichaelKinsy/pigpen/pig-games@0.1.1'