← Demos

Piglets

Build a Piglet into one signed binary

A seven-line manifest becomes a signed executable, which pig verifies and runs.

0:32 · pig 0.7.0 · recorded 2026-11-08 · model replies are scripted; tool calls and commands are real · captions in English, under the clip

What you are seeing

  • reviewer.yaml is the whole Piglet: a name, a system prompt and four tools.
  • pig piglet validate checks the manifest; pig piglet keygen makes a signing key pair.
  • pig piglet build --format binary compiles one executable and signs it. The build shown reuses the cache and took 5 s; the first build on this host fetched PiG's source and took 2 minutes.
  • pig piglet verify checks the signature and that the binary matches reviewer.yaml; the binary then runs like any command. The model is scripted.

Try it yourself

  1. Validate the manifest

    pig piglet validate reviewer.yaml
  2. Make a signing key

    pig piglet keygen sign.key
  3. Build a signed binary

    pig piglet build reviewer.yaml --format binary --out pig-reviewer --sign-key sign.key
  4. Verify it against the manifest

    pig piglet verify pig-reviewer --source reviewer.yaml

Files: MP4 · WebM · Captions (VTT) · PiG source

Next: Ask a question, watch a tool run