跳到正文
Lydia Hallie ✨· @lydiahallie · X·AI 评分60

Claude Code 将 400K 自动压缩设为 1M 模型默认值

AI 导读

Claude Code 正在为多数 1M 上下文模型把 400K auto-compact 作为默认值推出,帮助长会话控制用量。此前等到约 967K 才压缩时,每条消息都会带上整个对话,虽多为更便宜的缓存读取,但仍计入用量;运行 /autocompact 400k 可在 400K 处提前摘要,或在 /config 中用 /autocompact 1m 保留完整 1M 窗口。

正文 · 原文

400k auto-compact is now rolling out as the default in Claude Code for most 1M models! This should help with your usage if you run longer sessions

You can still keep the full 1M window by running "/autocompact 1m" or in /config

引用Lydia Hallie ✨@lydiahallie

Just to avoid some confusion: auto-compact does summarize. When it runs, your whole conversation is replaced by a short summary. It doesn't keep the last 1M tokens around.

The ~967K is only when it runs on 1M models. Compacting itself is just one request that reads about as many tokens as the message you sent right before it, and it's mostly cache reads if your cache is still warm.

What @rohit3a found is that waiting until 967K means every message before that point uses a lot of tokens, because each one includes your whole conversation so far. Most of it is read from the cache, which is much cheaper (so this is usually fine as long as your cache is warm), but it still counts toward your usage and adds up as your conversation grows.

/autocompact 400k makes it summarize at 400K instead, so your messages never get that big.

在 X 查看被引用的帖子

来源:Lydia Hallie ✨ · x.com

所属事件

查看完整事件
Claude Code v2.1.334 发布并调整自动压缩默认值