r/PiGCodingAgent • u/Educational-Yak8793 • Oct 03 '26
PiG 0.4.0 🐷: Now following Pi 1.0.0 (durable runtime, code mode, MCP, and more)
Enable HLS to view with audio, or disable this notification
It's finally here, thanks for all the patience and support for this release and project so far :)
PiG is a separate Go implementation of Pi, the coding agent, shipped as one native binary. 🐷
0.4.0 follows Pi 1.0.0 (0.3.1 followed 0.87.1). New since 0.3.1:
- Pi 1.0.0's durable runtime, in Go: checkpointed sessions and tasks that resume after a crash, tools that rerun only when replay-safe, exactly-once submissions, forks and subagents. Ported with Pi's own tests.
- Code mode is built in and needs no Node (QuickJS on wazero, the same wasm Pi ships). Shorter prompt, recovery hints in errors, and scripts can generate images.
- MCP: a native client in print, JSON, RPC and interactive mode, with OAuth hardening (authorization server metadata URL, RFC 9207
isschecks, per-server credentials, step-up that keeps scopes). - Termux on Android (arm64):
curl -fsSL https://pi-in-go.dev/install.sh | shandnpm install -g u/pi-in-go/pigboth work, using a cgo build against Android's libc. pig piglet buildwithout a checkout: a release binary fetches its own exact source through the Go module proxy (checked by GOSUMDB), or builds in Podman/Docker when Go isn't installed.- TUI: fullscreen by default;
quietStartup: "header"; Radius in/login; a copy-code method for Anthropic. - PiG's own look: a pixel pig header,
/spritewith 15 pigs, an API for extensions to add their own, and a first-run setup that includes a sprite pick. - The Pi 1.0.0 extension API in the Node, Go, Python and Rust SDKs. Some SDK signatures change; the release notes list them.
- Windows remains in preview.
Also 0.4.1, which follows Pi 1.0.1, is already underway as well :)
Demo: first-run setup, then a classifier model plays two MCP games live through code mode.
Upgrade with pig update or npm install -g u/pi-in-go/pig@0.4.0.
Release notes: https://github.com/MichaelKinsy/PiG/releases/tag/v0.4.0
3
u/Educational-Yak8793 Oct 03 '26
Thank you to the herd as well for this release :) 🐷
3
u/DanielSReichenbach Oct 04 '26
With this, I am officially migrated from `pi` to `pig`. Migrated a five local extensions from TS to go following the PiG package and extension guide.
For me this is amazing because my Linux box is now free of NodeJS. 🥳
2
u/sauron150 Oct 04 '26
Nice can we add a support for azure hosted anthropic models
2
u/swamplord Oct 04 '26
Congrats! Do you plan to support custom TUI components for extensions?
2
u/Conflict-Mother Oct 06 '26
btw, to you if you like me have missed the first time to select your favoriate pig face, the spirite can be reach again /spirite command, but unfortunate we have no preview there
2
u/Vlyn Oct 06 '26
I finally gave it a go on Windows, same setup as my Pi harness (with 4 Node.js modules: @baylarsadigov/omp-undo-redo:dist, @czottmann/pi-automode:auto-mode.ts, @ff-labs/pi-fff:src, pi-web-access:dist).
Started out great, though startup was around the same time as Pi then (due to Node, duh). Then around the 100k+ context mark on some tasks the harness locked up.
At first I thought DeepSeek has an outage, kept showing "Working" with nothing happening, no reasoning output. Aborting the request and trying again helped once or twice, but then it fully broke. Switched over to Pi and it ran flawlessly at the same time, so there might be some latent bug here.
Removed PiG again and will stick with Pi :-/
2
u/VickWildman Oct 05 '26
Thanks for supporting Termux. I like to vibecode on my phone while wearing AR glasses.