←新闻详情

Ado Kukic更新于 10月17日 00:14

Claude Code 新增空闲自动压缩功能

New in Claude Code: idle compaction

AI 导读

Claude Code 推出 idle compaction:prompt cache 存活 1 小时,若 200K+ token 的会话空闲约 54 分钟,会被自动压缩,回来时得到的是热摘要而非冷缓存重建。可通过 CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS 设置阈值,用 "idleCompaction": false 关闭。

正文

当前显示原文,中文全文译文尚未就绪。

New in Claude Code: idle compaction

The prompt cache lives 1h. Leave a 200K+ token session idle ~54 min and it gets auto-compacted, so you come back to a warm summary, not a cold re-cache.

Set the Threshold: CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS Turn Off: "idleCompaction": false https://t.co/4SXaCo31JU

来源

Ado Kukic