# Hexai ![HexAI Small Logo](hexai-small.png) Hexai, the AI addition for your Helix Editor (https://helix-editor.com) .. Other editors should work but weren't tested. It has got improved capabilities for Go code understanding (for example, create unit tests from function), but other programming language work as well. ## Features * LSP AI Code auto-completion * LSP AI Code actions * LSP in-editor chat with the LLM * Stand-alone command line tool for LLM interaction * Parallel completions and CLI responses from multiple providers/models for side-by-side comparison * TUI AI code-action runner (`hexai-tmux-action`) with Bubble Tea - Includes a "Custom prompt" action (hotkey `p`) that opens your editor (`$HEXAI_EDITOR` or `$EDITOR`) on a temporary Markdown file. * Tmux popup editor (`hexai-tmux-edit`) for composing longer AI agent prompts - Opens `$EDITOR` in a tmux popup, pre-filled with the current prompt text - Auto-detects Claude Code, Cursor, Amp, Aider (WIP), and other agents - Config-driven: add new agents via `[tmux_edit]` in config.toml * Support for OpenAI, OpenRouter, Anthropic, and Ollama ## Documentation * [Build and install guide](docs/buildandinstall.md) * [Configuration guide](docs/configuration.md) * [Usage examples](docs/usage.md) * [Helix + tmux quickstart](docs/tmux.md) ## Tmux Status Line See the [tmux integration guide](docs/tmux.md) for details on configuring the status line. ## File Locations hexai follows the XDG Base Directory Specification: - **Configuration:** `~/.config/hexai/config.toml` (or `$XDG_CONFIG_HOME/hexai/`) - Global settings, provider credentials, and preferences - Project-specific: `.hexaiconfig.toml` at repository root - **Cache:** `~/.cache/hexai/` (or `$XDG_CACHE_HOME/hexai/`) - `stats.json` - LLM usage tracking (regenerable) - `stats.lock` - File lock for stats access - **State & Logs:** `~/.local/state/hexai/` (or `$XDG_STATE_HOME/hexai/`) - `tmux-edit-history.jsonl` - History of text submitted via tmux popup - `hexai-lsp.log` - LSP server debug logs - `hexai-tmux-edit.log` - Tmux edit debug logs - **Temporary Files:** `/tmp/` (OS temp directory) - `hexai-*.md` - Temporary editor workspaces (auto-deleted)