╔═╗ ╔═╗ ╔═══════╗ ╔═════╗ ╔═════════╗ ╚═╝ ╔═══════╗ ╚═╝ ║ ╔═══╗ ║ ╚═╗ ╔═╝ ║ ╔═╗ ╔═╗ ║ ╔═╗ ║ ╔═══╗ ║ ╔═╗ ║ ╚═══╝ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ╔═════╝ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ╔═╝ ╚═╗ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝
It keeps what matters in a coding agent: the agent loop, tools, skills, JSONL sessions. Everything else — extensions, MCP, RPC mode, package management, self-update — is gone.
miniPI is not a from-scratch project. It descends directly from Pi:
pi → PiG → miniPI
- pi is the original minimal, extensible agent harness by Mario Zechner and Earendil Works. Its behavior is the reference: miniPI targets upstream pi 1.0.3 semantics.
- PiG is a pure-Go port of pi. miniPI is a heavily trimmed fork of PiG: the Go engine, the TUI and the parity-tested core come from there.
- miniPI cuts the fork down to the essentials and rebrands it as what it always was — a
pi.
- Agent loop with tools (
read,bash,edit,write), compaction, and sub-session support - Skills discovered from
~/.pi/agent/skills, project.pi/skills, and--skillpaths - JSONL sessions with resume, fork, branch tree and export
- Fullscreen TUI with differential rendering, Kitty keyboard protocol, syntax highlighting, markdown, LaTeX, mermaid and images
- llama.cpp support with chat-template thinking detection and per-level probing
- Full
~/.picompatibility — settings, auth, models, themes and keybindings files are shared with pi as-is
Prebuilt binaries for Linux and Windows are attached to each release. Pick the one for your platform, make it executable, and put it on your PATH:
chmod +x miniPI-linux-amd64
mv miniPI-linux-amd64 ~/.local/bin/piOn Windows, rename miniPI-windows-amd64.exe to pi.exe and place it on your PATH.
Or build it yourself:
./build.shThen run it in any project:
cd /path/to/project
piSign in to a provider with /login, or point at your own endpoints in ~/.pi/agent/models.json. Local llama.cpp models appear automatically when the server is running.
- The TUI runs in fullscreen by default.
PgUp/PgDnscroll by page,Alt+o/Alt+iscroll up and down,Ctrl+Home/Ctrl+Endjump to the edges, and everything is rebindable in~/.pi/agent/keybindings.json. - Themes are pi theme JSON files.
~/.pi/agent/themes/is picked up automatically;dark-legacyrestores the classic pi 0.84 dark palette. quietStartup: "header"in settings silences offline-provider warnings at launch.- Version numbers follow miniPI itself (
0.1.0); behavior targets upstream pi1.0.3.
miniPI stands on the work of two upstreams: pi by Mario Zechner and Earendil Works, and the Go port PiG by Michael Kinsy. The bundled pi source excerpts carry their own license at tui/widthx/testdata/pi/LICENSE.pi.
MIT