I rebuilt my AI coding agent workspace in Rust. It uses 1/15 the memory of the Electron app I replaced
说明与用途
Krill 是基于 Rust 的编码代理工作区,使用的内存仅为 Electron 应用 Orca 的 1/15,CPU 仅为 1/27,且会话持久化且资源占用低。
问题
Running multiple coding agents in an Electron app caused excessive memory and CPU usage on a Mac.
结果
Krill uses 1/15 the memory and 1/27 the idle CPU of Orca for 10 terminals, with comparable install size and session persistence.
工作流
- Create a new session with
krill new - Open a repository and spawn worktrees
- Start agents via CLI (Claude Code, Codex, etc.)
- Monitor agent status hooks to queue approvals
- Reconnect to sessions after app restart using
krill attach
证据
Krill uses 1/15 the memory of Orca's memory at 10 terminals
At 10 terminals: Memory (phys_footprint) 85.9 MiB for Krill, 1,274.9 MiB for Orca
Krill took 7.5 s to finish the burst versus Orca's 4.0 s at 20 terminals
The agent workspace I was using did the job, but it was an Electron app, and with a dozen terminals open it had quietly become the heaviest thing on my Mac.
- 记录日期: 2026-10-27T00:11:09.263Z