2026-11-26 15:48 UTC

Hazzel offers an approval-first, BYOK terminal coding agent

state: watchingheat: lowuncertainty: mediumrelevance: mediumcoding-agent terminal-agent byok selective-undo diff-approvalmukundzha

What is this?

Hazzel is an early-stage, open-source terminal coding agent by mukundzha, presented on GitHub and in a Show HN post in October 2026. Its project describes a roughly 10,000-line Python codebase, approval previews before file writes and most shell commands, automatic checkpoints with selective undo/redo, and commands sandboxed to the project root. It supports eight model backends, including local Ollama, using users’ own provider keys. The project says it is available to install and emphasizes inspectability and user control over autonomous or cloud-based features; these are project claims, with no independent adoption or security validation established by the supplied evidence.

Why it matters

Hazzel is a small, open-source coding agent built around reviewable actions rather than broad autonomy: it previews changes, checkpoints writes for selective undo, and lets users choose among hosted providers or a local model. That makes it a useful example of how coding agents could become more inspectable and less tied to subscriptions or a single vendor. The supplied evidence establishes the project’s features and availability, not independent security validation, broad adoption, or an advantage over larger tools.

Current assessment

The project’s GitHub page describes Hazzel as an early-stage terminal coding agent, about 10,000 lines of Python, available to install and licensed Apache-2.0. It says file writes and most shell commands require approval, writes are checkpointed for selective undo/redo, commands are restricted to the project root, and users can connect eight providers, including local, keyless Ollama. These are maintainer-reported capabilities, not independently audited guarantees. The supplied record shows a Show HN post on Oct. 16, 2026 and a second on Oct. 26; the GitHub page lists recent releases through v1.6.1 and says the project has no autonomous PRs or cloud dashboard. A web result also reports 444 CI tests across Python 3.10–3.13, but this is secondary evidence and does not establish real-world reliability or security. The notable development is an available, deliberately lightweight alternative emphasizing human approval, reversibility, and BYOK/local access; adoption and comparative performance remain unclear.

Measured heat

now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 1034h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

10-14 13:00⭐ origin echo-reconstructedHazzel: terminal coding agent you can read. Every change shown as diff before disk write. Selective undo keeps your edits. BYOK across 8 pro
mukundzha on github (echo) · attributed from hn.story.50104260
—
10-15 14:32first on hacker news · published · +25.6hShow HN: Hazzel, a minimal terminal coding agent with undo and BYOK
mukundjha1
—
10-15 14:32amplified on hacker newshn.story.50104260
mukundjha1
peak 1 · 0 comments · 34% of case engagement
10-26 07:07amplified on hacker news 👑hn.story.50240142
mukundjha1
peak 2 · 0 comments · 69% of case engagement
10-15 15:21our radar first saw it · +26.4hdiscovery anchor: hn.story.50104260—
pace: p23 vs 879 stories at the 720h mark (now 1034h old) — ahead of adap-delegated-authority-protocol-draft (2.0x), behind agentprobe-failure-injection-agent-testing (0.7x)

Evidence (3) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnShow HN: Hazzel, a minimal terminal coding agent with undo and BYOK
Retrieved article excerpt

Open article · Retrieved 2026-10-15T15:31:01.071480+00:00

