← Demos
Piglets
Build a Piglet into one signed binary
A seven-line manifest becomes a signed executable, which pig verifies and runs.
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
Validate the manifest
pig piglet validate reviewer.yamlMake a signing key
pig piglet keygen sign.keyBuild a signed binary
pig piglet build reviewer.yaml --format binary --out pig-reviewer --sign-key sign.keyVerify it against the manifest
pig piglet verify pig-reviewer --source reviewer.yaml
Files: MP4 · WebM · Captions (VTT) · PiG source