M4: lens linters, tests, triage, watch, freshness (closes #27 #28 #29 #30 #31 #32 #33 #34)
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s

This commit is contained in:
hermes committed 2026-09-30 14:13:13 +00:00
1 parent 9b8cf48e21
commit 1637d9274b
12 files changed
+1339 -65

No files matched your search

+12 -1
View File
@@ -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.