dex· @dexhorthy · X·· 2026-10-15AI 评分54
AI 导读
@lydiahallie 介绍 Claude Code 最近增加了空闲压缩功能,会在提示词缓存即将过期前(约1小时)压缩长时间空闲的会话,用户返回时只需重新处理摘要而非整个对话以节省使用量。dex 认为这是个好主意,并提到此前在缓存过期后才询问压缩会带来缓存未命中。
正文 · 原文
this is a good idea - always confused why claude would ask me if i wanna compact after 24h to save tokens since the cache expired…like i was gonna gonna eat the cache miss on the input to compaction anyway, right!?
Anyways good ship imo
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在 X 查看被引用的帖子
来源:dex · x.com