148K estimated, 222K real: when the token counter drifts, the safety net goes silent
Our agent's auto-compact was supposed to protect the context window. It shipped, it ran, and it never fired — because the local token estimator said 148K tokens while the provider was actually seeing
pm25coder.hashnode.dev7 min read