# hax: A Minimalist C-Based Coding Agent That Lives in Your Terminal

Original title: Hax – a minimalist, terminal-native coding agent written in C

> Hacker News story 49273175 · language: en · submitted 2026-08-12
> Web version: https://zeli.app/story/49273175
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 110 · by [OleksandrC](<https://news.ycombinator.com/user?id=OleksandrC>) · 💬 35
[original](<https://usehax.dev/>) · [HN discussion](<https://news.ycombinator.com/item?id=49273175>)

## Summary

hax is a single native C binary that starts instantly and uses only a few MB of RAM, leaving more memory for local LLMs. It auto-discovers model and runtime capabilities, supports OpenAI, Anthropic, Codex, OpenRouter, and llama.cpp, and respects your terminal by streaming Markdown and tool output without messing with scrollback. With XDG paths, plain-text configs, and subprocess composition, it's a well-behaved Unix tool for developers who want an inspectable, resource-conscious agent.

## Key quote

> If you want MCP marketplaces, a plugin runtime, IDE panels, or per-command permission prompts, other agents build exactly that — hax deliberately doesn't, and docs/philosophy.md explains each omission and the pattern that covers the need.

## HN discussion (35 comments)

### [losvedir](<https://news.ycombinator.com/item?id=49278026>)

> Something about having a very fast, very small harness written in C only to drive LLMs amuses me. Like putting a big ass spoiler on a minivan or something.

### [mark_l_watson](<https://news.ycombinator.com/item?id=49280943>)

> I didn't try Hax but I hope someone who has can answer a question: does it support suspending current operation if user hits ESC key?
>
> EDIT: I just looked at interrupt.c in the github repo: handles user interrupts. I trashed my Common Lisp harness because I had problems handling interrupts in a portable way. I did better with Racket. I am traveling on vacation without a computer, will try Hax when I get home.

### [abawany](<https://news.ycombinator.com/item?id=49277278>)

> I just installed it via homebrew on macos and used the anthropic-compatible custom provider option to configure it to use with deepseek-flash and then used this setup to build a quick rust project that I had been deferring for months - total cost: 1 us cent and under 10 minutes total for setup and etc. Thank you for making such a lean and clean option.

### [Bleaphar](<https://news.ycombinator.com/item?id=49275855>)

> Would love to hear more about the decision to create the terminal in C? Also what did you use to record your demo video? It looks awesome!

### [all2](<https://news.ycombinator.com/item?id=49276291>)

> Note to be confused with Haxe: https://haxe.org/

---

## Cite

- Page: https://zeli.app/story/49273175
- Date: 2026-08-12
- Source: usehax.dev (https://usehax.dev/)
- Hacker News: https://news.ycombinator.com/item?id=49273175

## Other languages

- zh: https://zeli.app/zh/story/49273175 · markdown: https://zeli.app/zh/story/49273175.md
- ja: https://zeli.app/ja/story/49273175 · markdown: https://zeli.app/ja/story/49273175.md
- ko: https://zeli.app/ko/story/49273175 · markdown: https://zeli.app/ko/story/49273175.md
