You can reverse engineer Claude Code by intercepting its HTTP traffic. It's pretty fascinating - there are a bunch of ways to do this, I use this one: https://simonwillison.net/2025/Jun/2/claude-trace/

Wow it seems almost designed to burn through tokens.

I wish we had a version that was optimized around token/cost efficiency