Release notes
Hax v0.4.0
Added
- OpenCode Zen and Go providers (
opencode-zen,opencode-go): setOPENCODE_API_KEY, choose a model, and hax selects the API it needs./usageshows OpenCode Go's subscription limits. See docs/providers.md. /loginsigns in to ChatGPT for the codex provider and keeps the token refreshed, so the codex CLI is no longer required. Existing codex CLI credentials remain a read-only fallback. See docs/providers.md.- llama.cpp multi-model router support:
/modelshows the server catalog and load state, selecting an idle model warms it in the background, and hax never loads a model you did not select. - Custom gateways can route different models through their required APIs. Provider blocks also
accept
extra_bodyandextra_headersfor documented gateway features such as routing rules, service tiers, and additional credentials. See docs/providers.md. - The transcript records the provider, model, and reasoning effort used for each turn, plus a different model or OpenRouter endpoint reported by the response.
- FreeBSD and OpenBSD can now build from source, and Arch Linux users can install the
haxAUR package. Stable releases update both the AUR package and Homebrew tap automatically.
Changed
- Breaking: provider settings now belong to
providers.<id>blocks and no longer leak between endpoints. Several keys and environment variables changed scope; users with advanced provider configuration should revisit docs/providers.md and docs/configuration.md. llama.cpp settings now live under the dot-freeproviders.llamacppconfig block; the user-facingllama.cppselection remains accepted. Auto-selection tries the built-in providers before compatible and custom providers. /modelnow uses a version-aware order by default: model families stay together and newer versions appear first. Setsort_modelstooffto preserve server order.- Only presets with a
descriptionare offered to the model as subagent roles. Favorite-only presets remain user shortcuts instead of inviting unrequested delegation based on a name alone. /providershows human-readable display names while keeping the selectable id visible. Unknown or inapplicable provider settings now warn instead of being silently ignored, and/configkeeps provider settings out of its general picker.- Reasoning effort now applies to Anthropic-compatible models on custom gateways unless an explicit
thinking_modeoverrides it. - Config updates made by hax preserve JSON numbers and booleans instead of rewriting them as strings.
Fixed
- Interrupted and failed responses no longer carry unfinished reasoning into the next request. An interrupt before any answer text or tool call leaves the conversation unchanged, while a stream that ends unexpectedly is retried automatically from a clean attempt.
- Reasoning now continues correctly across turns for affected Kimi, GLM, DeepSeek, and MiniMax models on OpenCode, and OpenAI, Gemini, Kimi, and MiniMax models on OpenRouter.
- Completed tool calls whose arguments arrive all at once, including Grok on OpenCode Go, no longer run with empty arguments.
- Markdown headings, multi-part reasoning summaries, wrapped styling, and consecutive reasoning blocks render consistently in both the live and history views.
- Transcript, history, editor, and file-picker views preserve non-ASCII text and no longer expose terminal escape sequences when used with a plain pager or without a configured locale.
- HTTP traces redact credentials found in request and error bodies, including values loaded from environment variables for provider headers.
- Keyless custom providers with a configured URL are selectable even when they do not expose a model-list endpoint.
- Custom prompt caching defaults to the same 1h TTL as built-in providers; invalid
cache_ttlvalues now warn and fall back safely. - Release-tarball builds no longer pick up the version of an unrelated enclosing Git repository.