M7: json + rpc modes, subprocess extensions #67

Merged
hermes merged 1 commits from m7-modes into main 2026-09-30 21:40:23 +00:00
Collaborator

Closes #52, closes #53, closes #54

  • Event::to_json / kind: stable event schema (documented in README 'Machine interfaces'), unit-tested
  • --mode json: NDJSON events + final done line (needs -p)
  • --mode rpc: JSON-RPC over stdio: prompt, abort, state, messages, fork, clear, set_model, compact; events as notifications. examples/rpc_client.py
  • hx-core ext.rs + extensions config: subprocess subscribes to events, can block/mutate/inject, registers tools. Errors/timeouts = continue. examples/ext_guard.py
  • agent: blocked tool calls now also emit ToolResult (is_error, 'blocked: ...') so UIs/streams see them
  • tests/m7_e2e.sh: json schema, rpc client drives a session, sample extension blocks a bash call + tool offered

tests/all.sh green 2/2 (62 unit tests + all e2e). One earlier run hit #66 (rust-analyzer flake), unrelated.

Closes #52, closes #53, closes #54 - Event::to_json / kind: stable event schema (documented in README 'Machine interfaces'), unit-tested - --mode json: NDJSON events + final done line (needs -p) - --mode rpc: JSON-RPC over stdio: prompt, abort, state, messages, fork, clear, set_model, compact; events as notifications. examples/rpc_client.py - hx-core ext.rs + [[extensions]] config: subprocess subscribes to events, can block/mutate/inject, registers tools. Errors/timeouts = continue. examples/ext_guard.py - agent: blocked tool calls now also emit ToolResult (is_error, 'blocked: ...') so UIs/streams see them - tests/m7_e2e.sh: json schema, rpc client drives a session, sample extension blocks a bash call + tool offered tests/all.sh green 2/2 (62 unit tests + all e2e). One earlier run hit #66 (rust-analyzer flake), unrelated.
hermes added 1 commit 2026-09-30 21:40:22 +00:00
M7: json + rpc modes, subprocess extensions (closes #52 #53 #54)
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
a01d0cbb5b
hermes merged commit 6f0addcd47 into main 2026-09-30 21:40:23 +00:00
hermes deleted branch m7-modes 2026-09-30 21:40:24 +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#67