This commit is contained in:
1 parent
9b8cf48e21
commit
1637d9274b
12 files changed
+1339
-65
No files matched your search
@@ -29,6 +29,8 @@ max_tokens = 16384
|
||||
[lsp]
|
||||
mode = "turn_end" # turn_end | agent_end | off
|
||||
disable = ["clangd"]
|
||||
enable_runners = ["clippy"] # opt-in (slow): clippy
|
||||
disable_runners = ["rustfmt"] # any of: ruff, biome, eslint, ast-grep, rustfmt, ruff-format, biome-format
|
||||
# [[lsp.servers]] # add or override (same id replaces built-in)
|
||||
# id = "zls"
|
||||
# language = "zig"
|
||||
@@ -42,7 +44,16 @@ disable = ["clangd"]
|
||||
After every tool round, hx asks the language server about files the agent wrote or edited and appends
|
||||
errors/warnings to the next request, so the model fixes them without being told. Built in:
|
||||
rust-analyzer, typescript-language-server, pyright, gopls, clangd (used when on `PATH`). The `lsp` tool gives
|
||||
the model diagnostics, definition, references, hover and symbols on demand. `/lsp` in the TUI shows server status.
|
||||
the model diagnostics, definition, references, hover and symbols on demand. `/lsp` in the TUI shows server status,
|
||||
missing tools and triage marks.
|
||||
|
||||
Besides the language server, changed files go through (when installed and the project uses them):
|
||||
ruff (Python), biome (with `biome.json`), eslint (with an eslint config), ast-grep (rules in `.hx/rules/*.yml`),
|
||||
and clippy (opt-in). Formatters run only when configured for the project (`rustfmt.toml`, `ruff.toml`, `biome.json`);
|
||||
their changes don't trip the read-guard. Files edited outside hx are picked up at the next turn.
|
||||
|
||||
`diag_mark` lets the model silence a finding (`false_positive` = forever, `defer` = until the file changes),
|
||||
stored in `~/.hx/projects/<project>/triage.json`. Runner timings go to `~/.hx/latency.log`.
|
||||
|
||||
Existing Claude Code (`~/.claude/.credentials.json`) and Codex CLI (`~/.codex/auth.json`) logins are picked up automatically.
|
||||
Credentials are stored in `~/.hx/auth.json` (mode 0600) and refreshed automatically.
|
||||
|
||||
Reference in new issue
Block a user