Pi: Open‑Source Coding Agent with Editable System Prompt and Forked Sessions
Explore Pi's minimal toolset and editable system prompt to customize coding workflows; test its extension generation and forked session tree features.
Test Pi's system prompt editing, forked sessions, and extension generation on a local dev environment; evaluate billing impact for Claude Pro usage.
Summary
Pi is a new open‑source coding agent that lets developers fully own their context and workflow. The system prompt can be edited by dropping a system.md file into ~/.pi/agent, a feature not found in other coding agents. Sessions are tree‑structured; the /tree command forks from any earlier message, so users can backtrack without restarting. Pi exposes only four tools—read, write, edit, and bash—relying on bash to replace dedicated grep, find, or git tools. It has no built‑in sub‑agents, but the agent can write its own extensions, demonstrated by generating a TypeScript status bar widget that shows the current git branch and uncommitted count. The minimal toolset reduces noise, and the agent can run with a Claude Pro account, though billing is per‑token on top of the subscription. For developers who want a lightweight, customizable coding assistant, Pi offers day‑one usability and deep workflow ownership.
Key changes
- System prompt editable via ~/.pi/agent/system.md
- Sessions are tree‑structured; /tree forks from earlier messages
- Only four tools: read, write, edit, bash
- No built‑in sub‑agents; agent can write its own extensions
- Minimal toolset reduces noise; bash covers grep/find/git
- Runs with Claude Pro but bills per‑token on top of subscription
- Ideal for minimalist workflow ownership