zero-harness
Health Pass
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 11 GitHub stars
Code Pass
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
A tiny terminal coding agent (<4k lines of Python) that can fix its own code. Any OpenAI- or Anthropic-compatible model.
zero-harness
A lightweight terminal agent harness designed for efficiency and reliability. Under 4,000 lines of Python, 9 tools, and a ~700-word system prompt. Unnecessary features? ZERO. It can also fix itself.

Setup
Needs macOS, uv, and an OpenAI or Anthropic API key.
uv tool install https://github.com/devinjones812/zero-harness/archive/main.zip
Run zero, pick a provider and model, and paste your key. It's stored locally in ~/.zero/.env.
*No uv? Install it with curl -LsSf https://astral.sh/uv/install.sh | sh, then open a new terminal.
Features
- Self-repair.
/self-improveopens a new zero in its own source with your transcript. It finds the cause, fixes it, and reloads your session. - Any model.
/modellists each provider's newest models. Switch mid-session without losing context. Ask zero to add any OpenAI- or Anthropic-compatible provider, such as Venice. - Light approvals.
auto-reviewlets a cheap reviewer approve routine commands (needs an OpenAI orTYPESAFE_API_KEYkey). To deny, type a reason and the agent changes course. - Live steering. Type while it works. It reads your message before its next step.
- Long sessions. Context is summarized before the window fills. Every session is saved and resumable.
- Web search. Uses OpenAI or Anthropic search, or Parallel for other providers.
- Your rules. Reads
~/.zero/AGENTS.md, which starts as zero's default rules: concise, direct, no flattery. Edit or replace it, or symlink your own to share with other agents. Also reads the project'sAGENTS.mdorCLAUDE.md. - Skills. Put a skill in
~/.zero/skills/<name>/SKILL.md(or symlink one). For browser use, install browser-harness and link its skill; zero then drives your real Chrome, soauto-reviewasks first. - Live prices. Models, prices, and context sizes come from models.dev, refreshed daily.
Tools: bash | job | read_file | edit_file | grep | web_search | web_fetch | todo | subagent
Subagents
A subagent is a separate model run that gets a brief and returns only its answer, so zero's context stays small and work runs in parallel. zero uses them to search and research, or when you ask.
- In the background. Keep talking while they work.
/watch Nfollows one live, and its report arrives like a message. Up to 4 run at once; Ctrl+C with no turn running stops them. - Models. Read-only subagents run on your
fastmodel.smartis for a hard, narrow problem zero is stuck on, and asks you first each time. Name any model ("use Opus 5.5") and zero opens the picker on it. zero confirmsfastandsmarton first use; change them with/model fastor/model smart. - Editing, when you ask. The subagent works in its own git worktree, with your uncommitted changes and
.venvornode_moduleslinked in, on your current model. zero merges its changes with one approval, and/undoreverts them. Edits that overlap yours come back to zero. Needs a git repo. - Costs count toward the session total.
Commands
| Command | What it does |
|---|---|
/model [provider] [model] |
Pick a provider, model, and reasoning level. Tab completes; arrow keys pick. |
/reasoning [level] |
Set reasoning. Levels depend on the model. |
/summarize |
Replace the conversation with a summary to free up context. |
/mode [mode] |
Set approvals: ask, auto-review, auto-max. |
/resume |
Continue a saved session. |
/self-improve <note> |
Have a new zero find and fix what went wrong here. |
/reload |
Restart zero to apply code changes, keeping the conversation. |
/watch [n] |
Follow a subagent live in a new terminal window. |
/new |
Start a new session. |
/undo |
Undo the last turn's file edits. Repeat to go further back. |
/title <title> |
Rename the session. |
/history |
Show everything printed this session in a pager. q returns. |
Ctrl+E opens the input in $EDITOR. End a line with \ for a newline.
Hacking on zero
Clone the repo and run uv tool install --editable .. Code edits apply after /reload. Run tests with uv run pytest. /self-improve needs this install.
- Add a tool: create
src/zero_harness/tools/<name>.pywith aSCHEMAand arun(), then add it toTOOLSintools/registry.py. - Add a provider: see the format at the top of
src/zero_harness/models/registry.py. - Add an API format (beyond OpenAI Responses and Anthropic Messages): add a module to
src/zero_harness/models/.
License
MIT
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found