[Hazzel](https://github.com/mukundzha/hazzel/blob/main/assets/logo.png)

# Hazzel

**A terminal coding agent you can actually read.**  
Bring your own key. No subscription. Every change shown as a diff before it touches disk.

[CI](https://github.com/mukundzha/hazzel/actions/workflows/ci.yml) 
[PyPI](https://pypi.org/project/hazzel/) 
[Downloads](https://pypistats.org/packages/hazzel) 
[Tests](https://github.com/mukundzha/hazzel/actions/workflows/ci.yml) 
[License](https://github.com/mukundzha/hazzel/blob/main/LICENSE) 
[Stars](https://github.com/mukundzha/hazzel/stargazers)

[Hazzel demo — ask it to fix the failing test in test.py: read, approve the edit with y, tests pass](https://github.com/mukundzha/hazzel/blob/main/assets/demo.gif)

> First external PR merged in v1.5.1 — [good first issues are open](https://github.com/mukundzha/hazzel/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22).

**Recently shipped:** `/allow` per-tool permissions + `glob` path lookup — fewer prompts, fewer model calls (1.6.1) · selective undo — `/undo` keeps your edits, `/redo` reapplies (1.6.0) · compat shim removal — `panels.py` gone, same imports (1.5.7) · dead UI stub removal — smaller surface, same terminal (1.5.6) · background jobs `wait`/`clear` — block until done, drop finished (1.5.5) · ask-once approvals — one y/N ends it, never asked twice (1.5.4) · `NO_COLOR` support — piped logs stay plain (#12, @DYNOSuprovo) · v1.5.3 SEO landing page · confirmation prompts accept `yes` — first external contribution (@Gambit-Checkmate, 1.5.1) · `/review` (1.5.0) — [full changelog](https://github.com/mukundzha/hazzel/blob/main/CHANGELOG.md)

## Try it in your project

Every agent claims transparency. Hazzel is ~10k lines of Python you can trace end to end — `agent/core.py` is the whole loop, `tools/` is every action it can take, `safety.py` is the entire undo system — and it stops before every write to show you what's about to happen.

```
uvx hazzel                  # try it — nothing installed, no venv touched (or: pipx run hazzel)
pip install hazzel          # to keep it (or: uv tool install hazzel · pipx install hazzel)
export GROQ_API_KEY="..."   # or skip this and pick a provider inside with /model
cd your-project
hazzel
```

If it fixes one failing test, [star it](https://github.com/mukundzha/hazzel) so the next person finds it too.

```
❯ Fix the failing test in tests/test_agent.py

  ● read_file   tests/test_agent.py
  ● edit_file   src/hazzel/agent/core.py
  ● run_command pytest -q — passed
```

**Things you can say on day one**

```
❯ /review --staged
❯ /commit
❯ what does agent/fastpath.py do — is it just caching?
❯ @screenshot.png make the nav match this
```

No project quiz, no config ceremony — the read-only commands answer instantly, and anything that touches disk stops at a diff first.

## Why it's built this way

Most agents ask you to trust a black box. Hazzel asks you to trust three specific, inspectable mechanisms instead:

- **Every write is a diff you approve, first.** Shell commands too — except a small allowlist of true read-onlys (`ls`, `cat`, `git status`) that skip the queue. And one decision sticks: approve or deny once per turn, never re-prompted for the same call.
- **Every write is checkpointed, automatically.** Prior bytes snapshotted to `~/.config/hazzel/undo/` (200 events, 20 per file) before anything lands. `/undo` reverts only the agent's hunks and keeps edits you made afterwards (`preview` to look first, `--force` for the old blind restore, `/redo` to reapply).
- **Commands are sandboxed to your project root.** `git reset --hard` and `clean` are blocked outright; raw `git commit` is steered into `/commit` with its own diff preview.

You can verify all three claims in about 200 lines: `src/hazzel/safety.py`, `src/hazzel/tools/run_command.py`.

```
flowchart LR
    you["you — prompt, @file, slash command"] --> repl["__main__.py"]
    repl --> loop["agent/core.py — the whole loop"]
    loop --> fast["agent/fastpath.py — zero-LLM answers for reads"]
    loop --> dispatch["agent/dispatch.py"]
    dispatch --> gate["safety.py — approve · sandbox · checkpoint"]
    gate --> tools["tools/ — 16 actions"]
    loop --> llm["providers/ — 8 backends, your key"]
    loop --> term["ui/ package + formatter.py — your terminal"]
```

 Loading

## How it compares

Where Hazzel stands out, measured against the tools people actually compare it to:

| Capability | Hazzel | Aider | Cloud agents |
| --- | --- | --- | --- |
| Price model | free · BYOK | free · BYOK | subscription |
| Local models | Ollama, keyless, zero config | supported, needs env setup | no |
| Readable end to end | ~10k lines | tens of thousands | closed source |
| `/undo` without git | selective snapshots (keeps your edits) | git-commit based | varies |
| MCP client | stdio, zero new deps | — | varies |

Aider is excellent — this is about fit, not superiority.

## What it actually does

| What | In practice |
| --- | --- |
| Understands your repo | Reads, searches, lists, and globs by name (`**/*.py`, `**/*.{json,toml}`). Lookups like "find all test files" answer locally with no model round trip. `@path` pins a file into context; `/init` drafts an `AGENTS.md` map so every session starts oriented. |
| Ships real changes | Diff-preview editing, `/undo` checkpoints, shell with timeouts, `!cmd &` background jobs via `/jobs`, `fetch <url>` for docs, `@image.png` for vision-capable models. |
| Speaks fluent git | `/status` · `/diff --staged` · `/review` · `/commit` (auto-drafted Conventional message) · `/log` — reads run instantly, zero LLM round-trip. |
| Extends without lock-in | Minimal MCP stdio client — standard library only, any server via `.hazzel/mcp.json`. `SKILL.md` skills load on demand. Neither needs Hazzel-specific tooling to author. |
| Shows you the bill | Provider-reported tokens parsed into real dollars, logged locally — not estimated. Live `tokens · $` line every turn; `/usage today|week|month --by-model`, `/budget`. |
| Remembers between sessions | Per-project sessions persist with `/session restore`. `/plan on` explores read-only first; `/think on` buys extended reasoning for hard edits. |
| Works in a pipeline | `hazzel -p "prompt"` runs one turn and exits — pipe a diff in, get a summary out. `--output-format json` + real exit codes for CI. |

Worked transcripts of `/review`, `/commit`, `@image`, background jobs, and `hazzel -p` live in [docs/EXAMPLES.md](https://github.com/mukundzha/hazzel/blob/main/docs/EXAMPLES.md).

## Providers — bring your own key, no subscription

Eight providers, one env var each. Set the one you want and skip the in-app prompt:

| Provider | Env var | Notes |
| --- | --- | --- |
| Groq | `GROQ_API_KEY` | default model runs here |
| OpenAI | `OPENAI_API_KEY` |  |
| Anthropic | `ANTHROPIC_API_KEY` |  |
| Mistral | `MISTRAL_API_KEY` |  |
| Gemini | `GEMINI_API_KEY` |  |
| DeepSeek | `DEEPSEEK_API_KEY` |  |
| OpenRouter | `OPENROUTER_API_KEY` | 100+ models behind one key |
| Ollama | *(none)* | fully local, keyless, `OLLAMA_HOST` override |

Switch anytime with `/model`. Nothing is metered by Hazzel — you pay your provider directly, or nothing at all if you're running local.

## Commands at a glance

| Group | Commands |
| --- | --- |
| Modes | `/model` · `/plan on|off` · `/think on|off` · `/goal [@objective]` · `/allow` |
| Git | `/status` · `/diff [--staged]` · `/review [--staged]` · `/commit` · `/log` |
| Cost | `/usage [today|week|month|--by-model]` · `/budget` |
| Extend | `/mcp [server [tool]]` · `/skills [name]` · `/init` |
| Transcript | `/export` · `/copy` · `/retry` · `/jobs` · `/undo [n]` · `/redo` · `/session restore` · `/clear` |

Type `/` to filter live, `@` to attach a file, `/docs` to page the full guide without leaving the terminal — see [docs/EXAMPLES.md](https://github.com/mukundzha/hazzel/blob/main/docs/EXAMPLES.md) for worked transcripts.

## What it's honest about not being

v1.6.1, early-stage. No autonomous PRs, no cloud dashboard, no session sync across machines. It doesn't replace your editor — it sits in the terminal next to it, and it stays small on purpose.

If you need a heavier, more automated agent, better options exist. If you want to see exactly what's about to happen to your files before it happens, this is built for that.

## Support Hazzel

If Hazzel is useful, the cheapest support costs nothing — use it, report what breaks, or send a PR. It's free and open-source, and it plans to stay both.

Star history  
[Star history for mukundzha/hazzel](https://star-history.com/#mukundzha/hazzel&Date)

## Contributors

[mukundzha](https://github.com/mukundzha)
  
[ronaldsterners](https://github.com/ronaldsterners)
  
[Gambit-Checkmate](https://github.com/Gambit-Checkmate)
  
[DYNOSuprovo](https://github.com/DYNOSuprovo)
  
[HarshRajSinghania](https://github.com/HarshRajSinghania)
  
[binaryCoder-101](https://github.com/binaryCoder-101)
  
[pollychen-lab](https://github.com/pollychen-lab)

every PR lands through the same door — reviewed, CI-verified on four Python versions, credited in the release notes.

## Contributing

Issues and PRs genuinely welcome — [ROADMAP.md](https://github.com/mukundzha/hazzel/blob/main/ROADMAP.md) tracks what's next, [CONTRIBUTING.md](https://github.com/mukundzha/hazzel/blob/main/CONTRIBUTING.md) has the ground rules (small, inspectable, no new deps without asking), and good first issues are labeled as such.

## License

Apache-2.0. See [LICENSE](https://github.com/mukundzha/hazzel/blob/main/LICENSE).

Small tools stay small because people who find them useful say so.  
If Hazzel is now sitting in your terminal next to your editor,
[a star](https://github.com/mukundzha/hazzel) is how the next person finds it too.
mukundjha110
🟧 echo.github ⭐Hazzel: terminal coding agent you can read. Every change shown as diff before disk write. Selective undo keeps your edits. BYOK across 8 promukundzha——
🟧 hnShow HN: Hazzel – A terminal coding harness that stays small on purposemukundjha120

Interpretation history

Decision trace