← 返回
未分类 Key 中文

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...
使用 Pi Coding Agent(@earendil-works/pi-coding-agent)进行 AI 辅助编程。Pi 是一个可扩展的终端编程助手,支持多种模块。
openlark openlark 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 51
下载
💾 0
安装
1
版本
#latest

概述

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

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-06-09 19:46 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 686 📥 331,199
content-creation

Toutiao Graphic Publisher

openlark
通过浏览器自动化在头条发布图文内容,支持智能排版、自动生成热门标签等功能。
★ 2 📥 1,037
dev-programming

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 42,124