How long has this been working for you? (Or others).
Since Anthropic doesn't seem to like subscriptions being used in third party harness, do they actually enforce that nowadays?
https://github.com/micw/claude-wrapper-advanced
I wrap their CLI ^^
Edit: CLI in headless mode is an official feature