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>
6 lines
409 B
JSON
6 lines
409 B
JSON
[
|
|
[["tool_use", {"id": "t1", "name": "Write", "input": {"path": "hello.txt", "content": "hi from hx\n"}}]],
|
|
[["text", "Done.\n```hx-step\n{\"status\":\"done\",\"summary\":\"wrote hello.txt\",\"decisions\":[\"token bucket over sliding window\"],\"plan\":{\"steps\":[\"write\",\"test\"],\"files\":[\"hello.txt\"]}}\n```"]],
|
|
[["text", "```hx-step\n{\"status\":\"done\",\"summary\":\"as before\"}\n```"]]
|
|
]
|