Pi Agent Helper
A routing skill that guides installing, configuring, extending, and embedding Pi — the minimal terminal coding harness.
Dev & CodingAdvanced★ 33,030⑂ 3,248AI score 7/10Last updated: Aug 9, 2026
What it does
Pi (@earendil-works/pi-coding-agent) is a minimal terminal coding agent extended through TypeScript extensions. This skill gives Claude an intent→document routing table so it always opens the right file under references/ before answering or writing code.
Coverage includes:
- Installation, authentication, provider/model config,
PI_*env vars, settings keys - Building extensions, skills, prompt templates, themes, and shareable packages
- SDK embedding (
createAgentSession,createAgentSessionRuntime), RPC mode, JSONL event streams - Session parsing, branching, compaction; local llama.cpp model router; TUI components
- Ecosystem packages: pi-subagents (delegation/orchestration), pi-mcp-adapter (MCP), pi-interview (interactive forms), pi-web-access (search, fetch, video understanding)
It also states safety defaults up front: Pi runs locally and is not sandboxed, so extensions, packages, and project-local .pi resources should be treated as code with full process permissions.
Who it's for
- Developers adopting Pi in a real workflow
- Teams embedding a coding agent into a Node/TypeScript app via the SDK
- Non-Node clients (Python, Go, Rust) driving the agent over RPC or JSON mode
- Authors of Pi extensions and packages
Examples
- "Install Pi and get me to a first run with Anthropic" → reads quickstart/providers, walks through
npm install -g --ignore-scripts @earendil-works/pi-coding-agentthen/login. - "Call Pi from my Python service" → recommends RPC mode with
pi --mode rpc --no-sessionand warns to split JSONL records on\nonly (Node readline is not protocol-compliant). - "Add a custom tool that asks for approval before writing files" → uses references/extensions.md for tool registration, event hooks, and path protection.
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/pi-agent folder from the GitHub repo K-Dense-AI/scientific-agent-skills into my ~/.claude/skills/pi-agent/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/K-Dense-AI/scientific-agent-skills.git /tmp/sci-skills && mkdir -p ~/.claude/skills && cp -r /tmp/sci-skills/skills/pi-agent ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repository:
git clone https://github.com/K-Dense-AI/scientific-agent-skills.git - Create the skills directory:
mkdir -p ~/.claude/skills - Copy the skill including its reference docs:
cp -r scientific-agent-skills/skills/pi-agent ~/.claude/skills/ - Verify with
ls ~/.claude/skills/pi-agent— you should seeSKILL.mdand areferences/folder. - Restart Claude Code and ask something like "How do I install Pi?" to trigger the skill.
- To actually run Pi you need Node.js 18+ and npm:
npm install -g --ignore-scripts @earendil-works/pi-coding-agent
View source on GitHub ↗License: MIT