header-langage
简体中文
繁體中文
English
Tiếng Việt
한국어
日本語
ภาษาไทย
Türkçe
Scan to Download the APP
Partnered With:

Claude Code Team Explains Million Token Context Management: Model Is Least Intelligent When Compressing Digest, Rewind Is the Most Important Habit to Cultivate

According to Perceive Beating monitoring, Anthropic's Claude Code team engineer Thariq Shihipar has published a lengthy post, systematically explaining how to manage sessions after upgrading Claude Code to a 1 million token context window. He also announced an update to the /usage dashboard to help users understand their usage patterns.

The core concept of the post is "context rot": as the conversation lengthens, the model's attention is spread across more and more tokens, old and irrelevant content begins to interfere with the current task, leading to a decline in model performance. A million contexts allow for longer spans of tasks, but it does not mean that dialogues can accumulate infinitely.

Shihipar believes that the habit users should cultivate the most is "rewind" (double-clicking the Esc key). When Claude attempts a solution but fails, most people's instinct is to say, "This doesn't work, try X." However, the better approach is to revert back to before the solution was executed, incorporating the failed experience into a new prompt word to start over, rather than letting the failed intermediate process linger in the context and occupy attention.

Regarding context compaction, he points out a counterintuitive issue: the model is dumbest when it needs to be smartest. Compression occurs when the context is about to reach its limit, where context rot is most severe, the model's judgment is at its worst, and crucial information is easily lost. A typical scenario is triggering automatic compression after a long debugging session, where the model's summary focuses on the debugging process while discarding other issues the user wants to address next. A million contexts give users more flexibility to manually input additional instructions when invoking /compact (e.g., "only retain auth refactoring-related content"), actively guiding the compression direction.

He also suggests treating subagents as context management tools: tasks that generate a lot of intermediate output but only require the final conclusion can be delegated to subagents, completed in separate context windows, and only return results to the main session. The criterion for judgment is "do I need the process or the conclusion."

At the end of each round of conversation, users actually face five choices: continue the conversation, rewind to retry, /clear to start fresh, /compact to continue compression, or dispatch subagents. New tasks start new sessions, while related tasks (e.g., finishing writing code then working on documentation) can remain in the same session to reuse previously accessed files.

举报 Correction/Report
RelatedRecommended
Anthropic chose the harder path, getting stuff done with your terminal, your environment, your config, instead of "writing some code in a clean room and then copy-pasting it over."
From Environment Setup to Real-world Use Cases, Claude2026 Update: The Ultimate Checklist
Correction/Report
Submit
Add Library
Visible to myself only
Public
Save
Choose Library
Add Library
Cancel
Finish