Why Your AI Coding Assistant Might Be Hogging More RAM Than Your Entire IDE
The Bloated Elephant in the Room
Let's talk about AI coding assistants. You know the ones I'm talking about—that chunky electron-based monstrosity that cheerfully announces it's using 700MB of RAM before it even opens a file. We shrugged and accepted it as the price of progress. But what if I told you there's a better way?
Enter ZeroStack, a minimal coding agent that proves performance and capability aren't mutually exclusive. Built in Rust with around 16,000 lines of code, this thing compiles down to a 26MB binary and typically runs on just 16MB of RAM. Peak usage hits around 24MB.
That's roughly 30 times less memory than your typical JavaScript-based agent.
More Than Just Lean Numbers
ZeroStack isn't just an exercise in resource efficiency—it's genuinely feature-rich. Here's where it shines:
Multi-Provider Flexibility
Stuck to one AI provider? ZeroStack gives you OpenRouter, OpenAI, Anthropic, Gemini, Ollama, and custom provider support out of the box. If your favorite model gets rate-limited or you want to comparison-shop responses, swap providers with a single command.
Permission Modes That Actually Make Sense
Security matters, especially when you're handing an AI agent access to your filesystem. ZeroStack offers five permission tiers from "ask me everything" to "yolo mode" (yes, really). You can also set per-tool glob patterns and session allowlists. Doom-loop detection prevents runaway agents from going infinite on tasks—that's genuinely thoughtful engineering.
The Prompt System Is Chef's Kiss
Ten built-in prompts cover everything from coding mode with TDD workflows to security-focused reviews and brainstorming sessions. Switch between them at runtime without restarting. And since prompts are just Markdown files in a config directory, customizing them is trivial.
The Git Worktree Magic
Here's a feature I genuinely wish more tools had: branch-per-task git worktrees. When you create a worktree, ZeroStack spins up an isolated branch automatically. Finish your task? It merges back, pushes, and cleans up. Messed something up? The --wt-exit command bounces you back to main without merging anything.
For developers who cringe at the thought of switching branches mid-task or dealing with half-baked commits, this workflow is elegant.
Parallel Agents: Workarounds Made Beautiful
Running multiple AI agents on the same repository used to mean manually managing git worktrees, juggling terminal windows, and praying nothing conflicted. ZeroStack's --parallel flag handles this automatically. Each agent gets its own temporary worktree, and ZeroStack handles the merge-and-cleanup lifecycle when agents exit.
This is the kind of feature that signals the developers actually use their own tool.
The Sandbox Question
ZeroStack supports bubblewrap isolation for truly paranoid setups. Install it via your package manager (apt, dnf, pacman—your choice), and your agents operate in a bubble where file system access is strictly controlled.
Not enabled by default, but the option exists for teams with stricter security requirements.
Is It Ready For You?
ZeroStack requires Cargo and git to build from source, though pre-built binaries exist on GitHub. The default installation includes MCP support, iterative loops, git worktree features, and subagents. Optional features like ACP for editor integration (Zed support is mentioned) and persistent memory come as compile-time flags.
The standout command? /prompt autoconfig. Run it after installation, and it walks you through documentation and interactive configuration. No more RTFM fatigue.
The Bottom Line
We're entering an era where "AI-powered" doesn't have to mean "resource-hungry." ZeroStack demonstrates that thoughtful architecture—Rust's memory safety and performance characteristics, sensible defaults, and a focus on the actual workflow—delivers tools that are both powerful and respectful of system resources.
If you've been tolerating bloated agents because you assumed capability required consumption, ZeroStack might be the wake-up call you needed.
Your 700MB RAM budget could probably run ZeroStack three times over.
ZeroStack is open source and available on GitHub. The project maintains an active Matrix chatroom for community questions and discussion.
Read in other languages: