by DLYZZT
A local-first, cross-platform Electron desktop workspace for Pi Coding Agent, with sessions, project files, browser tools, skills, plugins, and messaging integrations.
# Add to your Claude Code skills
git clone https://github.com/DLYZZT/pi-desktoppi-desktop is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by DLYZZT. A local-first, cross-platform Electron desktop workspace for Pi Coding Agent, with sessions, project files, browser tools, skills, plugins, and messaging integrations. It has 51 GitHub stars.
pi-desktop's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/DLYZZT/pi-desktop" and add it to your Claude Code skills directory (see the Installation section above).
pi-desktop is primarily written in TypeScript. It is open-source under DLYZZT on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh pi-desktop against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
把 Pi Coding Agent 变成真正的桌面工作台。
本地优先 · 零本地服务器 · 跨平台应用
English · 简体中文
下载 v0.1.4 · 截图 · 功能 · 快速开始 · 架构 · 变更记录 · 路线图

@ 文件引用WebContentsView 承载真实 Chromium 页面,支持多 Tab、临时/持久 Profile、登录态、下载、上传和代理.docx)文档预览/help、/status、/new、/compact 和 /reloadsandbox: true、严格 CSP 与类型化 IPC 契约最新稳定版为 v0.1.4,提供 macOS Apple Silicon / Intel、Windows x64 和 Linux x64 安装包。
Pi Agent Desktop 已内置 Pi Coding Agent 运行时。普通用户使用 Agent 本身无需单独安装 Pi CLI、Pi Coding Agent、Node.js 或 npm;安装桌面应用并配置模型提供商后即可使用。Skills、Plugins 或 Agent 脚本需要额外开发工具时,应用会优先复用健康的系统安装,也可以在用户确认后安装应用私有运行时。
应用会读取 ~/.pi/agent/ 中的会话与配置。如果你已经使用 Pi CLI,可以直接复用现有数据,无需迁移;此前没有使用过 Pi CLI 也不影响使用。
Pi Desktop 会先发现并验证用户已经安装的 Node.js/npm、Python、Git、Bash、uv、jq 和 Bun;内置的 rg/fd 保证离线搜索可用。
git clone https://github.com/DLYZZT/pi-desktop.git
cd pi-desktop
npm ci
npm run dev
Pi Agent Desktop 使用 Electron 三进程模型,将高权限桌面能力、Agent 运行时和 UI 隔离开来。
flowchart LR
Main["Electron Main<br/>窗口 · 托盘 · 协议 · Host 监督"]
Host["Agent Host / utilityProcess<br/>Pi Agent · 会话 · 文件 · 配置"]
UI["Renderer<br/>React 19 · Vite"]
Browser["Main-owned WebContentsView<br/>远程网页 · Profile · 网络策略"]
Data["~/.pi/agent/<br/>会话 · 模型 · 配置"]
Main --> Host
Main --> UI
Main --> Browser
Host -->|"revisioned Browser RPC"| Main
UI <-->|"Typed MessagePort IPC"| Host
Host <--> Data
utilityProcess 中运行 Pi Coding Agent,处理会话、文件、配置与扩展WebContentsView,不获得应用 preload、Node 或主 Renderer bridge~/.pi/agent/| 命令 | 说明 |
|---|---|
npm run dev |
启动 Vite、主进程构建监听与 Electron |
npm run typecheck |
执行 TypeScript 类型检查 |
npm run test |
运行自动化测试套件 |
npm run check:contract |
检查 API 方法与 Host handler 覆盖关系 |
npm run smoke |
运行 Electron 冒烟测试 |
npm run test:browser-electron |
运行本地 Browser Electron 集成测试 |
npm run verify |
执行提交前的完整质量检查 |
npm run build |
构建 main、preload 与 renderer |
npm run pack |
生成未封装的应用目录 |
npm run dist |
生成当前平台配置的全部架构安装包 |
npm run dist:mac:signed |
生成当前 Mac 架构的 Developer ID 签名包 |
npm run dist:mac:notarized |
生成签名并经 Apple 公证的 macOS 包 |
src/
├── contract/ # IPC 类型契约与 RPC 层
├── main/ # Electron 主进程
├── preload/ # 安全桥接接口
├── agent-host/ # Agent、会话、文件、配置与 watcher
├── renderer/ # React 桌面界面
└── shared/ # 可测试的纯函数与共享模块
欢迎通过 Issues 提交问题或建议,也欢迎直接发起 Pull Request。提交代码前请至少运行:
npm run verify
v* tag release workflowv* tag 双架构签名、公证与正式 Release 端到端验收Pi Agent Desktop 是 Pi Coding Agent 的桌面工作台,继续使用 ~/.pi/agent/ 中的会话和配置,因此可以与 CLI 配合使用。
Plugins 继续通过 Pi 的包管理器与运行时加载。仅适用于终端 TUI 的扩展接口(例如自定义终端组件或原始按键监听)无法在桌面 Renderer 中等价呈现;应用会显示明确的兼容性提示,不会静默忽略。