dex· @dexhorthy · X·· 2026-10-15AI 评分54
AI 导读
@lydiahallie 介绍 Claude Code 最近增加了空闲压缩功能,会在提示词缓存即将过期前(约1小时)压缩长时间空闲的会话,用户返回时只需重新处理摘要而非整个对话以节省使用量。dex 认为这是个好主意,并提到此前在缓存过期后才询问压缩会带来缓存未命中。
正文 · AI 翻译
这是个好主意——我一直很困惑,为什么 Claude 会在 24 小时后问我是否要压缩以节省 token,因为缓存已经过期了……反正我本来就要承担压缩输入时的缓存未命中,对吧!?
总之在我看来这是个不错的发布
我们最近为 Claude Code 添加了空闲压缩功能! 现在它会在提示缓存过期(约 1 小时)之前,对长时间空闲的会话进行压缩。如果你之后回来继续,它只需重新处理摘要,而不必重新处理整个对话,从而为你节省一些用量。https://t.co/SG3QyTNFwr
原文
We recently added idle compaction to Claude Code! It now compacts long idle sessions right before the prompt cache expires (~1h). If you come back to it later, it only has to reprocess the summary instead of the entire conversation, which saves you some usage. https://t.co/SG3QyTNFwr
来源:dex · x.com