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.
- 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>
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>
- 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>
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>
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>