hexai is a LSP language server for the Helix editor (could be used for other editors, too) for interacting with AI.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-07-15 08:32:24 +03:00
cmd Remove hexai-tmux-edit popup editor feature 2026-07-02 09:38:04 +03:00
docs fix 2026-07-08 16:25:01 +03:00
integrationtests Release v0.33.0: ask dependency UX and start gating 2026-04-13 14:05:38 +03:00
internal Bump version to 0.42.2 2026-07-15 08:32:24 +03:00
prompts Remove hexai-tmux-edit popup editor feature 2026-07-02 09:38:04 +03:00
.gitignore Remove hexai-tmux-edit popup editor feature 2026-07-02 09:38:04 +03:00
.hexaiconfig.toml add hexaiconfig 2026-02-10 09:04:53 +02:00
AGENTS.md add per-project .hexaiconfig.toml config override and lower coverage target to 80% 2026-02-08 10:09:42 +02:00
CLAUDE.md
config.toml.example Remove hexai-tmux-edit popup editor feature 2026-07-02 09:38:04 +03:00
go.mod chore: bump go.mod to Go 1.26.0 2026-05-26 10:59:11 +03:00
go.sum build: bump minimum Go version to 1.24.0 2026-05-26 10:37:49 +03:00
hexai-small.png
hexai.png
Magefile.go Remove hexai-tmux-edit popup editor feature 2026-07-02 09:38:04 +03:00
README.md Remove hexai-tmux-edit popup editor feature 2026-07-02 09:38:04 +03:00

Hexai

HexAI Small Logo

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
    • hexai config opens the global config.toml in $HEXAI_EDITOR or $EDITOR (supports --config for an alternate file)
    • Includes --tps-simulation to preview how fast a model would feel by streaming placeholder text or piped stdin at a chosen token-per-second rate
  • Task management CLI for agent-managed project work
    • Entrypoint: ask (the binary was briefly named do; use ask in scripts and documentation)
    • Auto-scopes to project:<repo> +agent (derived from git repo root)
    • Override the project explicitly with ask proj:<name> <subcommand...>
    • Prefixes can be combined, for example ask proj:<name> na <subcommand...>
    • Never exposes numeric task IDs; human-facing output uses stable alias IDs
    • ask info hides raw UUIDs unless HEXAI_DEBUG is set
    • Machine-friendly output with suppressed decorative text
    • Subcommands: ask add, ask list, ask info, ask annotate, ask start, ask stop, ask done, ask priority, ask tag, ask dep, ask urgency, ask watch, ask projects, ask modify, ask denotate, ask delete, ask fish, ask help
    • Fish shell completions: run ask fish | source in a session, or use a conf.d snippet (see Fish shell completion); installs do not write files under fish/completions/
  • Parallel completions and CLI responses from multiple providers/models for side-by-side comparison
  • MCP server for prompt/runbook management (hexai-mcp-server) - ⚠️ DEPRECATED/EXPERIMENTAL
    • Create, update, delete, and retrieve prompts via MCP protocol
    • Automatic backups on every change (keeps last 10)
    • Compatible with Claude Code CLI, Cursor, and other MCP clients
    • File-based storage with JSONL format (git-friendly)
    • Built-in meta-prompts for interactive prompt creation and management
  • TUI AI code-action runner (hexai-tmux-action) with Bubble Tea
    • Opens as a tmux popup when invoked from Helix :pipe
    • Built-in actions: Rewrite (r), Simplify (i), Document (c), Go tests (t), Fix typos (f), Custom prompt (p), Skip (s)
    • Fully configurable menu via [[tmux_action.menu]] — reorder, remove, rename, rebind hotkeys, embed custom actions directly in main menu
    • All action prompts overridable via [prompts.code_action] in config.toml
    • Custom prompt action opens your editor ($HEXAI_EDITOR or $EDITOR) on a temporary Markdown file
  • Support for Ollama (local + Ollama Cloud), OpenAI, OpenRouter, Anthropic, and You.com (YouSearch Research API) — Ollama Cloud (kimi-k2.6 at https://ollama.com) is the default

Note on hexai-mcp-server: This component is currently experimental and not actively maintained. The author manages prompts through slash commands and meta-commands in the hexai agent system, making the MCP server redundant for its original purpose. The code is preserved for potential future enhancements with different functionality beyond prompt management. See the MCP documentation for reference only.

Documentation

Tmux Status Line

See the tmux integration guide 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: ~/.local/hexai/cache/ (or $XDG_CACHE_HOME/hexai/)
    • stats.json - LLM usage tracking (regenerable)
    • stats.lock - File lock for stats access
  • State & Logs: ~/.local/hexai/state/ (or $XDG_STATE_HOME/state/)
    • hexai-lsp-server.log - LSP server debug logs
    • hexai-mcp-server.log - MCP server debug logs
  • Data: ~/.local/hexai/data/ (or $XDG_DATA_HOME/)
    • prompts/user.jsonl - User-created custom prompts (built-in prompts are compiled into the binary)
  • Temporary Files: /tmp/ (OS temp directory)
    • hexai-*.md - Temporary editor workspaces (auto-deleted)