Zerostack – A Unix-inspired coding agent written in pure Rust
gidellav
285 points
99 comments
May 16, 2026
Related Discussions
Found 5 related stories in 95.2ms across 8,303 title embeddings via pgvector HNSW
- Zstandard Across the Stack oddurmagnusson · 14 pts · April 02, 2026 · 63% similar
- Show HN: WolfStack – Proxmox-like server management in a single Rust binary wolfsoftware · 23 pts · March 08, 2026 · 61% similar
- Rust 1.95.0 caution · 11 pts · April 16, 2026 · 57% similar
- An incoherent Rust emschwartz · 160 pts · March 23, 2026 · 56% similar
- Rubish: A Unix shell written in pure Ruby winebarrel · 174 pts · May 23, 2026 · 56% similar
Discussion Highlights (20 comments)
throwa356262
"RAM footprint: ~8MB on an empty session, ~12MB when working" I like this, Claude Code is using multiple gigabytes, which is really annoying on lowend laptops
hparadiz
this is what I've been waiting for a low level language. please no more scripting language TUIs!
sergiotapia
Given agent harnesses affect so much of the performance of models, it would be great to see some kind of benchmark on how this tool performs compared to claude/codex/opencode/pi etc.
hiAndrewQuinn
The codebase was small enough that I handed it over to DeepSeek v4 Flash in Pi to skim through for any risky business, and I didn't find anything concerning. Nice work.
360MustangScope
Funny this comes out today. I was just about to start to write one in rust. It's amazing having opencode slowly leak memory and end up becoming 6gbs on a large project and then get slower and slower. Will check this out! Seems cool!
khimaros
i built something with a similar philosophy here: https://github.com/khimaros/airun -- it is intended to be piped and redirected. it discovers skills, AGENTS and prompt templates from Claude Code, Pi.dev, OpenCode and others. no TUI, but does have a basic tool calling loop $ airun -q -p 'output a shell command for linux to display the current time. output only the command with no other code fencing or prose' | airun -q -s 'review the provided shell command, determine if it is safe, run it only if it is safe, and then summarize the output from the command' --permissions-allow='bash:date *'
frio
Thanks, I've been tooling away in my spare time on my own version of this -- both to get a deeper understanding of agents (everyone suggests writing your own) and to help learn Rust. I'd like to retain `pi`'s configurability though, the ability to self-mutate and generate new tools is incredibly useful, particularly because I don't think any of these things should have access to arbitrary code execution through `bash` (of course, if they have access to, say, `edit` and `cargo run` they still have arbitrary code exec, but...) (so I tend to generate tools on the fly when I encounter something the no-bash agent needs to do).
inciampati
> Integrated Ralph Wiggum loops: looping capabilities for long-horizon tasks Imo, this shouldn't be embedded in the executor layer. Orchestration should handle this.
brcmthrowaway
!RemindMe 6 months
andrew_kwak
Been hearing a lot about Rust lately. I'm curious how Zerostack handles concurrency compared to more traditional Unix tools. Anyone tried it for something CPU-intensive?
usernametaken29
Now make it into an IntelliJ plugin which has proper access to the search index. I’ll pay for it. For Christs sake it’s insane JetBrains hasn’t figured this out yet
parhamn
I (somewhat jokingly) wrote one recently too... https://github.com/pnegahdar/nano in under 200 lines. Repl, sessions, non-interactive, approvals, etc The smarter the models get the less the harnesses matter (outside of devx). Maybe one day I'll run it through swebech.
slopinthebag
I love these. Coding agents aren't very difficult to build, it's a TUI + tools + getting a nice agent loop working. The hardest part seems to be supporting all of the different providers and model quirks. What is interesting is seeing the experimentation: some provide tons of tools, others provide a single python interpreter and have the agent use tools via sandboxed python scripts, others use minimal tools and lean on bash. Personally I want a harness that gives a ton of control to the user to let them steer the LLM, less agent and more augmentation. Maybe I'll have to build it myself. If anyone has ideas, let me know.
theusus
I absolutely like this. Pi becomes sluggish after installing a couple of extensions. I myself was trying to port Pi to Rust but it was consuming too much tokens. Is there any API like Pi so that I can create extensions.
choopachups
dude, im actually in disbelief how long we put up with the pile of shit that is claude code.
noodletheworld
Are agent harnesses the new web framework? Everyone wants to write one, building a new one is easy to start with, but tough to get to “prod ready” and the landscape is littered with failed attempts? Certainly feels like it. This is really good though; works well and at least has a clearly articulated raison d'être.
deagle50
Looks promising, is OpenAI subscription support planned?
joeyguerra
the war of the coding agents has begun.
rvz
As you can see, writing a coding agent in a compiled language makes a ton of sense and gives the benefits of running multiple agents efficiently instead of running into leaks and tools consuming gigabytes of RAM.
mohsen1
This is much needed! Compared to Codex CLI, Claude Code is insanely slow. $ time claude --version 2.1.143 (Claude Code) ________________________________________________________ Executed in 4.39 secs fish external usr time 29.68 millis 0.26 millis 29.41 millis sys time 71.30 millis 1.30 millis 70.00 millis 5 seconds to show me the version number! I'm guessing Claude Code also needs a rewrite in Rust. But from what I saw in the leaked TypeScript code, a line-to-line port will be pretty bad. It requires a new architecture that matches Rust idioms