blob: 6f08fb9a29146abf79c6ccc61a5cbccdede5a529 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Hexai

Hexai, the AI LSP for the Helix editor and also a simple command line tool to interact with LLMs in general.
It has been coded with AI and human review.
Hexai exposes a simple LLM provider interface. It supports OpenAI, GitHub Copilot, and a local Ollama server. Provider selection and models are configured via a JSON configuration file (overridable via environment variables).
## Configuration
See the full configuration guide in `docs/configuration.md`.
## Usage
### Hexai LSP server
- Run over stdio: `hexai-lsp`
- Flags: `-version`, `-log`
More in `docs/usage-examples.md`.
### Configure in Helix
See `docs/usage-examples.md#configure-in-helix` for a sample `languages.toml` snippet.
## In-editor chat and inline features
- In-editor chat: ask inline by ending a line with `..`, `??`, `!!`, `::`, or `;;`. Hexai inserts
a `>`-prefixed answer below. See `docs/usage-examples.md#in-editor-chat`.
- Inline triggers: strict `;text;` instructions for selection-based actions. See
`docs/usage-examples.md#inline-triggers`.
## Code actions
Overview and details in `docs/usage-examples.md#code-actions`.
## Hexai CLI tool
See `docs/usage-examples.md#cli-usage` and `docs/usage-examples.md#examples` for examples.
<!-- In-editor chat example moved to docs/usage-examples.md#in-editor-chat -->
|