Commit Graph
291 Commits
Author SHA1 Message Date
hermes 45d296d911 Memory: /memory list+forget, /remember, memory counts in hx stats 2026-11-30 12:56:25 +00:00
hermes 8705b128ea Memory: byte-budgeted index, memory_search (BM25), auto extraction on compaction/exit 2026-11-30 12:46:16 +00:00
gitea-actions 59bf45f41d ci: bin.json v0.2.9 2026-11-29 10:29:43 +00:00
johannes 2866eeee28 feat: add consultant feature for asking a configured model mid-session
build / version (push) Successful in 17s
build / build (aarch64-apple-darwin) (push) Successful in 4m52s
build / build (x86_64-unknown-linux-musl) (push) Successful in 5m7s
build / release (push) Successful in 37s
Adds a new 'consult' tool that makes single tool-less calls to a configured
consultant model. The feature includes:
- Consult backend (consult.rs) with permission checks
- Call limit (default 5 per session) tracked in State
- Three nudge triggers: before exit_plan, after edits, after 3 failed tools
- Side-panel card showing consultant status and call count
- Config keys: consultant = "<model>" to enable; consultant_max_calls for limit
- All nudges are always on; disable by unsetting the consultant config

The consultant model sees the question and context (passed by itself since the
tool has no context visibility). Token usage counts toward subagent quotas.
v0.2.9
2026-11-29 11:23:39 +01:00
gitea-actions 45f399ed6c ci: bin.json v0.2.8 2026-11-28 13:55:11 +00:00
johannesandClaude Sonnet 5.5 dfec176f43 feat: add --schema, --max-turns and rpc --ask
build / version (push) Successful in 16s
build / build (aarch64-apple-darwin) (push) Successful in 10m46s
build / build (x86_64-unknown-linux-musl) (push) Successful in 10m45s
build / release (push) Successful in 31s
- hx -p --schema <file> validates the final answer against a JSON schema,
  with one retry that includes the validation errors
