[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-112034":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":13,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":41,"updatedAt":42,"readmeContent":43,"aiSummary":44,"trendingCount":16,"starSnapshotCount":16,"syncStatus":45,"lastSyncTime":46,"discoverSource":47},112034,"pi-gpui","bytesbay\u002Fpi-gpui","bytesbay","A native GUI for the pi coding agent, built with Rust and GPUI. For macOS (Apple silicon) and Linux.","https:\u002F\u002Fpi-gpui.dev",null,"Rust",197,22,1,6,0,5,28,93,77.39,"MIT License",false,"main",true,[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40],"ai-coding-agent","claude-code","codex","coding-agent","desktop-app","gpui","llm","macos","native-app","pi","pi-agent","pi-coding-agent","pi-gui","rust","zed","2026-11-23 15:17:09","2026-11-23 15:10:06","# Pi GPUI\n\nA native GUI for the [pi](https:\u002F\u002Fgithub.com\u002Fearendil-works\u002Fpi) coding agent, written in Rust with [GPUI](https:\u002F\u002Fwww.gpui.rs), the UI framework behind Zed. No Electron, no webview. It runs the pi you already have over RPC, with the same models, extensions, skills and sessions you use in the terminal. For macOS and Linux.\n\nThe app is 16 MB, its window is up in about 0.4 s, and it uses about 75 MB of memory at idle. Electron clients for pi take 0.5 to 1.1 s and 190 to 430 MB. Measured on an M1 Pro with no projects open, counting each app's own processes ([method and script](docs\u002FBENCHMARKS.md)).\n\n[![macOS 13+, Apple silicon](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FmacOS-13%2B%20Apple%20silicon-111?logo=apple&logoColor=white)](#install)\n[![Linux x86_64 and arm64](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLinux-x86__64%20%C2%B7%20arm64%20(beta)-111?logo=linux&logoColor=white)](#install)\n[![MIT](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-111)](LICENSE)\n\n[Website](https:\u002F\u002Fpi-gpui.dev) · [Download](https:\u002F\u002Fgithub.com\u002Fbytesbay\u002Fpi-gpui\u002Freleases\u002Flatest) · [Plugins](docs\u002FPLUGINS.md) · [中文](docs\u002FREADME.zh-CN.md)\n\n![Pi GPUI: sessions working in several projects, pi adding retries to a Rust client, and the change in the Changes panel](docs\u002Fdemo.gif)\n\n\u003Csub>Model replies in this recording are scripted so the take is repeatable. The app, the file edits and the `cargo test` run are real.\u003C\u002Fsub>\n\n## Install\n\n**macOS** (Apple silicon, macOS 13 or newer)\n\n```sh\nbrew install --cask bytesbay\u002Ftap\u002Fpi-gpui\n```\n\nOr download `Pi-GPUI-*.zip` from [Releases](https:\u002F\u002Fgithub.com\u002Fbytesbay\u002Fpi-gpui\u002Freleases) and move the app to Applications. Releases are signed with a Developer ID certificate and notarized by Apple.\n\n**Linux** (x86_64 and arm64, beta)\n\n```sh\ncurl -fsSL https:\u002F\u002Fpi-gpui.dev\u002Finstall.sh | sh\n```\n\nThe [script](site\u002Finstall.sh) puts the app in `~\u002F.local\u002Fpi-gpui.app`, links `~\u002F.local\u002Fbin\u002Fpi-gpui` and adds a launcher entry. It needs no root. Or unpack `pi-gpui-*-linux-*.tar.gz` from [Releases](https:\u002F\u002Fgithub.com\u002Fbytesbay\u002Fpi-gpui\u002Freleases) yourself. It runs on X11 and Wayland and needs glibc 2.35 or newer (Ubuntu 22.04, Debian 12, Fedora 36) and a Vulkan driver. See [Linux](#linux) for what differs from the Mac app.\n\nOn both systems the app updates itself: when a new version is downloaded, \"Restart to update\" appears in the title bar. Windows isn't supported.\n\nNeeds pi 1.4 or newer within pi 1.x. The app finds pi in `PI_EXECUTABLE`, `PATH` or your login shell (so nvm installs work).\n\nTo move a session you started in the terminal into the app, add the `\u002Fgpui` command to pi:\n\n```sh\npi install npm:pi-gpui\n```\n\n`\u002Fgpui` closes that pi and opens the same session in Pi GPUI. Other tools can do the same with a link: `open \"pi-gpui:\u002F\u002Fopen?workspace=\u002Fpath\u002Fto\u002Fproject&session=\u002Fpath\u002Fto\u002Fsession.jsonl\"` (the session is optional). On Linux pass the link to the app: `pi-gpui \"pi-gpui:\u002F\u002Fopen?...\"`, or just a folder: `pi-gpui \u002Fpath\u002Fto\u002Fproject`.\n\n## It runs DOOM\n\nPlugins can draw live views inside tool calls, in any language. [This one](examples\u002Fplugins\u002Fdoom) gives pi a `doom` tool:\n\n![DOOM running inside a pi tool call in Pi GPUI](docs\u002Fdoom.gif)\n\n## Features\n\n- Projects and their pi sessions in a sidebar. Every open session runs its own pi, so switching never stops work.\n- Slash commands: pi's extension commands, prompt templates and skills, plus `\u002Fcompact`, `\u002Ftree`, `\u002Ffork`, `\u002Fclone`, `\u002Fmodel`, `\u002Fnew`, `\u002Fname`, `\u002Fsession`, `\u002Fcopy`, `\u002Fexport`.\n- Side panels like Zed's docks: projects on the left; the project's files (colored by git status) and its git changes in a floating panel on the right. Right-click a panel's tab to move it to the other side; drag a panel's edge to resize it.\n- Session tree with keyboard navigation and branch summaries.\n- Paste or drop files and images into the message field. They show up as chips in the text (hover an image to preview it) and are sent as paths, like in pi's terminal: a pasted image is saved to `$TMPDIR\u002Fpi-clipboard-*.png`, a file gets a temporary link. Images in messages and tool results are shown in the transcript.\n- Fork from any message.\n- Extension questions (`select`, `confirm`, `input`, `editor`) are asked inline in the transcript: pick with a click, digits or arrows, or type your own answer.\n- Plugins in any language: buttons, keybindings and status, tools for pi, and live views inside tool calls. [It runs DOOM](examples\u002Fplugins\u002Fdoom). See [docs\u002FPLUGINS.md](docs\u002FPLUGINS.md).\n- Per-session model and thinking level, without touching pi's defaults.\n- Markdown answers styled after Zed's agent panel, with syntax-highlighted code; all transcript text is selectable.\n- A context ring next to the model: context used and when pi compacts, prompt cache hit rate and expiry, subscription plan limits, and token totals for the session.\n- Compaction shown in the transcript with token counts and the summary.\n- Ayu Dark and Ayu Light themes, following the system's light or dark mode by default, plus your own themes (six colors are enough) and Zed themes.\n- Sessions can be renamed, hidden, closed (⌘W stops their pi, the session stays) or deleted (to the Trash).\n- Updates for pi and its extensions next to the pi version, with versions and whether this app supports the new pi. Applied with pi's own `pi update`, only when you click.\n\n## Keys\n\n| Keys | Action |\n|---|---|\n| `⌘N` | New session |\n| `⌘,` | Settings |\n| `⌘O` | Add project |\n| `⌘1` … `⌘9` | Switch to the n-th open session tab (hold `⌘` to see numbers) |\n| `⌘⇧R` | Reload all open sessions (fresh pi: picks up updated pi, extensions, skills and settings) |\n| `⌘B` \u002F `⌘R` | Show or hide the left \u002F right panel |\n| `⌘⇧T` | Session tree |\n| `⌘⇧C` | Compact the context (also the button next to the context ring) |\n| `⌘⇧M` | Model and thinking level |\n| `⌘⇧E` | Expand or collapse step details |\n| `↩` \u002F `⇧↩` | Send \u002F new line (sending while pi works steers it) |\n| `Esc` | Stop the run |\n| `\u002F` | Command menu |\n\nIn the tree: `↑↓` move, `←→` jump between branches, `↩` go there, `⌥↩` go there and summarize the branch you leave, `⌘↩` fork from your message.\n\nOn Linux `⌘` is `Ctrl` and `⌥` is `Alt`, with one exception: compact is `Ctrl+Alt+C`, because `Ctrl+Shift+C` copies the selection as it does in a terminal.\n\n## Settings\n\n`~\u002FLibrary\u002FApplication Support\u002Fpi-gpui\u002Fsettings.json` (on Linux `~\u002F.config\u002Fpi-gpui\u002Fsettings.json`) is the source of truth. The app applies it as soon as it is saved, so you or a pi agent can edit it directly; the Settings page (`⌘,`) writes the same file and keeps its comments.\n\n```jsonc\n{\n  \"theme\": \"system\",              \u002F\u002F or \"Ayu Dark\", \"Ayu Light\", or one of your themes\n  \"ui_font_family\": \".SystemUIFont\",\n  \"agent_font_size\": 14,          \u002F\u002F messages and answers\n  \"buffer_font_family\": \"JetBrains Mono NL\",  \u002F\u002F code; bundled with the app\n  \"buffer_font_size\": 12,\n}\n```\n\n### Themes\n\nA theme is a JSON file in the `themes` folder next to `settings.json`; \"New theme\" on the Settings page creates one and opens it. Six colors are enough, the rest is derived from them. `style` overrides single colors with [Zed's theme keys](https:\u002F\u002Fzed.dev\u002Fdocs\u002Fthemes), and a Zed theme file dropped into the folder works as is. Changes apply on save.\n\n```jsonc\n{\n  \"name\": \"Midnight\",\n  \"background\": \"#14161b\",\n  \"text\": \"#e3e1db\",\n  \"accent\": \"#7aa2f7\",\n  \"added\": \"#9ece6a\",\n  \"removed\": \"#f7768e\",\n  \"warning\": \"#e0af68\",\n  \"style\": { \"panel.background\": \"#101216\", \"syntax\": { \"keyword\": \"#bb9af7\" } },\n}\n```\n\n## Compatibility\n\nThe app has its own version and supports a range of pi versions (`MIN_PI` and `TESTED_PI` in `src\u002Fpi.rs`). pi minors newer than the tested one still run, marked \"not tested yet\". Each release publishes `pi-compat.json`, and the updater only offers releases that support your pi. The app updates pi only when you click.\n\nTree navigation needs something pi's RPC lacks, so the app passes a small extension of its own (`extensions\u002Fpi-gpui-bridge.ts`) to the pi processes it starts. Nothing is installed.\n\n## Linux\n\nThe Linux app is the same code as the Mac app. What differs:\n\n- The window draws its own frame and buttons where the desktop lets it (GNOME, most Wayland compositors); otherwise the window manager's title bar is used.\n- There is no menu bar. Settings, Check for Updates and Quit are under `…` in the title bar.\n- Shortcuts use `Ctrl` (see [Keys](#keys)); text fields follow the usual Linux keys (`Ctrl+←\u002F→` by word, `Home`\u002F`End`, `Ctrl+Backspace`).\n- Settings, projects and plugins live in `~\u002F.config\u002Fpi-gpui` (or `$XDG_CONFIG_HOME\u002Fpi-gpui`).\n- Deleted sessions go to the Trash through `gio`, `kioclient` or `trash-put`; without any of them nothing is deleted.\n- Only one app runs per user: starting `pi-gpui` again, with a folder or a `pi-gpui:\u002F\u002F` link, hands it to the running app.\n- A copy that was not installed into a `pi-gpui.app` folder (a distro package, a `cargo build`) does not update itself.\n\nSo far it was tested on Ubuntu 24.04 on arm64 in a VM (GNOME on X11, and Wayland under Weston). Other desktops, real GPUs and the x86_64 build have not been tried yet, hence beta: please report what you see in [#5](https:\u002F\u002Fgithub.com\u002Fbytesbay\u002Fpi-gpui\u002Fissues\u002F5).\n\n## Known limits\n\n- A pi running in a terminal on the same session is not detected.\n- Extension status lines, widgets and window titles (`setStatus`, `setWidget`, `setTitle`) are not shown yet. Extension questions (`select`, `confirm`, `input`, `editor`) work.\n\n## Development\n\n```sh\ncargo run [-- \u002Fpath\u002Fto\u002Fproject]\ncargo test && cargo clippy --all-targets\nscript\u002Fbundle.sh        # macOS: target\u002Frelease\u002FPi GPUI.app\nscript\u002Fbundle-linux.sh  # Linux: target\u002Frelease\u002Fpi-gpui.app and the release tarball\nscript\u002Frelease.sh       # tag the Cargo.toml version; CI builds and publishes the release\n```\n\nRust 1.90 (pinned). On macOS you need Xcode; shaders compile at startup, so the Metal Toolchain is not needed. On Debian and Ubuntu `script\u002Flinux-deps.sh` installs the libraries the build needs (xkbcommon, Wayland, XCB, fontconfig, freetype); other distributions have the same ones under their own names. Set `PI_GPUI_PRETEND_VERSION=\u003Colder>` to try the update flow against a real release.\n\nWorking on the Linux app from a Mac: [docs\u002FLINUX_VM.md](docs\u002FLINUX_VM.md) describes a local VM with a desktop that can be built in, clicked and screenshotted from the command line.\n\n### Signing\n\nReleases are signed with a Developer ID certificate and notarized, so Gatekeeper opens them without a warning. The release workflow needs these repository secrets:\n\n| Secret | What |\n| --- | --- |\n| `MACOS_CERTIFICATE_P12` | Developer ID Application certificate with its private key, exported as .p12, base64 (`base64 -i cert.p12 \\| pbcopy`) |\n| `MACOS_CERTIFICATE_PASSWORD` | the password set when exporting the .p12 |\n| `APPLE_API_KEY_P8` | App Store Connect API key (.p8 file contents), role Developer |\n| `APPLE_API_KEY_ID` | that key's ID |\n| `APPLE_API_ISSUER_ID` | the Issuer ID shown above the keys list |\n\nTo sign and notarize locally:\n\n```sh\nxcrun notarytool store-credentials pi-gpui   # once; asks for the API key or an app-specific password\nSIGN_IDENTITY=\"Developer ID Application: Your Name (TEAMID)\" script\u002Fbundle.sh\nNOTARY_PROFILE=pi-gpui script\u002Fnotarize.sh\n```\n\nDocs: [principles](docs\u002FAPP_PRINCIPLES.md), [GPUI practices](docs\u002FGPUI_STYLE_GUIDE.md), [plugins](docs\u002FPLUGINS.md).\n\nThe app bundles [JetBrains Mono](https:\u002F\u002Fgithub.com\u002FJetBrains\u002FJetBrainsMono) (SIL Open Font License 1.1, `assets\u002Ffonts\u002FOFL.txt`).\n\n## License\n\nMIT, see [LICENSE](LICENSE).\n","Pi GPUI 是一个为 pi 编程智能体（coding agent）设计的原生桌面图形界面应用。它基于 Rust 和 GPUI 框架开发，不依赖 Electron 或 WebView，通过 RPC 复用用户已安装的 pi 后端（含相同模型、插件、技能与会话），支持 macOS（Apple Silicon）和 Linux（x86_64\u002Farm64）。应用启动快（约0.4秒）、内存占用低（空闲约75MB），提供多项目会话管理、实时文件编辑、插件扩展及内嵌工具调用视图等功能。适用于开发者在本地桌面环境中高效使用 AI 编程代理进行代码生成、调试与工程协作。",2,"2026-11-24 04:42:09","CREATED_QUERY"]