Commit Graph
79 Commits
Author SHA1 Message Date
hermes cd52d409b2 Merge main into context-window: mask cap (#117) moves into ContextWindow
ci / check (push) Canceled after 0s
ci / check (pull_request) Canceled after 0s
2026-10-02 15:04:41 +00:00
hermes 1b63c27a52 Merge pull request 'Masking: start at min(compact_at/3, 60k) tokens' (#117) from mask-abs-threshold into main
ci / check (push) Canceled after 0s
2026-10-02 15:00:49 +00:00
hermes 8dd6ce833b mask: start masking at min(compact_at/3, 60k) tokens
ci / check (push) Canceled after 0s
ci / check (pull_request) Canceled after 0s
2026-10-02 14:59:18 +00:00
hermes 3070029c9e cargo fmt
ci / check (push) Canceled after 0s
ci / check (pull_request) Canceled after 0s
2026-10-02 14:41:05 +00:00
johannes 8f4b1f1729 Deepen context-window management into ContextWindow
ci / check (push) Canceled after 0s
ci / check (pull_request) Canceled after 0s
Token counting, the compaction trigger and the masking schedule lived in
Agent's private fields plus mask.rs, compact.rs, stats.rs and the TUI.
Move them behind one module with view/record/reset/tokens, so the
reset-together invariant and the mask-boundary rule have one owner.

- Agent holds a ContextWindow instead of compact_at/ctx/mask_boundary
- TUI shows Agent::context_tokens() (real reading + estimate), matching
  the compaction trigger instead of the bytes/4 guess
- stats replay goes through ContextWindow::masked
- ContextMeter/estimate_tokens move into the module; mask is crate-private
- tests at the ContextWindow interface replace the meter unit test
2026-10-02 16:36:50 +02:00
hermes 56f23e798b Merge pull request 'Scrolling: mouse wheel and keyboard, pinned view while streaming' (#115) from scrolling into main
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
2026-10-02 14:32:26 +00:00
hermes f0a0111343 Scrolling: mouse wheel per region, page/line/top/bottom keys, pinned view while streaming
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
2026-10-02 14:31:55 +00:00
hermes c15783129d Merge pull request 'Subagent overview and detail view (ctrl-g)' (#114) from subagent-panel into main
ci / check (push) Canceled after 0s
2026-10-02 14:17:06 +00:00
hermes 508a6839fb Subagent overview: list above footer, ctrl-g detail view, steer/continue agents, abort per agent, ctrl-s to main chat
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
2026-10-02 14:14:01 +00:00
hermes 1671498cd9 Merge pull request 'Subagents: task tool with explore and general' (#113) from subagents into main
ci / check (push) Canceled after 0s
2026-10-02 13:57:54 +00: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
hermes 6b980591ed Merge pull request 'ask_user tool and choose popup' (#112) from ask-user-tool into main
ci / check (push) Canceled after 0s
2026-10-02 11:26:05 +00:00
hermes 295b54adb7 choose popup: 60% width (60-140), vertically centered, padding, wrapped descriptions, help row inside
ci / check (push) Canceled after 0s
ci / check (pull_request) Canceled after 0s
2026-10-02 11:24:44 +00:00
hermes c7341d3085 ask_user tool + choose popup: model asks the user to pick options or type an answer
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
2026-10-02 11:18:22 +00:00
hermes 90b7aa9654 Merge pull request 'Footer: two rows on wide terminals, lens segment, hint keeps usage' (#111) from footer-two-rows into main
ci / check (push) Canceled after 0s
2026-10-02 11:10:04 +00:00
hermes 9ed3140bb9 Footer: nerd font clock (U+F017) for reset countdown; ASCII theme keeps 'in '
ci / check (push) Canceled after 0s
ci / check (pull_request) Canceled after 0s
2026-10-02 11:07:19 +00:00
hermes caa60c65e8 Footer: reset countdown as 'in 2h13m' (↻ renders small in many fonts)
ci / check (push) Canceled after 0s
ci / check (pull_request) Canceled after 0s
2026-10-02 11:05:53 +00:00
hermes 9b935d2fab Footer: two rows on wide terminals with lens segment; hint keeps usage
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
2026-10-02 10:58:30 +00:00
hermes 4b343aa786 Merge pull request 'Masking: move the boundary rarely (context > compact_at/3), record it per request' (#110) from mask-hysteresis into main
ci / check (push) Canceled after 0s
2026-10-01 22:36:23 +00:00
hermes c74b45cbeb mask: boundary kept in Agent, advances only when context > compact_at/3; recorded per request, stats replays it
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
2026-10-01 22:35:47 +00:00
hermes 166d9fec87 Merge pull request 'hx stats: cache-write outliers and assistant-side bytes' (#109) from stats-writes into main
ci / check (push) Canceled after 0s
2026-10-01 22:28:32 +00:00
hermes 42384cf5e4 stats: list requests with large cache writes, report assistant-side bytes
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
2026-10-01 22:27:55 +00:00
hermes b0bfd5f714 Merge pull request 'hx stats: replay request masking (resent as sent vs unmasked)' (#108) from stats-masked into main
ci / check (push) Canceled after 0s
2026-10-01 22:24:05 +00:00
hermes ca72c890a8 stats: replay request masking so 'resent' reflects what was actually sent
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
2026-10-01 22:23:09 +00:00
hermes d0392aef34 Merge pull request 'Deepen Agent, compaction, switching and TUI modules' (#107) from refactor/deepen-agent-modules into main
ci / check (push) Canceled after 0s
2026-10-01 22:15:49 +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 fe308e0f36 Merge pull request 'Token phase 3: mask old tool results, compact inside one long tool loop' (#106) from token-mask into main
ci / check (push) Canceled after 0s
2026-10-01 21:49:24 +00:00
hermes 80c0f83a68 tokens: mask old large tool results in requests; compact inside a single long tool loop
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
2026-10-01 21:45:17 +00:00
hermes 3943243024 Merge pull request 'Move flycheck wait into lsp::Client' (#105) from lsp-client-diagnostics into main
ci / check (push) Canceled after 0s
2026-10-01 21:42:16 +00:00
johannes 70d8bc2aaf Move flycheck wait into lsp::Client
ci / check (push) Canceled after 0s
ci / check (pull_request) Canceled after 0s
Client::diagnostics_after now owns the rust-analyzer on-save check protocol
(flycheck begin/end, publish after end, busy, settle). The counters are
private, and Manager::diagnostics only picks the server and passes the sync
step. Reader state is one Arc<Shared> instead of eight cloned Arcs.

Adds a fake LSP server and a manager test that fails if the first empty
publish after a change is taken as the result.
2026-10-01 23:32:14 +02:00
hermes a63a9e4f05 Merge pull request 'Skills index: root path once per directory instead of per line' (#104) from token-skill-paths into main
ci / check (push) Canceled after 0s
2026-10-01 21:31:39 +00:00
hermes 4c5a0152ce skills index: state skill root once per directory, drop per-line paths
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
2026-10-01 21:31:03 +00:00
hermes f1a83e6cb1 Merge pull request 'Skills index: cap descriptions at 100 chars; hx prefix lists skills per skill' (#103) from token-skills-index into main
ci / check (push) Canceled after 0s
2026-10-01 21:22:06 +00:00
hermes 2ed6fbc028 skills index: cap descriptions at 100 chars; hx prefix lists skills individually
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
2026-10-01 21:21:34 +00:00
hermes a179bebbc0 Merge pull request 'hx prefix: token breakdown of the fixed request prefix' (#102) from token-prefix into main
ci / check (push) Canceled after 0s
2026-10-01 21:14:09 +00:00
hermes 9db2e05c0e hx prefix: token breakdown of system prompt parts, tool schemas, MCP index
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
2026-10-01 21:12:17 +00:00
hermes e54b6fd4ce Merge pull request 'Token phase 2: cache breakpoints, real-usage compact trigger, smaller tool limits' (#101) from token-phase2 into main
ci / check (push) Canceled after 0s
2026-10-01 21:09:29 +00:00
hermes c5420026b8 tokens: rolling cache breakpoints, real-usage compact trigger, smaller read/bash limits with head+tail
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
2026-10-01 21:00:47 +00:00
hermes d332cf4cc4 Merge pull request 'Token measurement: usage per request in session + hx stats' (#100) from token-stats into main
ci / check (push) Canceled after 0s
2026-10-01 20:55:12 +00:00
hermes 1c69c8ed34 stats: log per-request usage in session, add 'hx stats <session>' token report
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
2026-10-01 20:52:42 +00:00
hermes 34dea8f9fd Merge pull request 'Skills: load modes (auto/always/manual)' (#99) from skills-on-demand into main
ci / check (push) Canceled after 0s
2026-10-01 14:27:31 +00:00
hermes 8712e5f9ca skills: load: auto|always|manual frontmatter (on-demand vs inlined vs command-only)
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
2026-10-01 14:27:28 +00:00
hermes fe40594deb Merge pull request 'Model switch also switches provider' (#98) from model-provider into main
ci / check (push) Canceled after 0s
2026-10-01 12:15:41 +00: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 658ada46f7 Merge pull request 'M11: model catalog, context window, subscription usage' (#96) from models into main
ci / check (push) Canceled after 0s
2026-10-01 11:53:33 +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 3fee36d788 Merge pull request 'M10: sessions picker, /new, hx -r, titles' (#92) from m10-sessions into main
ci / check (push) Canceled after 0s
2026-10-01 09:36:00 +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 1e87857a34 Merge pull request 'M9: lens block, ctrl-p picker, /resume, wide panel' (#85) from m9-rest into main
ci / check (push) Canceled after 0s
2026-10-01 09:17:13 +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