Claude Code 的 200K 上下文窗口不是无限的。当 token 消耗达到 167K(83.5%)时,自动压缩触发。
压缩过程:LLM 生成对话摘要 → 替换旧消息 → token 回收。
AUTOCOMPACT_BUFFER_TOKENS = 13,000