← Back to Leaderboard
Zgi-dellav

gi-dellav/zerostack

A lightweight Rust terminal coding agent with configurable permissions and MCP tools.

Engineering Health (Methodology)
A · 83/100
Maintenance Activity
● Updated yesterday
Latest Release
v1.8.6
Commercial License Check
GPL-3.0 · Copyleft Warning

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption17/25
Release Cadence20/20
License Clarity11/20
CLIMCP
Total Stars
★ 1,765
24h Growth
+1
7d Growth
+6
Forks
157

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

gi-dellav/zerostack Star History (2026-05-12 - 2026-12-03) ALL-TIME STAR HISTORY (2026-05 – 2026-12) +1.8k in 205d · avg +9/day 1.9k 932 0 2026-05-12: ★ 12026-05-30: ★ 9982026-06-13: ★ 1,2432026-06-27: ★ 1,3372026-07-11: ★ 1,4202026-07-25: ★ 1,4952026-08-08: ★ 1,5382026-08-22: ★ 1,5652026-09-05: ★ 1,5932026-09-19: ★ 1,6652026-10-03: ★ 1,6842026-10-17: ★ 1,7012026-10-31: ★ 1,7252026-11-13: ★ 1,7502026-11-26: ★ 1,7592026-12-03: ★ 1,765 ★ 1.8k 2026-05 2026-08 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & 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.

Provider routing: OpenRouter is the default; OpenAI-compatible endpoints, Anthropic, Gemini, Ollama, and custom URLs cover hosted and self-hosted setups.
Permission model: Five modes, per-tool glob rules, and session allowlists control when operations require approval.
Protocol roles: Default-enabled MCP adds tools over child-process or streamable HTTP transports; opt-in ACP exposes the agent to editors.
Session continuity: Save, load, and resume sessions with automatic context compaction; opt-in memory injects relevant Markdown notes into new sessions.
Repository workflow: /worktree moves the agent between Git worktrees, and /review runs a one-shot read-only review before restoring the previous prompt.
Shell containment: --sandbox-required refuses bash calls if the backend is unavailable; host networking remains on in the sandbox unless explicitly disabled.
Best For

Terminal-first developers who want to switch model providers, review agent edits, and add selected MCP tools without replacing their editor.

Skip If

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.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

CLIMCP
curl -fsSL https://raw.githubusercontent.com/gi-dellav/zerostack/main/install.sh | bash

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
zerostack ★1.8k+6RustGPL-3.0A lightweight Rust terminal coding agent with configurable permissions and MCP t
openinterpreter69k+65RustApache-2.0A Rust coding CLI with swappable harnesses for low-cost models
goose57.3k+219RustApache-2.0Rust coding agent with MCP tools and local or hosted models, embeddable via ACP
warp66.2k+78RustAGPL-3.0A 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.

Raw .md ↗
curl -sL https://repoforai.com/repo/gi-dellav/zerostack.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

gi-dellav/zerostack Star History on RepoForAI

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?

Use MCP to give the agent additional tools. The default build includes the rmcp client with child-process and streamable HTTP transports. Use ACP when an editor such as Zed needs to drive zerostack as its coding agent. ACP requires an explicit acp build and still needs a configured model provider.

Do I need a GPU, and what should I budget for memory?

A hosted provider runs inference remotely, so the CLI does not need a local GPU for that path. Published client measurements put average RAM at about 16 MB and peak RAM at about 24 MB; don't use those figures to size a model server. For Ollama or self-hosted vLLM, size RAM and VRAM separately for the chosen model, context length, and concurrency.

Can a company self-host or redistribute zerostack?

GPL-3.0-only permits commercial use and internal deployment. If you distribute binaries, including modified ones, comply with the applicable GPL requirements for licensing, notices, and corresponding source. Distribution is distinct from running the tool in-house, and model and API provider terms need a separate review.

How should I evaluate it against Claude Code, Cursor, Windsurf, or GitHub Copilot?

Start with the workflow. If your developers work in the shell and want to choose model providers, inspect tool permissions, and use Git worktrees, zerostack is worth piloting alongside Claude Code. If the decision hinges on inline completion and editor-native interactions, evaluate Cursor, Windsurf, or GitHub Copilot in the target editor; ACP connectivity alone does not establish feature parity.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining gi-dellav/zerostack? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature gi-dellav/zerostack on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

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

Saved in your browser · Export Markdown RFC tables or jump into /vs compare