← Catalog

@pi-in-go/pigpen-piglet-pig-with-batteries

The batteries-included Piglet: default PiG with curated extensions. Today: the herdr agent-state reporter, the read_session tool, the /context, /tools, /cost and /prompts inspection commands, PiG Runner (/runner) and Angry Pigs (/angry-pig…

PigletPigpen

Add this Piglet

Add the Piglet source

pig piglet add npm:@pi-in-go/pigpen-piglet-pig-with-batteries

PiG copies the Piglet source into ~/.pig/piglets/ and validates it. Start it with pig --piglet pig-with-batteries.

Review before installing

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.
  • Not the finished batteries-included composition. It selects the herdr agent-state reporter (Package components/herdr, Go), PiG Runner and Angry Pigs (Packages pig-runner, angry-pigs, Go, moved from PiG Standard; they draw the pig chosen with PiG's built-in /sprite), the Pig Snake game (Package components/pig-snake, Go, starts only on /pig-snake), the read_session tool (Package components/session-ingest, Go), the /context, /tools, /cost and /prompts commands (Package components/context-info, Go; its footer is opt-in), the pig-doctor /doctor command (Package components/pig-doctor, Go; command only, nothing runs automatically), the a2a Package (Package components/a2a, Go: A2A tools, listener off until configured), the websearch first slice (Package components/websearch, Go: web_search, fetch_content, get_search_content, source_check, web_enable; the rest of pi-web-access is deferred and named in its PORT.md), the pig-music player (Package components/pig-music, Go: /music, alt+m), plus an empty build-pipeline fixture (seed-check, Go). The roadmap is approved; capability ports are pending implementation.
  • The games start only on their command (/runner, /pig-runner, /angry-pigs, /pig-snake). Bundling is not activating. The sprite login and /sprite are PiG's own (built in since 0.4.0); this Piglet no longer bundles one.
  • It also selects Jev (components/jev), a typed judge for tool calls and output. Selectable and off by default: nothing is judged or sent until you run /jev on, which shows what leaves the machine and where. It fails open. The standalone jev Piglet and this one both build a Binary locally.
  • pig-music is a full-screen YouTube Music player. Nothing starts or runs until you type `/music` (or a /music subcommand or alt+m): no mpv or yt-dlp process, no network, no cookie access, no footer or widget and no timer; at startup it only reads its settings and looks for its own mpv socket, and follows an mpv from an earlier session that is already playing (footer only). It needs mpv and yt-dlp with a JS runtime on the machine: /music always plays through mpv (the native engine is used only by the separate pigmusic command). The first /music checks the machine and /music setup offers a consent-gated download of yt-dlp and Deno; the library tab reads a browser's cookies only after a one-time consent per browser.
  • The herdr reporter does nothing unless PiG runs inside a herdr pane. Every extension in this Piglet is Go, so it needs no Node.js.
  • A local Piglet Binary builds with the reviewed PiG, but none is signed or published. The manifest lists five build targets, but 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; the targets and the 0.1.1 version are not a support or release claim.
  • Newer PiG builds support subdirectory source add and per-Piglet release tags, but this composition is not published and no installation command is offered yet. See RELEASE-BLOCKERS.md.

Selects

Extensions (12)

  • herdr from package:herdr
  • pigrunner from package:pig-runner
  • angrypigs from package:angry-pigs
  • pig-snake from package:pig-snake
  • session-ingest from package:session-ingest
  • context-info from package:context-info
  • pig-doctor from package:pig-doctor
  • jev from package:jev · tools: jev_ask
  • a2a from package:a2a
  • websearch from package:websearch
  • pig-music from package:pig-music
  • pig-model-tweaks from package:pig-model-tweaks

Packages it uses

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 pull has no release to pull.
  • npm package: 2 registry signatures.
piglet.yaml
# GENERATED by scripts/npm-piglets.mjs from piglets/pig-with-batteries/piglet.yaml. Do not edit.
# local fixture extensions are dropped (a remote source takes no local Resource).
name: pig-with-batteries
description: "The batteries-included Piglet: default PiG with curated extensions. Today: the herdr agent-state reporter, the read_session tool, the /context, /tools, /cost and /prompts inspection commands, PiG Runner (/runner) and Angry Pigs (/angry-pigs), the Pig Snake game (/pig-snake), which start only on their command, the pig-doctor /doctor command (nothing runs unless you invoke it), Jev, a typed judge for tool calls that is off until you run /jev on, the a2a Package (A2A tools; its listener stays off until you configure it), the websearch first slice (search, fetch, retained sources), and pig-music (/music, a music player that does nothing until you type /music). Protocol bridges and more capability ports are planned."
release:
  version: 0.1.2
build:
  targets:
    - linux/amd64
    - linux/arm64
    - darwin/arm64
    - darwin/amd64
    - windows/amd64
packages:
  herdr: npm:@pi-in-go/pigpen-herdr@^0.2.0
  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
  pig-snake: npm:@pi-in-go/pigpen-pig-snake@^0.2.0
  session-ingest: npm:@pi-in-go/pigpen-session-ingest@^0.3.0
  context-info: npm:@pi-in-go/pigpen-context-info@^0.1.2
  pig-doctor: npm:@pi-in-go/pigpen-pig-doctor@^0.2.0
  typesafe: npm:@pi-in-go/pigpen-typesafe@^0.2.0
  jev: npm:@pi-in-go/pigpen-jev@^0.1.2
  a2a: npm:@pi-in-go/pigpen-a2a@^0.3.0
  websearch: npm:@pi-in-go/pigpen-websearch@^0.1.2
  pig-music: npm:@pi-in-go/pigpen-pig-music@^0.2.0
  pig-model-tweaks: npm:@pi-in-go/pigpen-pig-model-tweaks@^0.2.1
extensions:
  - name: herdr
    origins:
      - package:herdr
    tools: []
  - name: pigrunner
    origins:
      - package:pig-runner
    tools: []
  - name: angrypigs
    origins:
      - package:angry-pigs
    tools: []
  - name: pig-snake
    origins:
      - package:pig-snake
    tools: []
  - name: session-ingest
    origins:
      - package:session-ingest
  - name: context-info
    origins:
      - package:context-info
  - name: pig-doctor
    origins:
      - package:pig-doctor
    tools: []
  - name: jev
    origins:
      - package:jev
    tools:
      - jev_ask
  - name: a2a
    origins:
      - package:a2a
  - name: websearch
    origins:
      - package:websearch
  - name: pig-music
    origins:
      - package:pig-music
    tools: []
  - name: pig-model-tweaks
    origins:
      - package:pig-model-tweaks
    tools: []
skills: []
strip:
  features:
    - node-extensions
    - extension-sdk-go
    - extension-sdk-rust
    - extension-sdk-python
    - self-update
discovery:
  extensions: []
  skills: []

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.2 (README.md). PiG does not review it.

pig-with-batteries

The batteries-included composition combines default PiG with curated extensions. Source only, not a finished composition or published release. Today it selects these batteries, all explicit (nothing starts or sends anything by itself): the herdr reporter, which reports PiG's idle, working and blocked state to herdr and does nothing outside a herdr pane; two pig games (below), which start only on an explicit command and draw the pig chosen with PiG's built-in /sprite; the Pig Snake game, which does nothing until you type /pig-snake; session-ingest, one tool (read_session) that lets the model query session transcripts in bounded pages; context-info, the /context, /tools, /cost and /prompts commands (its status footer stays off unless PiG starts with --context-footer); the pig-doctor command (nothing runs automatically); jev, a typed judge for tool calls that is off until you run /jev on; the a2a Package, which adds the a2a_agents, a2a_send and a2a_task tools and /a2a, and opens no listener unless a2a.json, PIG_A2A_LISTEN or --a2a-listen configures one (it then refuses to start without authentication tokens); and the websearch first slice (web_search, fetch_content, get_search_content, source_check, web_enable); and pig-music, a full-screen YouTube Music player that does nothing until you type /music. The owner approved the roadmap; the rest of its capability ports are not in this composition yet.

  • piglet.yaml: authored composition input. Its name, description, release version, Resource selections, and build targets feed staging and the catalog.
  • catalog.json: presentation-only fields that do not belong in PiG's closed manifest schema (status, featured flag, review date, languages, caveats).
  • extensions/, skills/, prompts/: owned resource source directories.

Keep status: planned until curation, validation, source distribution and signed releases work. release.version: 0.1.1 reserves a development version; it does not assert that a release exists. The index generator deliberately does not turn build targets into supported binary platforms.

Local inspection after building a compatible PiG:

npm run stage
pig piglet validate dist/staged/piglets/pig-with-batteries/piglet.yaml
pig --piglet dist/staged/piglets/pig-with-batteries/piglet.yaml

What it selects

ExtensionOriginPurpose
herdrpackage:herdr (local:../../components/herdr, materialized by npm run stage)Reports agent state to herdr. Same selection as the optional herdr Piglet, which documents what it reports.
pigrunnerpackage:pig-runner/runner, /pig-runner: PiG Runner. Registers commands only.
angrypigspackage:angry-pigs/angry-pigs: Angry Pigs. Registers commands only.
pig-snakepackage:pig-snake (local:../../components/pig-snake, materialized by npm run stage)The snake game with a herd of pigs. Registers only the commands /pig-snake and /snake: no event handler, tool or flag, no timer or output until a user runs one. Needs an interactive terminal; in print, JSON and RPC mode it only says so. Pure Go, so it fuses into the Binary.
session-ingestpackage:session-ingest (local:../../components/session-ingest)Adds the read_session tool. Idle until the model calls it.
context-infopackage:context-info (local:../../components/context-info)Adds /context, /tools, /cost, /prompts, /context-footer and Ctrl+Shift+I. No footer or status change unless started with --context-footer.
pig-doctorpackage:pig-doctor (local:../../components/pig-doctor)The /doctor command: finds cruft in a PiG setup (duplicate or broken extensions, unpruned caches, orphaned agent directories, legacy files) and fixes it with a confirmation per group and a backup. Command only: tools: [] leaves the Package's read-only pig_doctor tool off in every mode (interactive, RPC, print and JSON), and it registers no event handlers. PiG 0.3.x ignored that empty scope in print and JSON mode (pig -p, --mode json); PiG 0.4.0 applies it (npm run test:tool-scope).
jevpackage:jev (local:../../components/jev; its shared client library is the typesafe Package)A typed judge for tool calls and output. Off by default: it judges nothing and sends nothing until you run /jev on (which shows what leaves the machine and where) or set "enabled": true in your own pi-jev.json. It fails open. See the Package README.
a2apackage:a2a (local:../../components/a2a, materialized by npm run stage)The a2a_agents, a2a_send and a2a_task tools and /a2a: calls remote A2A agents and can serve PiG tasks to them. No listener unless a2a.json, PIG_A2A_LISTEN or --a2a-listen configures one, and a listener refuses to start without authentication tokens. Same selection as the a2a Piglet; configuration is in the Package README.
websearchpackage:websearch (local:../../components/websearch, materialized by npm run stage)Web search, page fetch, retained sources and bounded retrieval: tools web_search, fetch_content, get_search_content, source_check, and the loader web_enable (dormant until the model asks). A Go port of pi-web-access, first slice only: deferred features are listed in PORT.md. It reads web-search.json from the agent directory. With nothing configured, a search goes to the keyless Exa MCP (mcp.exa.ai), as in the original; no paid provider is called without configuration (see its README).
pig-musicpackage:pig-music (local:../../components/pig-music, materialized by npm run stage)/music: a full-screen YouTube Music player (search, queue, library, cover art and a palette that follows the track) and quick commands (/music play, pause, now, queue, vol...). Off until you type /music (or a /music subcommand or alt+m): at startup it spawns no mpv or yt-dlp, makes no network call, reads no cookies, and shows no footer, widget or timer; it registers no tool (tools: []), so the model is offered nothing. At startup it only reads its settings.json and looks for its own mpv socket: if an mpv from an earlier session is already playing (stopOnExit off, a crash, another PiG), it follows it and shows the track in the footer, as after a /reload. Needs mpv (0.35 or later) and yt-dlp with a JS runtime on the machine: inside PiG, /music and its quick commands always play through mpv. The pure-Go native engine (WaxTap, WaxFlow, oto) is used only by the separate pigmusic command (engine in settings.json applies to it), not by /music, and it is not in this Binary: it lives in pigmusic (build it with go build in components/pig-music/extensions/pig-music/cmd/pigmusic; see the Package README). The first /music runs the doctor, which says what is missing with one copy-paste fix per OS; /music setup also offers to download yt-dlp and Deno into its own data directory, only with your consent (never sudo). The Library tab reads your browser's cookies only after a one-time consent per browser (cookieBrowser in its settings.json), for the library and liked-song lists only, kept in memory. Pure Go, fused into the Binary (about +1 MB); the music keeps playing in mpv across /reload, and /quit stops it (stopOnExit, on by default).
seed-checklocal:./extensions/seed-checkAn empty Go factory with no tools, commands or hooks: a build-pipeline fixture, not a battery.

Games do not start by themselves. Bundling is not activating: pigrunner and angrypigs register a command each and no event handler (a test per Package checks that loading them makes no host call), so nothing plays, draws or ticks until you type the command. The pig they draw is the shared pig-play library Package, staged alongside them. Their Go code moved from PiG Standard (Michael Kinsy, MIT); credits are in each Package.

Selecting the Package needs no copy: components/herdr stays the single owner of the reporter source. Omitted tools use PiG's defaults. Discovery is empty, so a maintainer's own extensions and skills are not picked up; the reporter comes from its Package, not from discovery. (The herdr Piglet keeps user and workspace discovery because it is only a reporter.)

Every extension is Go. The owner rule is that a Piglet's extensions are Go SDK extensions, so herdr is a Go extension and pig piglet build dist/staged/piglets/pig-with-batteries/piglet.yaml --format binary --out <path> builds a Binary with the reviewed PiG (set PIG_SOURCE_ROOT to a git checkout of it). seed-check is no longer what lets the build succeed; it is kept only so the composition still has a second, empty Go member until the owner decides to drop it. See the root release blockers before publication.

Pig Snake fuses like the others: its Package is pure Go and the composition builds a Piglet Binary with PiG 0.4.0 (evidence in components/pig-snake/port/PORT.md).

Signed Binary

This npm package is the Piglet's source: pig piglet add npm:@pi-in-go/pigpen-piglet-pig-with-batteries registers it, and its Packages install from npm. The signed per-platform Binary is published separately on GitHub Releases (release pig-with-batteries/v0.1.2):

pig piglet pull 'github:MichaelKinsy/pigpen/pig-with-batteries@0.1.2'