Release · Hax · OleksandrChekhovskyi

Hax v0.4.0

What's new in Hax v0.4.0, released Aug 22, 2026 (). Newer: v0.7.0 (Nov 12, 2026)

Release notes

Hax v0.4.0

Added
  • OpenCode Zen and Go providers (opencode-zen, opencode-go): set OPENCODE_API_KEY, choose a model, and hax selects the API it needs. /usage shows OpenCode Go's subscription limits. See docs/providers.md.
  • /login signs 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: /model shows 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_body and extra_headers for 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 hax AUR 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-free providers.llamacpp config block; the user-facing llama.cpp selection remains accepted. Auto-selection tries the built-in providers before compatible and custom providers.
  • /model now uses a version-aware order by default: model families stay together and newer versions appear first. Set sort_models to off to preserve server order.
  • Only presets with a description are offered to the model as subagent roles. Favorite-only presets remain user shortcuts instead of inviting unrequested delegation based on a name alone.
  • /provider shows human-readable display names while keeping the selectable id visible. Unknown or inapplicable provider settings now warn instead of being silently ignored, and /config keeps provider settings out of its general picker.
  • Reasoning effort now applies to Anthropic-compatible models on custom gateways unless an explicit thinking_mode overrides 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_ttl values now warn and fall back safely.
  • Release-tarball builds no longer pick up the version of an unrelated enclosing Git repository.