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

This commit is contained in:
hermes committed 2026-10-02 14:31:55 +00:00
1 parent c15783129d
commit f0a0111343
5 files changed
+344 -34

No files matched your search

+7 -2
View File
@@ -14,7 +14,9 @@ hx -r # pick a session to resume
hx -r parser # resume the session whose title best matches "parser"
```
TUI: `enter` send, `alt-enter`/`ctrl-j` newline, `esc` abort, `ctrl-o` expand tool output, `pgup`/`pgdn` scroll.
TUI: `enter` send, `alt-enter`/`ctrl-j` newline, `esc` abort, `ctrl-o` expand tool output.
Scrolling (chat, side panel, agent view): mouse wheel (3 lines, targets the region under the pointer), `pgup`/`pgdn` half a page, `alt-pgup`/`alt-pgdn` a full page, `alt-↑`/`alt-↓` 3 lines, `ctrl-home`/`ctrl-end` top / back to the live bottom. A scrolled-up view stays put while new text streams in (footer shows `↑N` lines below); reaching the bottom or sending a prompt follows again. The wheel needs mouse capture, which disables plain terminal text selection (use shift-drag): turn it off with `mouse = false` in config or `HX_MOUSE=0`.
`/help` lists commands: builtins (`/model`, `/provider`, `/compact`, `/clear`, `/lsp`, `/mcp`, `/skills`, `/new`, `/sessions`, `/resume`, `/usage`, `/quit`), MCP
prompts (`/server:prompt`) and skills. Typing `/` opens a completion popup for commands and their arguments
(`up`/`down` select, `tab`/`enter` accept, `esc` close); `tab` completes `@file` (mentioned files are
@@ -45,6 +47,7 @@ provider = "claude" # or "codex"
# codex_model = "gpt-5.6-sol" # default: Codex's top-listed model
# compact_at = 900000 # default: 90% of the model's context window
max_tokens = 16384
# mouse = true # wheel scrolling; false keeps terminal text selection
# explore_model = "claude-haiku-4-5" # model for read-only `task` subagents; default: cheapest tier of the provider
# system_prompt = "..." # replaces built-in prompt; AGENTS.md still appended
@@ -65,7 +68,9 @@ tests = "turn_end" # affected tests: turn_end | agent_end | off
## Subagents
The model can call `task(prompt, kind)` to run a subagent with a fresh context and get back only its final answer (cut at 8 KB), so big searches don't fill the main context. `explore` (default) is read-only (`read`, `lsp`, `bash`) on the provider's cheapest model (`explore_model` in config); `general` has the parent's tools and model, and the lens runs on its edits. Up to 3 run in parallel, none can start another, a parent abort stops them. Their sessions are written to `<session>.sub/`; `hx stats` lists them and the footer token counts include them. **Overview:** while any subagent exists, a list sits above the footer (bottom right: spinner/✓, id, kind, task, time, calls, tokens). `ctrl-g` focuses it (`↑↓`, `enter` opens, `esc` closes); the detail view shows that agent's live transcript. Typing there messages the agent: while it runs the text is delivered at its next turn end (like steering the main agent), after it finished it continues that agent's conversation. `ctrl-c` aborts that agent only; `ctrl-s` sends its last answer to the main chat as `[subagent N] …`. NDJSON/RPC carry no per-agent events yet.\n\nA child starts with a cold prompt cache and costs tokens of its own: it saves *main-context* size, not total tokens.
The model can call `task(prompt, kind)` to run a subagent with a fresh context and get back only its final answer (cut at 8 KB), so big searches don't fill the main context. `explore` (default) is read-only (`read`, `lsp`, `bash`) on the provider's cheapest model (`explore_model` in config); `general` has the parent's tools and model, and the lens runs on its edits. Up to 3 run in parallel, none can start another, a parent abort stops them. Their sessions are written to `<session>.sub/`; `hx stats` lists them and the footer token counts include them. **Overview:** while any subagent exists, a list sits above the footer (bottom right: spinner/✓, id, kind, task, time, calls, tokens). `ctrl-g` focuses it (`↑↓`, `enter` opens, `esc` closes); the detail view shows that agent's live transcript. Typing there messages the agent: while it runs the text is delivered at its next turn end (like steering the main agent), after it finished it continues that agent's conversation. `ctrl-c` aborts that agent only; `ctrl-s` sends its last answer to the main chat as `[subagent N] …`. NDJSON/RPC carry no per-agent events yet.
A child starts with a cold prompt cache and costs tokens of its own: it saves *main-context* size, not total tokens.
## Skills