Original Reddit post

I’ve been seeing posts that Opus 4.6 is dumber now, and even 4.5 isn’t up to snuff. It feels I can go longer in my sessions than before. I remember hearing something about the context window going from 200k tokens to 1 Million. I wondered if the two might be related so I had CC create a token tracker for me that launches every time I launch CC in terminal. For my purposes, I’ll use it to end a session and start a new one as I approach the 200k threshold and see if that helps things. If you want to try it out, here’s the link: https://gist.github.com/ButterflyEconomist/f1f7aad7cf29f45e6e937b945211ff71 I asked CC to give me a more detailed description. Here it is:

It runs in a separate terminal, tails your terminal session log, parses the ↑/↓ token indicators from Claude Code’s status line, and accumulates a running total. It sits quiet and only pings you when you cross the next 25K milestone — green under 70%, yellow 70-90%, red over 90% of a 200K threshold. It undercounts (misses system prompt, CLAUDE.md , possibly thinking tokens), so treat it like an airplane gas gauge — the only accurate reading is when you’re empty. But it beats flying blind. It auto-detects your Claude Code session log (looks for spinner text and tool call fingerprints so it won’t accidentally track its own terminal). You can also pass --log to point it at a specific session, or --threshold to set your own comfort level.

Comments/suggestions appreciated submitted by /u/ButterflyEconomist

Originally posted by u/ButterflyEconomist on r/ClaudeCode