Meet PiG: The Pi coding harness that is yours but in Go

Reddit r/openclaw Tools

Summary

PiG is a Go port of the Pi coding agent harness, providing faster startup and lower memory usage as a single static binary with support for live-reloaded extensions.

Reposted from r/PiGCodingAgent, rewrote the same harness underneath OC in golang. I'm going to be working on a PR to OC this weekend as well. All feedback and contributions are welcome and if you try it out I hope you enjoy :) --- PiG is a direct port of the amazing Pi agent harness as one Go binary for macOS, Linux and Windows (Windows in preview). Node.js only comes in if you run TypeScript extensions. Pi's extensions run unchanged; write new ones in Go, Rust or Python and /reload them live. It is a direct port of Pi's its agent loop, terminal UI, sessions, providers, and extension system, shipped as one static Go binary with no libc dependency. Some Go-specific bits that might interest this sub: Extensions in Go can be fused into a single binary and talk to the host over in-memory pipes instead of sockets; other languages run as supervised subprocesses over local sockets. The TUI renders differentially; width handling was ported from Pi's own algorithm and checked with a differential test against Pi's code over ~1.5M cases: tui/widthx/pi_width_diff_test.go. Behavior is checked against Pi in real terminals (tmux-driven scenarios that compare screens). go install github.com/MichaelKinsy/PiG/cmd/pig@latest works; so do a curl installer and npm i -gu/pi-in-go/pig (it installs the prebuilt native binary for your platform). Measured startup is about 21 ms vs about 300 ms median, and about a quarter of the peak memory (method in the blog). Disclosure: agents wrote much of the port. Tests, side-by-side comparisons against Pi, and a person reading the diff decide what ships. Repo: https://github.com/MichaelKinsy/PiG Blog: https://developer.hpe.com/blog/meet-pig-pi-in-go-a-port-that-plans-on-keeping-up/ Upstream Pi: https://github.com/earendil-works/pi Happy to answer questions about the port, the extension host, or keeping up with upstream. Feedback on this is appreciated and contributions are welcome. Thank you to r/HPE for covering writing the blog and contributing PiG to Open Source and special thank you to the Pi team of course at https://earendil.com
Original Article

Similar Articles

Pi Coding Agent

Product Hunt

Pi Coding Agent is a customizable harness for building coding agents, now available on Product Hunt.

can1357/oh-my-pi

GitHub Trending (daily)

Oh My Pi is an open-source coding agent built on Pi, offering a wired-in IDE, support for 40+ providers, built-in tools, and significant performance improvements across models.

@geekbb: A rather beautiful Pi Coding Agent user interface, directly reads the workspace directory structure of pi harness projects like pi-forge, no extra configuration or database needed, ready to use out of the box. https://github.com/Ellian-Eorwyn/Hep…

X AI KOLs Timeline

Hephaestus is a beautiful desktop GUI for managing local LLM agents across pi harness environments. It reads the workspace directory structure directly without needing extra configuration or a database, providing a centralized interface for agent interaction and monitoring.

@oragnes: Recently discovered a hardcore open-source project from Harness: pi (recently moved under earendil-works from badlogic). It is an all-in-one AI Agent infrastructure suite plus a terminal programming assistant CLI designed to backstop developers. Stop reinventing the wheel: it provides a ready-made…

X AI KOLs Timeline

Pi is an open-source AI Agent infrastructure suite and terminal programming assistant CLI. It offers a unified API to bridge differences between multiple models, supports concurrent tool calling to reduce latency, and allows developers to control the thinking budget.