Show HN:我用 Rust 和 GPUI 为编程 Agent 打造了一款原生应用
英文标题:🔶 Show HN: I built a native app for coding agents with Rust and GPUI
这是一款基于 Rust 与 GPUI 开发的编程 Agent 原生应用,利用 Zed 背后的 GPU 加速框架实现快速启动和流畅浏览多年会话记录,无需 Electron。应用通过各 Agent 最强的原生接口接入,并将不同提供商的数据统一为中立模型。每次提示词都会通过隐藏 Git 引用为工作树创建检查点,使开发者能够同时回滚代码与 Agent 对话。项目、会话和提供商 ID 均保存在本地,不依赖账户、遥测或云端中转服务。
63.4 KB
604.7 KB
639.3 KB
231.2 KB
中文
Rust 和 GPUI——Zed 背后的 GPU 加速框架。即时启动,即使浏览数年的会话记录也能流畅滚动,不使用 Electron。
每个 Agent,一条时间线
每个 Agent 都通过其最强的原生接口连接——stream-json、JSON-RPC、实时事件——并被标准化为统一的、与提供商无关的模型。
每条提示词都会在隐藏的 Git 引用下为你的工作树创建检查点。你可以同时回滚代码和提供商对话,而不只是回滚聊天记录。
⌘N 开始一个会话,⏎ 可在 Agent 工作期间排队追加后续请求,⌘⏎ 可在其生成过程中进行引导,Escape 可停止。所有控制均无需鼠标即可操作。
项目、会话、记录和提供商 ID 都保存在你的磁盘上。无需账户、无需遥测,你与 Agent 之间也没有 Waku 云服务作为中转。
应用已完成签名和公证,并通过 Sparkle 使用二进制增量自动更新。应用能够保持最新,而无需占用你的注意力。
English / 原文
Rust and GPUI — the GPU-accelerated framework behind Zed. Instant launch, smooth scrolling through years of transcript, no Electron.
Every agent, one timeline
Each agent is connected over its strongest native interface — stream-json, JSON-RPC, live events — and normalized into one provider-neutral model.
Every prompt checkpoints your working tree under a hidden git ref. Roll back the code and the provider conversation together, not just the chat log.
⌘N starts a session, ⏎ queues a follow-up while the agent works, ⌘⏎ steers it mid-turn, Escape stops. Every control works without a mouse.
Projects, sessions, transcripts, and provider IDs live on your disk. No account, no telemetry, no Waku cloud between you and your agents.
Signed, notarized, and auto-updated with binary deltas via Sparkle. The app stays fresh without asking for your attention.