# Claude via the official claude CLI Status: accepted ## Context Anthropic bills OAuth traffic from third-party apps as extra usage, while the official binary keeps using the subscription. In plan mode, claude's `ExitPlanMode` is rejected unless it runs with `--permission-mode plan`. On newer models print mode defaults to omitted thinking (empty thinking text). ## Decision Offer a provider that drives the real `claude -p --output-format stream-json`; claude runs its own agent loop and hx only displays the stream. When hx plan mode is on, pass `--permission-mode plan`. Pass the flag that restores thinking display. ## Consequences Subscription billing is preserved. hx depends on claude's flags and stream format. Code: crates/hx-ai/src/claude_cli.rs (module, plan-mode flag, command args)