- max_turns config key and --max-turns cap the main agent's model calls
- hx --mode rpc --ask sends permission requests to the client instead of
  auto-allowing bash/write/edit calls

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
v0.2.8
2026-11-28 14:15:03 +01:00
johannesandClaude Sonnet 5.5 13d914c8c0 style: fix clippy errors and formatting drift
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 14:15:03 +01:00
johannesandClaude Sonnet 5.5 164671a0c5 Subagents: read-only explore, custom agents, background runs, limits
build / version (push) Failing after 6s
build / build (aarch64-apple-darwin) (push) Skipped
build / build (x86_64-unknown-linux-musl) (push) Skipped
build / release (push) Skipped
- explore's bash only runs commands the permit classifier calls read-only
- custom kinds from <hx home>/agents/*.md and .hx/agents/*.md
- task(background=true) + task(wait=[ids]); finished answers handed over at turn end
- answers over 8 KB saved to <session>.sub/NNN-kind.answer.md
- subagent_parallel / subagent_max_turns / subagent_max_tokens / subagent_timeout_secs

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 00:20:15 +01:00
gitea-actions 823110a518 ci: bin.json v0.2.7 2026-11-26 12:47:19 +00:00
hermes c2ce0e3fe4 Merge pull request 'Abort kills claude_cli process group and cancels plan/ask dialogs' (#237) from fix-abort-claude-cli into main
build / version (push) Successful in 11s
build / build (aarch64-apple-darwin) (push) Successful in 4m38s
build / build (x86_64-unknown-linux-musl) (push) Successful in 4m49s
build / release (push) Successful in 29s
v0.2.7
2026-11-25 11:40:49 +00:00
hermes fd0b0a77dc Abort kills claude_cli process group and cancels pending plan/ask dialogs
- claude -p runs in its own process group; dropping the stream kills the group (its Bash children survived kill_on_drop)
- reader task stops when the stream is dropped
- exit_plan/AskUserQuestion race the question against abort
- TUI clears choose/doc/perm popups when a run ends
- fix abort_during_tool_round test (tu() always built echo calls, slow never ran)
2026-11-25 09:07:38 +00:00
gitea-actions 7e428dfb39 ci: bin.json v0.2.6 2026-11-21 18:05:59 +00:00
johannes 6048a037ac Merge branch 'worktree-fix-abort-tools'
build / version (push) Successful in 31s
build / build (aarch64-apple-darwin) (push) Successful in 4m45s
build / build (x86_64-unknown-linux-musl) (push) Successful in 4m56s
build / release (push) Successful in 36s
v0.2.6
2026-11-21 18:59:04 +01:00
johannesandClaude Sonnet 5.5 8f0de9465d fix: abort stops running tool calls and kills bash process group
Race the tool round against abort, check abort before starting tools,
answer pending calls with an aborted result, deny permission prompts on
abort, and kill the bash process group on drop.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 18:58:42 +01:00
johannesandClaude Sonnet 5.5 2166ef535b feat: card-style status side panel (model, models run, LSP, MCP, tests, session log)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 18:58:37 +01:00
gitea-actions 951b69837a ci: bin.json v0.2.5 2026-11-21 12:53:38 +00:00
johannesandClaude Haiku 4.5 ec1c4fb41a feat: cursor movement in ask_user free-form input
build / version (push) Successful in 16s
build / build (aarch64-apple-darwin) (push) Successful in 4m9s
build / build (x86_64-unknown-linux-musl) (push) Successful in 4m8s
build / release (push) Successful in 26s
- Replace bare string with Editor in choose.rs typing input
- Support ←/→ (left/right arrow keys) for cursor movement
- Add Home/End, ctrl-a/ctrl-e, Delete, Up/Down between lines
- Keep ctrl-w (kill word), add ctrl-u (kill line)
- Render cursor marker ▏ at actual position in multi-line answers
- Update help text to mention cursor movement
- Add test: type, move cursor, insert character mid-text

Also: delete 4 comment lines from scripts/lint-comments.sh (tautology).

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
v0.2.5
2026-11-21 13:45:53 +01:00
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
gitea-actions 0545702fe0 ci: bin.json v0.2.4 2026-11-18 18:42:12 +00:00
johannes da31c30fd0 fix: build issues
build / version (push) Successful in 17s
build / build (x86_64-unknown-linux-musl) (push) Successful in 8m28s
build / build (aarch64-apple-darwin) (push) Successful in 8m29s
build / release (push) Successful in 29s
v0.2.4
2026-11-18 19:32:56 +01:00
johannesandClaude Sonnet 5.5 0626692591 codemode: images, live inner-call notices, searchTools, store/load, worker cap
build / version (push) Successful in 17s
build / build (x86_64-unknown-linux-musl) (push) Failing after 6m36s
build / build (aarch64-apple-darwin) (push) Failing after 6m47s
build / release (push) Skipped
- ToolResult carries images; agent attaches them after tool results; read returns real images
- inner codemode calls reported as Info notices via State::nested
- searchTools/ALL_TOOLS/describeNamespace, tools.x.json/.raw, exit()
- store()/load() across calls, max_output_tokens, 2-script concurrency cap
- script ends when settled; unawaited calls cancelled; failure lists calls made

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 19:24:56 +01:00
johannesandClaude Sonnet 5.5 9614ac32ab tui: render assistant markdown with pulldown-cmark (tables, lists, quotes, links)
Tables are drawn as box-drawn grids that wrap to the terminal width,
falling back to header: value lists when too narrow.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 19:24:56 +01:00
Johannes KresnerandClaude Opus 5.5 c2800b9554 ci: build in the cargo-zigbuild image instead of installing the toolchain per run
build / version (push) Successful in 20s
build / build (aarch64-apple-darwin) (push) Failing after 5m1s
build / build (x86_64-unknown-linux-musl) (push) Failing after 4m25s
build / release (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 17:04:43 +01:00
gitea-actions f68a7a2c41 ci: bin.json v0.2.3 2026-11-17 16:01:41 +00:00
johannes 437f8ec501 Merge pull request 'fix: orchestrated runs honour yolo/auto and work inside the sandbox' (#194) from fix/acp-sandbox-permissions into main
build / version (push) Successful in 11s
build / build (aarch64-apple-darwin) (push) Successful in 6m9s
build / build (x86_64-unknown-linux-musl) (push) Successful in 5m56s
build / release (push) Successful in 36s
Reviewed-on: #194
v0.2.3
2026-11-17 15:48:37 +00:00
Johannes KresnerandClaude Opus 5.5 b1ca582d6b fix: orchestrated runs honour yolo/auto and work inside the sandbox
- serve --acp applies --yolo / --auto (or `permissions` in config.toml)
  like the TUI; before, every edit and command went to the orchestrator.
- claude no longer asks to run outside the sandbox. With the sandbox on it
  stays confined; only a stored `claude:unsandboxed` rule or
  --no-claude-sandbox lets it out, and yolo never does.
- The sandbox reads the files the global git config includes and may stat
  $HOME and the directories above allowed paths and includeIf gitdir
  paths (metadata only). git died on both before.
- hx mcp-serve logs a failed start to $TMPDIR/hx-mcp-serve.log; claude
  hides its stderr and only reports "mcp__hx__approve not found".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 16:43:41 +01:00
gitea-actions 37ebf96108 ci: bin.json v0.2.2 2026-11-17 15:16:06 +00:00
johannes 47e184738a Merge pull request 'fix: sandboxed claude can read its macOS login from the keychain' (#193) from fix/claude-sandbox-keychain into main
build / version (push) Successful in 14s
build / build (aarch64-apple-darwin) (push) Successful in 6m18s
build / build (x86_64-unknown-linux-musl) (push) Successful in 5m40s
build / release (push) Successful in 33s
Reviewed-on: #193
v0.2.2
2026-11-17 14:53:04 +00:00
Johannes KresnerandClaude Opus 5.5 800bae97d7 fix: sandboxed claude can read its macOS login from the keychain
The seatbelt profile hides $HOME, and claude_extra did not bring back
~/Library/Keychains. On macOS claude keeps its OAuth login there, so a
sandboxed claude failed with "Not logged in" and the only way out was
to let it run unconfined.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 15:47:25 +01:00
gitea-actions 1f4f8aa081 ci: bin.json v0.2.1 2026-11-15 15:35:31 +00:00
johannes 061649cb07 chore: add depencencies to readme and flake
build / version (push) Successful in 11s
build / build (aarch64-apple-darwin) (push) Successful in 6m14s
build / build (x86_64-unknown-linux-musl) (push) Successful in 5m37s
build / release (push) Successful in 26s
v0.2.0 v0.2.1
2026-11-15 16:13:16 +01:00
gitea-actions 9d8b7dfbd8 ci: bin.json v0.1.16 2026-11-15 11:24:30 +00:00
hermes 179e5cddc7 Merge pull request 'Configurable session storage path' (#192) from sessions-dir into main
build / version (push) Successful in 11s
build / build (aarch64-apple-darwin) (push) Successful in 6m25s
build / build (x86_64-unknown-linux-musl) (push) Successful in 5m27s
build / release (push) Successful in 26s
v0.1.16
2026-11-15 11:12:02 +00:00
hermes 05165d7b8f Configurable session storage path (sessions_dir, HX_SESSIONS_DIR, optional sessions_host) 2026-11-15 11:09:09 +00:00
gitea-actions c06381117b ci: bin.json v0.1.15 2026-11-14 13:32:19 +00:00
hermes 9fbcf4a62c Merge pull request 'Gate task subagents behind permission prompt' (#191) from gate-subagents into main
build / version (push) Successful in 12s
build / build (aarch64-apple-darwin) (push) Successful in 6m57s
build / build (x86_64-unknown-linux-musl) (push) Successful in 5m52s
build / release (push) Successful in 27s
v0.1.15
2026-11-14 13:18:52 +00:00
hermes b84b6ab23a Gate task subagents behind permission prompt; subagents=false / --no-subagents; description: only when asked 2026-11-14 13:18:27 +00:00
gitea-actions 161c33fe6c ci: bin.json v0.1.14 2026-11-14 13:00:12 +00:00
hermes 3f1acd045b Merge pull request 'Abort reaches all running subagents' (#189) from abort-subagents into main
build / version (push) Successful in 10s
build / build (aarch64-apple-darwin) (push) Successful in 6m23s
build / build (x86_64-unknown-linux-musl) (push) Successful in 5m38s
build / release (push) Successful in 30s
v0.1.14
2026-11-14 12:47:30 +00:00
hermes c849463805 Abort reaches all running subagents, incl. background-continued ones 2026-11-14 12:47:10 +00:00
gitea-actions 742f2a124a ci: bin.json v0.1.13 2026-11-14 12:28:16 +00: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>
v0.1.13
2026-11-14 13:14:32 +01:00
gitea-actions 5408db83a9 ci: bin.json v0.1.12 2026-11-14 12:13:26 +00:00
hermes 77e32bbc78 Merge pull request 'router: skip tiers whose window cannot hold the history' (#188) from fix-router-window-fit into main
build / version (push) Successful in 14s
build / build (aarch64-apple-darwin) (push) Successful in 6m30s
build / build (x86_64-unknown-linux-musl) (push) Successful in 5m40s
build / release (push) Successful in 24s
v0.1.12
2026-11-14 12:00:36 +00:00
hermes 79cf5fcda1 agent: abort also ends a hanging request and compaction 2026-11-14 12:00:00 +00:00
gitea-actions 05dbb8e63f ci: bin.json v0.1.11 2026-11-14 11:58:50 +00:00
hermes e119dc2f0d router: skip tiers whose window cannot hold the history 2026-11-14 11:56:17 +00:00
hermes 0184627f27 Merge pull request 'plan mode (/plan, exit_plan shows full plan)' (#187) from feat/plan-mode into main
build / version (push) Successful in 14s
build / build (aarch64-apple-darwin) (push) Successful in 6m52s
build / build (x86_64-unknown-linux-musl) (push) Successful in 5m59s
build / release (push) Successful in 24s
v0.1.11
2026-11-14 11:45:19 +00:00
hermes 5d4cdbf10d plan view: f opens the feedback input directly 2026-11-14 11:36:40 +00:00
hermes 4949a4b558 tui: DocView full-screen scroll view; plan approval opens it instead of printing the plan in chat 2026-11-14 11:36:40 +00:00