- seq log: monotonic project/file seq with change source - minimal LSP JSON-RPC client (no lsp-types): framing, requests with timeout, server->client requests, publishDiagnostics with versions, $/progress + rust-analyzer serverStatus busy tracking - manager: built-in table (rust-analyzer, tsserver, pyright, gopls, clangd), outermost-root detection, lazy spawn, idle eviction, crash restart with 2-failure breaker, degradation notes, ContentModified retry, session-start warmup, config overrides/disable - turn-end hook: diagnostics for files changed this turn, errors first, per-file cap, total cap, unchanged findings not repeated, one 'no problems' after a fix; agent_end/off modes - lsp tool: diagnostics, definition, references, hover, symbols - tests: real rust-analyzer + pyright (skipped if absent); tests/lens_e2e.sh proves an introduced type error is surfaced and fixed without prompting Closes #21, closes #22, closes #23, closes #24, closes #25, closes #26
hx
Minimal Rust coding agent. Uses your existing subscriptions, no API keys.
cargo build --release
hx login claude # Claude Pro/Max
hx login codex # ChatGPT Plus/Pro
hx # interactive TUI
hx -p "hello" # one-shot, Claude
hx --provider codex -p "hello" # one-shot, Codex
hx -c # continue last session in this directory
TUI: enter send, alt-enter/ctrl-j newline, esc abort, ctrl-o expand tool output, tab completes @file
(mentioned files are attached), pgup/pgdn scroll. Commands: /model <name>, /provider claude|codex,
/compact, /clear, /quit. Messages typed while the agent works are queued.
Config: ~/.hx/config.toml, overridden per project by .hx/config.toml:
provider = "claude" # or "codex"
claude_model = "claude-sonnet-4-5"
codex_model = "gpt-5-codex"
compact_at = 150000 # auto-compact threshold (estimated tokens)
max_tokens = 16384
# system_prompt = "..." # replaces built-in prompt; AGENTS.md still appended
[lsp]
mode = "turn_end" # turn_end | agent_end | off
disable = ["clangd"]
# [[lsp.servers]] # add or override (same id replaces built-in)
# id = "zls"
# language = "zig"
# extensions = ["zig"]
# command = ["zls"]
# roots = ["build.zig"]
Lens
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.
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.
On a headless box, open the printed URL elsewhere and paste the final redirect URL back into the terminal.