Claude Code is definitely token based, its been discussed extensively on Hacker News and the related Github threads. A large context cache miss can take half your usage easily in just one request... "max" just means more reasoning tokens. I've also run out of usage during a single request in CoWork. Its definitely token based.
From my simple checks - and from Microsoft's own blog - per token pricing isn't going to be realistic for agentic coding either.