跳到正文
r/LocalLLaMA· /u/spongioblast·· 7 小时前AI 评分36

SPOPI:Pi 能自我修改的 UI 与编辑器

SPOPI: UI and editor around Pi that Pi can change itself

AI 导读

SPOPI 是一个围绕 Pi 构建的本地 UI 与编辑器,Pi 可以实时修改它自己的界面。它基于 Tauri 2 与 Rust,UI 用系统 webview 的纯 JavaScript,完全本地离线、无遥测,功能通过 Pi packages 扩展,支持每轮撤销、diff、子智能体、worktree 和手机同网访问,已在 Windows 和 Ubuntu 测试。

正文
SPOPI: UI and editor around Pi that Pi can change itself

Hi all. Happy to share my take on a PI UI that I tried to create in PI's spirit. It's definitely still beta but it works well enough as my daily driver for simple projects and phone chat support. Fully local, fully offline, no telemetry.

Why another Pi GUI? I wanted a simple editor around Pi that Pi itself can change and is fully aware of. Ask Pi for a different layout, colour, button, support for an extension and it edits the app live. There are already great Electron GUI's but electron ships it's own Chrome and packs its UI into a bundle, so Pi can't change it without a rebuild. SPOPI is Tauri 2 with Rust for files, Git and the terminal. The UI is plain JavaScript in the webview your OS already has.

Built in Pi's spirit. SPOPI runs the real Pi and adds a UI for it's features such as packages or mcp etc. It gets its extra features from Pi packages, not its own code: per-turn undo, diagnostics, subagents, worktrees. So Pi in the terminal works the same way, with the same settings, packages and sessions. Start a task in SPOPI and continue the terminal. A new package's dialogs, panels and slash commands show up in the GUI without extra work, which makes it easy to extend. Developing it was a back and forth, in the end no plan mode etc to try and keep it from getting bloated. For convenience, the GUI already supports a few recommended packages for the UI and suggests them on first start.

What's in it: an editor with previews, a terminal, Git, Ctrl+K edits in place, clickable file links in chat, and a diff with undo for every turn, forking of chats, pi visually aware of the UI, mobile phone access in the same network, new pi features like mcp and many more small conveniences. Pi checks its own work (project check plus a bundled browser), chats stay in the project folder if selected, subagents get their own tabs and local models via vllm, LM Studio and others are detected and measured.

Tested on Windows and Ubuntu. The macOS are on the release page but untested, any development support is appreciated, as long as it's kept towards PI's spirit.

Hope you enjoy it as much as I do!

https://github.com/spongioblast/spopi

submitted by /u/spongioblast
[link] [留言]

来源:r/LocalLLaMA · reddit.com