Claude Code 上线空闲会话自动压缩,在 prompt cache 过期前保存上下文摘要
中文摘要
Claude Code新增空闲自动压缩,在prompt cache过期前生成摘要以节省用量。
English Summary
Claude Code adds idle auto-compression, summarizing chats before prompt cache expires to save usage.
Original Excerpt
Anthropic 的 Lydia Hallie 宣布 Claude Code 新增空闲压缩功能,会在约 1 小时 prompt cache 过期前自动压缩长时间空闲的会话,之后回来只需重新处理摘要而非整段对话,节省用量。Dex Horthy 转发并称赞这是好设计,称此前 24 小时后才询问是否压缩让他困惑,因为那时缓存早已过期。