by MichaelKinsy
PiG (Pi in Go) is a faithful Go port of upstream Pi, the TypeScript codebase behind the Pi coding agent. It is a parity-bound translation, not a rewrite: upstream behavior is the contract, and Go is the implementation language.
# Add to your Claude Code skills
git clone https://github.com/MichaelKinsy/PiGLast scanned: 11/29/2026
{
"issues": [
{
"file": "README.md",
"line": 36,
"type": "remote-install",
"message": "Install command (remote install script piped to a shell — review the source before running): \"curl -fsSL https://pi-in-go.dev/install.sh | sh\"",
"severity": "low"
}
],
"status": "PASSED",
"scannedAt": "2026-11-29T13:32:20.435Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}PiG is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by MichaelKinsy. PiG (Pi in Go) is a faithful Go port of upstream Pi, the TypeScript codebase behind the Pi coding agent. It is a parity-bound translation, not a rewrite: upstream behavior is the contract, and Go is the implementation language. It has 908 GitHub stars.
Yes. PiG passed AgentsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/MichaelKinsy/PiG" and add it to your Claude Code skills directory (see the Installation section above).
PiG is primarily written in Go. It is open-source under MichaelKinsy on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh PiG against similar tools.
No comments yet. Be the first to share your thoughts!
PiG is Pi, the minimal and extensible coding agent for the terminal, rebuilt in Go as one native binary. The binary needs no Node.js. Pi's TypeScript extensions run on your Node.js 22.13 or newer through PiG's compatible runtime modules, and extension API parity lists the differences. You can also write extensions in Go, Rust, Python, or Common Lisp, and bundle extensions, skills, and prompts into a Piglet: one named agent you can share or build into its own executable.
PiG is a pre-stable 0.x release. Core paths are ported and checked against Pi 1.7.0 with paired parity scenarios; edge cases are still hardening. See the port status and file map for current scope and evidence.
If PiG behaves differently from Pi, that is either a bug or a documented divergence. Windows support is a preview.
On macOS, Linux, or Android with Termux (arm64):
curl -fsSL https://pi-in-go.dev/install.sh | sh
On Windows, in PowerShell:
irm https://pi-in-go.dev/install.ps1 | iex
With npm, on any supported platform:
npm install -g @pi-in-go/pig
With Go:
go install github.com/MichaelKinsy/PiG/cmd/pig@latest
With Nix:
nix run github:MichaelKinsy/PiG
You can also download an archive from GitHub Releases or build from source. pi-in-go.dev/install covers every method, including updates and uninstalling.
Start PiG in the directory where you want it to work, run /login to connect a subscription or set your provider's API key (for example OPENAI_API_KEY), then ask it something:
cd /path/to/project
pig
Interactive /login masks secret input by default. Turn off Mask secret input in /settings to restore Pi's plain-text typing and submitted input (D80). See login privacy.
The documentation covers everything else, starting with the quickstart. You can also ask PiG to explain itself.
pig --mode rpc --listen <path> serves one RPC session per connection on the Unix socket at <path>, with Pi's RPC protocol unchanged on each connection (D232). It is new in PiG 0.8.0 and not in PiG 0.7.0, and Pi has no equivalent.
--listen requires one, --mode rpc, and a path that does not exist. A path longer than a socket address holds (104 bytes on macOS, 108 on Linux) is refused.$XDG_RUNTIME_DIR.--listen-share-extensions shares the extension processes instead, which costs less per session but shares module-level state between sessions.--listen rejects --continue, --resume, --session, --session-id and --fork. The server runs until a termination signal and then exits with 128 plus the signal number.AF_UNIX socket (Windows 10 version 1803 or later), not a named pipe, and its access follows the permissions of the socket's directory. The Windows tests have not been run yet.See serving many sessions for the protocol details.
Pi is the reference implementation. PiG follows Pi's behavior and design unless a Go constraint or an approved product-neutral requirement makes a difference necessary.
Use the upstream project for Pi itself:
PiG is not an official Pi release. The Pi maintainers do not endorse PiG.
Michael Kinsy created PiG working at Hewlett Packard Enterprise.
PiG is maintained as an independent open-source project. Project decisions, issues, and contributions belong in this repository. See docs/project/GOVERNANCE.md and docs/project/MAINTAINERS.md.
PiG adds a Go implementation to the Pi ecosystem and follows the Pi reference implementation.
The pinned Pi release is 1.7.0 at commit fb0fe823539f6d04850f6e34748c01f01f212e1f. The pin names the behavior oracle. It does not claim that every upstream change is already ported: test/parity/generated/coverage.md reports verified behavior, and the upgrade ledgers under test/parity/upstream-sync/ list each upstream change and its disposition.
PiG's current package scope covers Pi's agent, AI, coding-agent, and TUI
packages. It does not implement Pi's experimental remote Session packages or
its standalone telemetry and evaluation packages. See
docs/parity/PORT_MAP.md for the exact boundary.
piggithub.com/MichaelKinsy/PiG~/.pig/, or PIG_HOME~/.pig/agent, or PIG_CODING_AGENT_DIR.upstream/pin (a release tag or a pinned commit; PI_UPSTREAM_REF=<tag|commit> overrides it for one run, make pin-bump moves it).upstream/current/make checkmake verifypig version prints the PiG release and the pinned Pi release as separate fields. The interactive startup line prints PiG's version as <PiG release>+<Pi release>, for example 0.8.0+1.7.0: the Pi release is semver build metadata, so the version sorts as the PiG release. pig --version and pig -v print the pinned Pi package version alone, exactly as pi --version does, so a launcher that checks Pi's version reads it. That change is new in PiG 0.8.0: PiG 0.7.0 prints its own version with the Pi release as build metadata for pig --version. Neither command reads user configuration.
| Path | Responsibility |
|---|---|
agent/ |
Pi-compatible Agent loop, messages, and harness Session state. |
ai/ |
Pi-compatible providers, model catalog, authentication, and streaming types. |
coding/ |
Public coding-agent SDK, extension contracts, Package support, and Piglet support. |
tui/ |
Public terminal components, rendering, input, and terminal lifecycle. |
cmd/pig/ |
Stock PiG command-line application and RPC process surface. |
internal/ |
Private implementation used by Stock PiG. External modules cannot import it. |
extensions/ |
Go, Rust, Python, Common Lisp, and declaration-only TypeScript extension SDKs. |
piglets/ |
Explicit agent compositions such as PiG Standard and Pig Porter. |
test/parity/ |
Pinned Pi correspondence, scenarios, inventories, and generated evidence. |