41 Commits
Author SHA1 Message Date
johannesandClaude Sonnet 5.5 a94632ea3d chore: delete code comments, add ratchet lint and ADRs
Classify every comment as tautology, stale, excuse or decision record.
Tautology/stale/excuse comments are deleted (excuses filed as issues
#196-#236), decisions moved to docs/adr/0001-0034.

- scripts/lint-comments.sh + .comment-baseline: per-file comment count
  may only go down; wired into tests/all.sh
- .claude/skills/delete-comment: repeatable audit workflow
- cargo fmt applied to touched crates

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 13:37:32 +01:00
johannesandClaude Sonnet 5.5 aec92ff5a5 hx serve --acp: headless Agent Client Protocol mode
build / version (push) Successful in 13s
build / build (aarch64-apple-darwin) (push) Successful in 6m46s
build / build (x86_64-unknown-linux-musl) (push) Successful in 5m58s
build / release (push) Successful in 28s
JSON-RPC on stdio with permission requests, hx/step|message|interrupt|compact
in and hx/step_result|intent|edit|usage|decision|plan out. Sessions persist by
id. Limits are soft: a limit stop is blocked with reason "limit" and no catch;
catch is only a validated name from the step's catches list.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 13:14:32 +01:00
hermes ddf8bcd92c claude_cli: hx stats lists claude's tools; unknown permissions value denies in -p 2026-11-14 10:34:49 +00:00
hermes 6978aad27a claude_cli: tool calls on the event bus, extensions can block, permissions deny/extensions-only (#182) 2026-11-13 19:38:29 +00:00
hermes b8fc96a3d2 auto model: per-prompt model/effort routing across providers, @override per turn 2026-10-26 21:52:50 +00:00
hermes d69c56b3c8 Merge pull request 'claude_cli: codemode for claude' (#167) from feat/claude-cli-codemode into main 2026-10-16 20:44:24 +00:00
hermes fdeaaf5cf2 claude_cli: offer codemode to claude (codemode = true), hx tools inside it ask via the permission bridge 2026-10-16 20:42:10 +00:00
hermes 15b037ceca claude_cli: show the command/path of each claude tool call 2026-10-16 20:36:47 +00:00
hermes 0032a5a952 claude_cli: permission prompts via --permission-prompt-tool, bridged to the hx TUI 2026-10-16 20:23:35 +00:00
hermes 769effc8b0 ai: claude_cli provider (official claude binary, subscription billing) 2026-10-16 20:09:32 +00:00
hermes 59d7ed8252 test: subagents get AGENTS.md in system prompt; general prompt asks for a check after edits
Closes #156
2026-10-15 20:34:53 +00:00
hermes 8e7c0bb89a Optional sandbox for bash, LSP servers and lens/test runners (bwrap, seatbelt) 2026-10-12 16:09:40 +00:00
hermes 255819cbbc Merge pull request 'TUI redesign: Catppuccin Mocha + new layout' (#144) from feat/tui-design into main 2026-10-09 19:22:48 +00:00
hermes 79bd3b8ea7 tui: new design (Catppuccin Mocha, header, framed input, 3-col popup, sessions picker, /lsp panel) 2026-10-09 14:51:00 +00:00
hermes 199f337662 skills: skill tool, YAML frontmatter, disable-model-invocation, argument-hint 2026-10-09 14:49:38 +00:00
hermes 789ee75a27 herdr support: report idle/working/blocked, resume command, release 2026-10-06 15:15:22 +00:00
hermes c29df05e0b Merge pull request 'Guide models to read-only inspection' (#133) from feat/inspect-guidelines into main 2026-10-06 13:14:44 +00:00
hermes 37dfbc3102 Guide models to read-only inspection: prompt rules, pipes and find in the read-only gate, approval stats 2026-10-06 13:14:09 +00:00
hermes b4e9f4da73 fmt; smoke test expects edits option on write prompt 2026-10-06 12:50:02 +00:00
hermes b5db6ce80a permissions: reads and read-only bash run free; secrets and writes ask
ci / check (push) Canceled after 0s
ci / check (pull_request) Canceled after 0s
2026-10-03 22:03:42 +00:00
hermes cafdaaae5d input: shift-enter newline via keyboard protocol, tmux modifyOtherKeys, backslash-enter, wrapping, /keys
ci / check (push) Canceled after 0s
ci / check (pull_request) Canceled after 0s
2026-10-02 23:04:14 +00:00
hermes 23dc8cd36e permissions: --yolo, command-aware allow rules, load allow.json
ci / check (push) Canceled after 0s
ci / check (pull_request) Canceled after 0s
2026-10-02 21:37:49 +00:00
hermes 5fd7044a2f TUI: permission prompt, /diff review, /stats dashboard, lens/context/MCP side panel
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
2026-10-02 23:31:55 +02:00
hermes 359a5058d7 Subagents: task tool (explore on cheap model, general), child sessions, usage roll-up, stats
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
2026-10-02 11:57:59 +00:00
johannes eaa6e22fbd Deepen Agent, compaction, switching and TUI modules
ci / check (push) Canceled after 0s
ci / check (pull_request) Canceled after 0s
- Agent: make session/usage/provider/model/system/max_tokens/compact_at
  private; add set_provider, set_model, replace_session, fork, clear,
  fit_window. Fixes stale context-token reading after resume/new session.
- hx-core::compact: ContextMeter, plan/apply and estimate_tokens split out
  of agent.rs, testable without provider or session.
- hx-core::switch: Switcher shared by TUI and RPC for model/provider
  switches; RPC set_model now also refits the compaction threshold.
- hx-tui: status.rs (footer, /usage as pure functions), popup.rs, and
  Picker::key returning an Act.
- tests/tui_smoke.py: resolve the temp dir (macOS /var symlink) and match
  the resume via the OSC window title instead of split screen text.
2026-10-02 00:10:41 +02:00
hermes ad73e8f1c2 model switch also switches provider (gpt models were sent to the Claude API)
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
2026-10-01 12:15:39 +00:00
hermes 6533dde4ca M11: provider model catalog, per-model context window, subscription usage in footer + /usage
ci / check (push) Canceled after 0s
ci / check (pull_request) Canceled after 0s
2026-10-01 11:53:27 +00:00
hermes 23eb00d920 M10: /new, session listing, /sessions picker, hx -r, session titles, rpc session ops
ci / check (push) Canceled after 0s
ci / check (pull_request) Canceled after 0s
Closes #86, closes #87, closes #88, closes #89, closes #90, closes #91
2026-10-01 09:35:47 +00:00
hermes d7aeaf0bb9 M9: lens block, ctrl-p picker, /resume, wide side panel
ci / check (push) Canceled after 0s
ci / check (pull_request) Canceled after 0s
Closes #78, closes #82, closes #83
2026-10-01 09:16:59 +00:00
hermes b0b22b4061 M9: theme, turn layout, footer, input, activity line
ci / check (push) Canceled after 0s
ci / check (pull_request) Canceled after 0s
Closes #76, closes #77, closes #79, closes #80, closes #81
2026-10-01 08:56:27 +00:00
hermes 1a41e71adc skills: drop ~/.agent/skills; add project .agents/skills
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
2026-10-01 06:37:07 +00:00
hermes 1d1d381516 skills: load ~/.agents/skills; /skills lists skills and searched dirs
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
2026-09-30 22:24:41 +00:00
hermes 65765ce2b3 M8: command registry, skills as slash commands, completion engine + popup, rpc complete
ci / check (push) Canceled after 0s
ci / check (pull_request) Canceled after 0s
Closes #68, closes #69, closes #70, closes #71, closes #72
2026-09-30 22:05:04 +00:00
hermes a01d0cbb5b M7: json + rpc modes, subprocess extensions (closes #52 #53 #54)
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
2026-09-30 21:40:20 +00:00
hermes ee0714d271 lsp tool: offer to install a missing language server
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
2026-09-30 21:10:13 +00:00
hermes 99dc90fd3b M6: native MCP client, lazy index, mcp-serve (closes #42-#51)
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
2026-09-30 15:51:25 +00:00
hermes f4e55c8dd3 M5: affected tests at turn end (closes #35 #36 #37 #38 #39 #40 #41)
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
2026-09-30 15:03:17 +00:00
hermes 1637d9274b 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
2026-09-30 14:13:13 +00:00
hermes 9b8cf48e21 M3: lens LSP diagnostics + lsp tool
ci / check (push) Canceled after 0s
- 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
2026-09-30 10:48:37 +00:00
hermes 89c9833e43 M2: interactive TUI, config, model switching, compaction
ci / check (push) Canceled after 0s
- hx-tui: ratatui app with streaming transcript, markdown-ish rendering, tool call status,
  colored edit diffs, collapsible bash/read output (ctrl-o), scrollback, spinner + footer (provider, model, ctx, tokens)
- editor: multi-line, history, word/line kill, bracketed paste, @file fuzzy tab completion; mentioned files attached
- message queue while agent runs; esc/ctrl-c abort; /model /provider /compact /clear /help /quit; resumed history shown
- hx-core: compaction (summarize older prompts, keep recent verbatim, session rebase keeps full file history),
  auto-compact at threshold; abort only ends current run
- config: ~/.hx/config.toml + project .hx/config.toml (provider, per-provider models, compact_at, max_tokens, system_prompt)
- API-equivalent cost estimate in exit summary
- tests/tui_smoke.py drives the real TUI in a pty against the fake API

Closes #15, closes #16, closes #17, closes #18, closes #19
2026-09-30 10:37:56 +00:00
hermes 21d4d2bb3d M1: agent loop, tools, sessions, context, skills
ci / check (push) Canceled after 0s
- hx-core: Tool trait + registry (schema validation, parallel calls), event bus with Block/Mutate/Inject hooks,
  agent loop (abort, max turns, AgentEnd inject), JSONL session tree (fork, resume, torn-line tolerant),
  AGENTS.md/CLAUDE.md hierarchy, skills index (bodies on demand)
- hx-tools: read (ranges, binary, images, caps), write/edit (exact match, ambiguity, CRLF, diff, read-guard), bash (merged output, timeout kills process group, tail truncation to temp file)
- hx-cli: -p runs full agent loop, --session / --continue, Ctrl-C abort, HX_BASE_URL override
- tests/e2e.sh: scripted fake Anthropic server drives write -> bash -> answer

Closes #6, closes #7, closes #8, closes #9, closes #10, closes #11, closes #12, closes #13, closes #14
2026-09-30 09:36:16 +00:00