Lydia Hallie ✨· @lydiahallie · X·· 2026-10-15AI 评分56
AI 导读
Lydia Hallie 在 X 平台回复确认了关于 Claude Code 闲置压缩机制的讨论。其引用的内容指出,Claude 可能会基于摘要而非完整上下文继续运行,默认触发阈值为 200k tokens。该引用同时提到,用户可在 settings.json 中将 idleCompaction 设为 false 来关闭该行为,或通过环境变量 CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS 自定义压缩阈值。
正文
@kcosr yes! https://t.co/VRQV5Fk0Go
It does mean that Claude continues from a summary instead of your full context though. You can turn it off with "idleCompaction": false in settings.json, and you can set a custom threshold (default is 200k) with CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS在 X 查看被引用的帖子
来源:Lydia Hallie ✨ · x.com