← Back to Skills Marketplace
openlark

Pi Coding Agent

by OpenLark · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
37
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install pi-coding-agent
Description
Use Pi Coding Agent (@earendil-works/pi-coding-agent) for AI-assisted programming. Pi is an extensible terminal programming assistant supporting multiple mod...
README (SKILL.md)

Pi Coding Agent

Terminal programming assistant, customizable with TypeScript extensions + Skills + Prompt Templates + Themes.

Use Cases

Use for installation, configuration, model switching, extension development, session management, RPC/SDK integration, and more.

Installation

npm install -g --ignore-scripts @earendil-works/pi-coding-agent
export ANTHROPIC_API_KEY=sk-ant-...; pi   # or use pi → /login to select a provider

Basic Usage

pi — interactive | pi -p "q" — script | pi --mode rpc — cross-language | pi -c — continue | pi -r — browse sessions

Four Modes

Interactive (TUI) / -p Print / --mode json event stream / --mode rpc stdin/stdout JSONL SDK embedding: import { createAgentSession } from "@earendil-works/pi-coding-agent"

Models & Shortcuts

15+ providers (Anthropic/OpenAI/Google/...), /login OAuth or API key. /model (Ctrl+L) to switch, Ctrl+P to cycle, Shift+Tab to cycle thinking level. Providers detail | Custom models | Shortcuts

Sessions

JSONL tree structure + in-place branching. /tree to navigate, /fork to branch, /compact to compress. pi -c to continue the last session. Session management | JSONL format + Compaction

Steering & Follow-Up

While agent is running: Enter = steering (insert after tool completes), Alt+Enter = follow-up (insert after agent finishes), Escape to abort.

Context Engineering

AGENTS.md cascading loading, SYSTEM.md/APPEND_SYSTEM.md to replace/append system prompts. Auto-compaction summarizes old messages, customizable via Extensions.

Skills & Prompt Templates

Skills: ~/.pi/agent/skills/ directory + SKILL.md, Agent Skills standard. /skill:name or auto-load. Prompts: ~/.pi/agent/prompts/*.md, /name to expand. Skills details

Extensions

TypeScript modules, register tools/commands/shortcuts/events/UI. Location: ~/.pi/agent/extensions/, .pi/extensions/. Extension API | TUI components

Pi Packages

pi install npm:@foo/tools     # npm
pi install git:github.com/u/r # git
pi install -l npm:@foo/tools  # project-level
pi update                     # update all
pi config                     # enable/disable

Package: package.json with "pi": { "extensions/skills/prompts/themes": [...] } + keyword "pi-package". Package management

Reference Docs

Runtime API: agent-core — Agent/Tool/Hooks/Event stream LLM API: ai — getModel/streamProxy Extensions: extensions — Event system | tui — UI components Integration: sdk — Node SDK | rpc — JSONL protocol Configuration: config — settings | providers — auth | models — custom models Sessions: sessions — tree navigation | session-format — JSONL+Compaction Distribution: skills — Skill spec | packages — Package distribution UI: shortcuts — keyboard shortcuts | themes — 51-token themes | cli — all CLI args

Notes

  • Install with --ignore-scripts (Pi does not need lifecycle scripts)
  • Pi Packages have full system access; audit source before installing
  • PI_SKIP_VERSION_CHECK=1 / PI_TELEMETRY=0 / PI_OFFLINE=1
  • Homepage: pi.dev | Docs: pi.dev/docs/latest
Usage Guidance
Before installing, treat Pi like a full coding agent: only configure trusted model providers and packages, protect API keys/OAuth tokens, disable telemetry or startup networking if needed, use --no-session for sensitive work, and review any session carefully before using /share because it uploads content to GitHub Gist.
Capability Tags
requires-oauth-tokenrequires-sensitive-credentials
Capability Assessment
Purpose & Capability
The artifacts consistently describe Pi as a terminal coding assistant with model providers, sessions, tools, extensions, SDK/RPC, and package management; those capabilities match the stated purpose.
Instruction Scope
The skill documents broad coding-agent capabilities such as read/bash/edit/write tools, extensions, OAuth/API keys, and package installation, but frames them as user-invoked configuration and usage rather than hidden instructions.
Install Mechanism
The skill itself contains only markdown files and recommends npm installation with --ignore-scripts; no executable installer, lifecycle script, or bundled dependency is present in the artifact.
Credentials
Provider credentials, local auth files, shell-command-backed keys, startup network operations, telemetry controls, and package full-system access are disclosed as part of a terminal coding agent, but they deserve user attention.
Persistence & Privilege
Sessions are documented as auto-saved under ~/.pi/agent/sessions/ and /share is documented as uploading to GitHub Gist; these are coherent features, but the docs give limited privacy warning about sensitive session contents.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install pi-coding-agent
  3. After installation, invoke the skill by name or use /pi-coding-agent
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of Pi Coding Agent, an extensible terminal programming assistant. - Offers multi-model AI programming assistance with support for 15+ providers (Anthropic, OpenAI, Google, etc.). - Features interactive TUI, print mode, JSON event streaming, and RPC for integration. - Customizable via TypeScript extensions, Skills, Prompt Templates, and Themes. - Supports session management, context auto-compaction, and tree-based session structures. - Includes package management for extensions, skills, prompts, and themes. - Designed for installation, configuration, extension development, and seamless model/provider switching.
Metadata
Slug pi-coding-agent
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Pi Coding Agent?

Use Pi Coding Agent (@earendil-works/pi-coding-agent) for AI-assisted programming. Pi is an extensible terminal programming assistant supporting multiple mod... It is an AI Agent Skill for Claude Code / OpenClaw, with 37 downloads so far.

How do I install Pi Coding Agent?

Run "/install pi-coding-agent" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Pi Coding Agent free?

Yes, Pi Coding Agent is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Pi Coding Agent support?

Pi Coding Agent is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Pi Coding Agent?

It is built and maintained by OpenLark (@openlark); the current version is v1.0.0.

💬 Comments