claude_cli provider: use official claude binary #164

Merged
hermes merged 3 commits from feat/claude-cli into main 2026-10-16 20:25:04 +00:00
Collaborator

Adds claude_cli = [] config: Claude runs through the official claude -p --output-format stream-json binary (subscription billing) instead of hx's own OAuth calls, which Anthropic now bills as extra usage (API 400 'Third-party apps now draw from your extra usage'). claude runs its own agent loop; hx streams text/thinking, shows tool names, records usage. hx LSP tools offered via --mcp-config -> hx mcp-serve. Session continued with --resume. Extra args in the list, e.g. claude_cli = ["--permission-mode", "acceptEdits"]. Binary override: HX_CLAUDE_BIN. Tested with tests/fake_claude.py + tests/claude_cli_e2e.sh; real claude not on dev box, needs manual check. Limits: claude's own tools bypass hx sandbox and permission prompts.

Adds `claude_cli = []` config: Claude runs through the official `claude -p --output-format stream-json` binary (subscription billing) instead of hx's own OAuth calls, which Anthropic now bills as extra usage (API 400 'Third-party apps now draw from your extra usage'). claude runs its own agent loop; hx streams text/thinking, shows tool names, records usage. hx LSP tools offered via --mcp-config -> `hx mcp-serve`. Session continued with --resume. Extra args in the list, e.g. claude_cli = ["--permission-mode", "acceptEdits"]. Binary override: HX_CLAUDE_BIN. Tested with tests/fake_claude.py + tests/claude_cli_e2e.sh; real claude not on dev box, needs manual check. Limits: claude's own tools bypass hx sandbox and permission prompts.
hermes added 1 commit 2026-10-16 20:09:45 +00:00
hermes added 1 commit 2026-10-16 20:13:48 +00:00
hermes added 1 commit 2026-10-16 20:23:37 +00:00
hermes merged commit f519374312 into main 2026-10-16 20:25:04 +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#164