← 返回 Skills 市场
openlark

Pi Coding Agent

作者 OpenLark · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
37
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (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
安全使用建议
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.
能力标签
requires-oauth-tokenrequires-sensitive-credentials
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install pi-coding-agent
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /pi-coding-agent 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug pi-coding-agent
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 37 次。

如何安装 Pi Coding Agent?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install pi-coding-agent」即可一键安装,无需额外配置。

Pi Coding Agent 是免费的吗?

是的,Pi Coding Agent 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Pi Coding Agent 支持哪些平台?

Pi Coding Agent 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Pi Coding Agent?

由 OpenLark(@openlark)开发并维护,当前版本 v1.0.0。

💬 留言讨论