Twigpine/zero

The coding agent that answers to you, your model, your machine, your rules.

What it solves

Zero is an AI coding agent that runs in your local terminal. It solves the problem of wanting an AI assistant to work on your codebase without giving up control or sending your session history to a cloud service. You can inspect a repository, edit files, run commands, use browser/terminal helpers, and keep durable local sessions — all while choosing which model to use and how much permission the agent has.

How it works

Zero runs as a terminal application with two main modes. The interactive TUI (text user interface) lets you chat with the agent, switch models/providers, attach images, draft plans, and manage sessions. The headless zero exec command is scriptable and supports text, JSON, or stream-JSON input/output, isolated git worktrees, spec-first runs, and meaningful exit codes for CI pipelines.

Safety is built in: workspace reads are allowed by default, file writes are limited to the workspace unless you grant extra directories, and shell commands, network access, destructive commands, and elevated actions are permission-gated. Sessions are stored locally on disk, are searchable and resumable, and are never uploaded as telemetry.

Zero is extensible through MCP servers, skills, plugins, hooks, and specialist subagents, all from the same CLI. It also includes local file/search/edit/shell tools, a web_fetch tool for public URLs, and an optional web_search tool when a backend is configured.

Who it’s for

Zero is for developers who want an AI coding assistant that lives in their terminal, works with their preferred model (25+ providers including OpenAI, Anthropic, Gemini, local models via Ollama/LM Studio, and more), and gives them fine-grained control over what the agent can do. It suits both interactive use and automated/scripted workflows, such as running in CI or integrating with other tools.

Highlights

  • Model choice: Use OpenAI, Anthropic, Gemini, Groq, OpenRouter, DeepSeek, Mistral, xAI, Qwen, Kimi, GitHub Models, Ollama, LM Studio, Atomic Chat, or any OpenAI-/Anthropic-compatible endpoint.
  • Permission control: File writes, shell commands, network access, and out-of-workspace writes go through a permission and sandbox policy; unsafe/autonomous modes are explicit opt-ins.
  • Terminal-first: The TUI includes model/provider pickers, image input, slash commands, live plan/tool rendering, scrollback, themes, and resume/fork support.
  • Headless scripting: zero exec supports text/JSON/stream-JSON I/O, isolated worktrees, spec-first runs, and meaningful exit codes for CI.
  • Local sessions: Sessions are stored on disk, searchable, resumable, and never uploaded as telemetry.
  • Extensible: Use MCP servers, skills, plugins, hooks, and specialist subagents from the same CLI.

Related

  • Project
  • Project
  • Project
  • Project
  • Dispatch