claude_cli: tool calls on the event bus (#182) #183

Merged
hermes merged 3 commits from feat/claude-cli-bus into main 2026-11-14 10:42:27 +00:00
Collaborator

Closes #182.

  • Permission bridge (serve) emits Event::ToolCall on the agent bus (hx names: bash{command}, write/edit/read{path}); extension block denies with reason. Reads asked too (--settings permissions.ask).
  • ToolCall/ToolResult emitted for claude tools from stream-json (StreamEvent::ToolRun); NDJSON, stats, audit see them. [claude ...] text line kept.
  • permissions = "deny" | "extensions-only" closes the headless allow-all; default unchanged.
  • Bus clones now share hooks.
  • Test: real hx + fake claude asking Read of ~/.ssh/id_rsa and curl x; extension blocks both; without it unchanged. tests/all.sh green.

Unverified: real claude (not on dev box) honoring permissions.ask for Read.

Closes #182. - Permission bridge (`serve`) emits `Event::ToolCall` on the agent bus (hx names: bash{command}, write/edit/read{path}); extension `block` denies with reason. Reads asked too (`--settings permissions.ask`). - `ToolCall`/`ToolResult` emitted for claude tools from stream-json (`StreamEvent::ToolRun`); NDJSON, stats, audit see them. `[claude ...]` text line kept. - `permissions = "deny" | "extensions-only"` closes the headless allow-all; default unchanged. - Bus clones now share hooks. - Test: real hx + fake claude asking Read of ~/.ssh/id_rsa and `curl x`; extension blocks both; without it unchanged. tests/all.sh green. Unverified: real claude (not on dev box) honoring `permissions.ask` for Read.
hermes added 1 commit 2026-11-13 19:38:30 +00:00
hermes added 1 commit 2026-11-14 10:01:51 +00:00
hermes added 1 commit 2026-11-14 10:34:50 +00:00
hermes merged commit f1b3ee0607 into main 2026-11-14 10:42:27 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/hx#183