gi-dellav/zerostack
A lightweight Rust terminal coding agent with configurable permissions and MCP tools.
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
zerostack is a single Rust 2024 crate with no Cargo workspace. src/main.rs dispatches modes, and src/cli.rs defines arguments with clap. src/auth.rs resolves credentials, while src/provider.rs uses type-erased client, model, and agent enums to keep provider-specific implementations out of the main agent lifecycle. The builder in src/agent/ constructs a rig agent and injects tools; the runner streams output as AgentEvents, separately from the TUI's UserEvents.
The built-in tool layer covers file reads, writes, and edits, bash, grep, file and directory discovery, and todos. Two integrations extend different sides of that boundary: rmcp lets zerostack act as an MCP client to child-process or streamable HTTP servers, whereas the opt-in agent-client-protocol dependency enables an ACP JSON-RPC agent server for editors. MCP is a compile-time feature but is enabled by default, alongside Git worktrees, subagents, archmd, status signals, and logging.
Key Capabilities & Differentiators
The same CLI can route work to OpenRouter, OpenAI-compatible endpoints such as vLLM or LiteLLM, Anthropic, Gemini, or Ollama. Custom providers use a configured base URL and a named API-key environment variable. Interactive sessions use a crossterm TUI with Markdown rendering, scrollback, mouse selection and copy, and a reasoning visibility toggle. One-shot prompts and resumable sessions cover shorter and longer jobs respectively; automatic compaction manages context-window pressure during a session.
Runtime prompts such as plan, code, review, and debug shape how the agent approaches a task, while five permission modes and per-tool rules govern what it can do. /review runs a read-only pass and then restores the previous prompt; /worktree switches the agent's Git worktree. Optional builds add Markdown memory across sessions, lifecycle hooks that run external commands, or an advisor model. These features address different needs: a saved transcript resumes a job, while injected memory carries selected context into a new session.
Trade-offs & Limitations
zerostack is a terminal-first alternative to evaluate alongside Claude Code. Its provider configuration, prompt modes, and tool permissions give teams control over the working setup, but teams also have to own credentials, model selection, and permission policy. ACP offers an editor integration path, not a drop-in replacement for the inline workflows a team may choose Cursor, Windsurf, or GitHub Copilot for. Published client figures are a 26 MB binary and roughly 16 MB average RAM with 24 MB peaks; those are not a capacity estimate for local inference or external tool processes.
Permissions, prompts, and the shell sandbox solve different problems. Standard mode already permits in-worktree writes and edits and some shell commands, so use read-only mode when the goal is inspection. Git worktrees separate working copies, not privileges. The sandbox only covers bash commands, retains the host network by default, and is not a security boundary for untrusted code. Hosted APIs reduce inference maintenance but send model inputs to the configured provider; self-hosting shifts that cost to your own infrastructure. GPL-3.0-only is chiefly a planning consideration when redistributing binaries or modified builds.
Hardware & Deployment Guide
Choose a release tarball, Cargo, Homebrew, or Nix. cargo install zerostack gives the standard feature set; pass --features acp,memory,hooks,advisor only if those capabilities are needed. Provider configuration lives under $XDG_DATA_HOME/zerostack/config.yaml (normally ~/.local/share/zerostack/config.yaml). The default OpenRouter route uses OPENROUTER_API_KEY. An Ollama or self-hosted OpenAI-compatible backend can keep inference on infrastructure you control; offline operation still requires locally available models and no tools configured to reach external services.
For optional shell containment, use bubblewrap on Linux or configure zerobox on macOS. Without --sandbox-required, a missing backend leaves bash running unsandboxed with a warning; with it, bash is refused. Home Manager config links are immutable, so interactive config edits can fail, and API keys in Nix-managed TOML can end up in the world-readable store. In v1.8.6, repeated-read denial became opt-in and ACP session loading and TUI span normalization were fixed. Since v1.8.5, the lite builds have shipped with default features, and /loop has been deprecated and left out of the default feature set.
/worktree moves the agent between Git worktrees, and /review runs a one-shot read-only review before restoring the previous prompt.--sandbox-required refuses bash calls if the backend is unavailable; host networking remains on in the sandbox unless explicitly disabled.Terminal-first developers who want to switch model providers, review agent edits, and add selected MCP tools without replacing their editor.
Inline completion is central to your workflow, you need company-wide policy enforcement out of the box, or you need a hardened boundary for running untrusted code.
Quick Start & Installation
curl -fsSL https://raw.githubusercontent.com/gi-dellav/zerostack/main/install.sh | bash
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| zerostack ★ | 1.8k | +6 | Rust | GPL-3.0 | A lightweight Rust terminal coding agent with configurable permissions and MCP t |
| openinterpreter | 69k | +65 | Rust | Apache-2.0 | A Rust coding CLI with swappable harnesses for low-cost models |
| goose | 57.3k | +219 | Rust | Apache-2.0 | Rust coding agent with MCP tools and local or hosted models, embeddable via ACP |
| warp | 66.2k | +78 | Rust | AGPL-3.0 | A Rust terminal workspace for built-in and external coding agents |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/gi-dellav/zerostack.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about zerostack
Should I use MCP or ACP to integrate zerostack?
acp build and still needs a configured model provider.Do I need a GPU, and what should I budget for memory?
Can a company self-host or redistribute zerostack?
How should I evaluate it against Claude Code, Cursor, Windsurf, or GitHub Copilot?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy