pi-coding-agent-1.0.0 is not a library.
pi-coding-agent
Interactive coding agent CLI. Part of the
pi agent harness — a Rust port of
@earendil-works/pi-coding-agent.
The crate name is pi-coding-agent; the installed binary is pi.
Install
Usage
# or: OPENAI_API_KEY=..., GOOGLE_API_KEY=..., GEMINI_API_KEY=...
# Interactive REPL
# One-shot prompt
# JSON-lines event stream for scripting
# Resume a saved session
# Skip permission prompts (DANGEROUS — bash/write/edit run unconfirmed)
# Session management
Pick the model explicitly:
PI_MODEL=claude-opus-4-7
PI_MODEL=gpt-4o
PI_MODEL=gemini-2.0-flash
Slash commands (interactive)
/help show command list
/quit /exit quit pi
/reset start a fresh session
/model print the active model
/tools list builtin tools
/cost show accumulated token usage
/sessions list saved sessions
/resume <id> load a saved session by id
/session print current session id
What's included
- Streaming text — assistant output prints as it arrives.
- Session persistence under
$XDG_CONFIG_HOME/pi/sessions/<id>.json, saved after every turn. - AGENTS.md / CLAUDE.md /
.pi/instructions.mdloader walks up from the current directory and concatenates each file into the system prompt. - Per-tool permission prompts —
bash,write,editrequire confirmation by default.--yoloskips all prompts. - Built on
pi-aiandpi-agent, so any code consuming these crates speaks the same protocol as the CLI.
License
MIT