My Pi coding agent setup: 17 plugins + 18 global skills + 2 MCP servers, with a one-line installer and tutorial README.
一份可直接复刻的 Pi 配置,整理成教程形式分享。包含 17 个插件、18 个全局 Skill、2 个 MCP server,配一键安装脚本。
仓库里的每样东西都经过实际使用筛选,目标是把 Pi 打造成一个能多代理协作、能省 token、能跑浏览器的全能终端编码代理。
Pi(npm 包 @earendil-works/pi-coding-agent)是一个开源的终端 AI 编码代理。你给它一个任务,它在你本地的项目里读写文件、跑命令、调用工具来完成任务。
然后跑 pi 进入交互界面。本仓库的所有插件都假设你已经有一个能正常工作的 Pi。
- Extension(扩展):TypeScript 模块,最强力的改造方式。能订阅生命周期事件(如 toolcall 可以拦截/修改/阻止工具调用)、注册自定义工具、注册命令、改系统提示词、自定义渲染。 - Skill(技能):一个 SKILL.md 文件,描述「某类任务怎么做」。模型按需加载,跨会话存活。Pi 实现了 Agent Skills 标准,所以 Claude Code / OpenAI Codex 的 skill 也能直接用。 - Prompt(提示模板):可复用的 .md 模板,用 /template 唤起。 - Theme(主题):JSON 配色文件。 - Package(包):把上面这些打包,通过 npm / git / 本地路径分发。pi install 就是装包。
1. 用户输入 prompt 2. beforeagentstart 事件(扩展可注入消息 / 改系统提示词) 3. 进入 turn 循环:调模型 → 模型可能调用工具 → toolcall 事件(可拦截)→ 执行工具 → toolresult 事件(可改结果)→ 回传给模型 4. 模型不再调工具 → agentend → agentsettled
Pi 有一个官方的 包市场,所有在 package.json 里带 pi-package 关键字的 npm 包都会自动出现在上面。每个包页面会展示版本、下载量、依赖、仓库链接、甚至 demo 视频/截图。
来源 格式 说明 --- --- --- npm npm:@scope/pkg@1.2.3 最常见,版本可 pin git git:github.com/user/repo@v1 适合私有 / 未发布的包,SSH/HTTPS 都行 本地路径 /abs/path 或 ./rel/path 开发调试用
文件 作用 --- --- ~/.pi/agent/settings.json 全局设置:packages 列表、主题、默认模型等 ~/.pi/agent/tools.json 工具开关:哪些工具 active / inactive ~/.pi/agent/models.json provider 和模型定义 ~/.pi/agent/extensions/.ts 全局自定义扩展(auto-discover,支持 /reload) ~/.agents/skills/ 全局自定义 skill ~/.config/mcp/mcp.json MCP server 配置 .pi/settings.json 项目级设置(可跟团队共享) .pi/extensions/ 项目级扩展
最简单的扩展。在 ~/.agents/skills/my-skill/SKILL.md 写一个 markdown,描述某类任务的标准流程。模型会按需加载它。本仓库的 chrome-devtools skill 就是这种形式。
From the project README.
Add the radar badge to your README — it shows your project was picked up by MCP Radar and links to this page:
[](https://mcp.liqiwa.com/s/realchendahuang--pi-config.html)
Personal OpenCode configuration with MCP servers, agent presets, and cross-platform installer
howshannon/trust-issuesAdversarial security review for AI skills, repos, MCP servers, and packages before you install them. A read-only scanner plus a five-persona reasoning pass, ending in a GO / GO WITH MITIGATIONS / NO-G
Reanthesis/use-reanthesisConnect your AI to Reanthesis — MCP server, agent skills, and plugins so Claude, ChatGPT, and Copilot can build flashcards from your notes and manage your study data. Your AI, your data, your cards.
The top new MCP servers of the week, every Monday. No spam, unsubscribe anytime.