跳到正文
dex· @dexhorthy · X·· 1 小时前AI 评分51
AI 导读

Anthropic 的 Lydia Hallie 宣布 Claude Code 新增空闲压缩功能,会在约 1 小时 prompt cache 过期前自动压缩长时间空闲的会话,之后回来只需重新处理摘要而非整段对话,节省用量。Dex Horthy 转发并称赞这是好设计,称此前 24 小时后才询问是否压缩让他困惑,因为那时缓存早已过期。

正文

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

引用Lydia Hallie ✨@lydiahallie
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.
在 X 查看被引用的帖子

来源:dex · x.com