Repository navigation
v0.11.1
Release v0.11.1
Release Notes
Overview
This release delivers several key enhancements focused on improving Hexai's usability, reliability, and support for the latest LLM models. The highlights include global LLM usage statistics across all Hexai processes, improved support for OpenAI GPT-5 models (including default temperature and API compatibility), longer timeouts for large model responses, and numerous bug fixes and test coverage improvements. These changes make Hexai more robust for power users and teams, especially those using tmux or working with advanced LLMs.
Features
Global LLM Usage Statistics
-
Unified LLM Stats Across All Processes:
Hexai now tracks and aggregates LLM usage statistics (requests, bytes sent/received, requests per minute) across all binaries (hexai-lsp,hexai, andhexai-tmux-action).
Why it matters:- Provides a single, accurate view of your LLM usage, regardless of which tool or editor you use.
- Stats are persisted on disk and updated atomically, so concurrent sessions (including tmux panes) always show up-to-date, global stats.
- The tmux status line now displays global stats (Σ) for the configured time window, not just per-process stats.
-
Configurable Stats Window:
- The aggregation window (default: 60 minutes) can be set in your
config.tomlunder[stats] window_minutes. - Why: Lets you tune the stats view to your workflow, e.g., for short sprints or longer coding sessions.
- The aggregation window (default: 60 minutes) can be set in your
-
Tmux Status Enhancements:
- The status line now shows global stats, with options to limit width or show only global totals for narrow panes.
- Why: Ensures the tmux status remains readable and informative, even in limited space.
Improvements
GPT-5 Model Support
-
Automatic Temperature Adjustment for GPT-5:
- When using OpenAI GPT-5 models, Hexai now defaults the temperature to
1.0(more creative), overriding the previous coding-friendly default of0.2. - Why: GPT-5 models require a higher temperature for optimal performance; this change ensures better results out-of-the-box.
- When using OpenAI GPT-5 models, Hexai now defaults the temperature to
-
API Compatibility:
- For GPT-5 models, Hexai now uses the correct
max_completion_tokensparameter (instead ofmax_tokens) as required by the latest OpenAI API. - Why: Prevents API errors and ensures compatibility with new model endpoints.
- For GPT-5 models, Hexai now uses the correct
Longer Timeouts for Large Model Responses
- Increased Timeouts:
- Timeouts for LLM requests (completions, code actions, chat) have been increased (e.g., from 10s to 20s, or 15s to 25s in some paths).
- Why: Accommodates slower or larger responses from advanced models like GPT-5, reducing premature timeouts and improving reliability.
CLI and Editor Usability
-
Editor Behavior Fix:
- The CLI now correctly prefers piped stdin when present and only opens the editor when no arguments or stdin are provided.
- Why: Prevents unwanted editor popups and streamlines scripting or piping workflows.
-
Consistent Stats in CLI and Tmux:
- The CLI and tmux-action now update and display global stats after each LLM call, matching the LSP behavior.
- Why: Ensures all interfaces provide the same, up-to-date usage information.
Configuration
-
Stats Window Configuration:
- New
[stats] window_minutesoption inconfig.tomlto control the stats aggregation window. - Why: Gives users control over how much history is reflected in stats and the tmux status.
- New
-
Documentation Updates:
- Updated
README.md,docs/tmux.md, andconfig.toml.exampleto document new stats features and configuration options.
- Updated
Bug Fixes
- OpenAI GPT-5 API Parameter:
- Fixed an issue where GPT-5 models would fail due to the use of the deprecated
max_tokensparameter; now usesmax_completion_tokensas required.
- Fixed an issue where GPT-5 models would fail due to the use of the deprecated
- Editor Launch Logic:
- Fixed a bug where the CLI would open the editor even when stdin was present, improving scripting and automation support.
- Test Coverage:
- Added and improved tests for stats, OpenAI parameter selection, temperature logic, and CLI/editor behavior.
Developer Experience
-
Test Coverage:
- Added comprehensive unit and integration tests for the new stats subsystem, OpenAI parameter logic, and CLI/editor flows.
- Why: Ensures reliability and prevents regressions, especially as LLM APIs evolve.
-
Internal Documentation:
- Added detailed design and migration notes for the global stats system (
MAKEITSO.md).
- Added detailed design and migration notes for the global stats system (
Migration and Breaking Changes
- Stats File Location:
- Hexai now creates a
stats.jsonfile in your XDG cache directory (typically~/.cache/hexai/). No action is required; this is automatic and backward-compatible.
- Hexai now creates a
- Configuration:
- To customize the stats window, add a
[stats] window_minutes = 60section to yourconfig.toml(see the updated example file).
- To customize the stats window, add a
- GPT-5 Model Users:
- If you use GPT-5 models, you may notice more creative outputs due to the higher default temperature. You can override this in your config if needed.
How to Upgrade
- Update Hexai to the latest version as per the installation guide.
- (Optional) Review and update your
config.tomlto set the[stats] window_minutesif you want a different stats window. - (Optional) For tmux users, review the updated
docs/tmux.mdfor new status line options.
Thanks
Thank you to all users and contributors for feedback and testing, especially those using advanced LLM models and tmux workflows. Your input directly shaped these improvements!
For more details, see the updated documentation and configuration examples.