Hax: A Minimalist Terminal-Native Coding Agent in C

✍️ OpenClawRadar📅 Published: August 14, 2026🔗 Source
Ad

Hax is a minimalist, terminal-native coding agent written in C. It ships as a single native binary with minimal dependencies, starts instantly, and uses only a few MB of RAM — leaving more memory for your local LLMs.

Key Features

  • Lightweight by design: A single native C binary with a small dependency set. Starts instantly and uses a very small amount of memory (just a few MBs) — so more RAM is left for your local LLMs.
  • Local models are first-class: Hax auto-discovers the model and runtime capabilities. No custom provider config block needed for the default setup. Example:
  • llama-server -m [model].gguf
    hax --provider llama.cpp
  • Respects your terminal: Streaming Markdown and live tool output are reflowed for display. Only redraws the current streaming line or the input area, preserving native scrollback. Does not take over or mess with your terminal.
  • Inspectable: See exactly what was sent to the model and what it replied in a usable transcript view (Ctrl+T). Optionally collect a detailed wire protocol trace.
  • Use any provider/model: Supports OpenAI (+compatible), Anthropic (+compatible), Codex (via ChatGPT subscription), OpenRouter, llama.cpp, etc.
  • Well-behaved Unix tool: XDG paths, clean stdout in -p one-shot mode with resume hints on stderr, plain-text config and session files, composition via subprocesses instead of plugins.
Ad

Who It's For

Developers who live in the terminal, run local models, audit what their tools do, package software for distros, or run agents where resources are scarce. 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.

Getting Started

Hax runs on Linux and macOS; on Windows, use it under WSL. Install with Homebrew:

brew install oleksandrchekhovskyi/hax/hax

On Arch Linux, hax is in the AUR as hax. On any Linux, download the prebuilt static binary (x86_64 or aarch64) from the latest release and put it on your PATH.

Build from source:

git clone https://github.com/OleksandrChekhovskyi/hax.git
cd hax
scripts/install_deps.sh  # Debian/Ubuntu, Fedora, Arch, openSUSE, Alpine, macOS
make                     # binary at ./build/hax
make install             # optional; may prompt for sudo

Run hax from the project directory you want it to work in:

hax                # interactive REPL
hax -p "list TODOs"  # run one prompt and print the final answer
printf "explain x" | hax -p   # read prompt from stdin
hax -c             # continue the latest session for this directory
hax --resume       # pick a past session for this directory
hax --resume=ID -p "next"   # resume a specific session in one-shot mode

The easiest first run is interactive: start hax, then use /provider to see available providers and choose a model. Hax remembers interactive provider, model, and effort selections. See the README for provider setup and full documentation.

📖 Read the full source: HN AI Agents

Ad

👀 See Also

Slack Message Formatter: Fix Claude's Broken Markdown in Slack
Tools

Slack Message Formatter: Fix Claude's Broken Markdown in Slack

A developer built a skill that converts Claude-generated Markdown to proper Slack formatting, solving issues where bold text shows as asterisks, links appear raw, and tables break. The tool offers both browser preview with rich HTML copy-paste and API webhook support.

OpenClawRadar
Quick-Question Plugin Automates Unity Development with Claude Code
Tools

Quick-Question Plugin Automates Unity Development with Claude Code

A developer has released quick-question, a macOS plugin for Unity 2021.3+ that automates compilation, testing, and cross-model code review when using Claude Code. The tool includes 20 slash commands and uses a 'Tribunal' pattern where Codex and Claude review each other's findings.

OpenClawRadar
Open-Source Job Search Framework Built in Claude Code
Tools

Open-Source Job Search Framework Built in Claude Code

A developer created an open-source job search framework in Claude Code that handles structured self-profiling, automated job portal scraping, fit evaluation, and a drafter-reviewer agent pipeline for tailored applications. The system stops before submission and requires manual review.

OpenClawRadar
MatchKit: Design System Generator for Claude Code Projects
Tools

MatchKit: Design System Generator for Claude Code Projects

MatchKit is a tool that generates complete branded design systems for projects built with Claude Code. It extracts brand colors from uploaded logos and generates customizable components, layouts, and design tokens to avoid the generic look common with AI coding tools.

OpenClawRadar