Agents
A beta Claude API feature that automatically clears stale content from a conversation server-side before it reaches the model, while your client keeps the full history.
A beta Claude API feature that automatically clears stale content from a conversation server-side before it reaches the model, while your client keeps the full history. The clear_tool_uses_20250919 strategy replaces the oldest tool results with placeholders once input passes a trigger (100,000 tokens by default) and keeps the three most recent, while clear_thinking_20251015 prunes thinking blocks from earlier turns. It keeps long agent loops under the context limit, though clearing tool results invalidates the prompt cache from that point.
Primary source: platform.claude.com
Example
In practice, developers reach for Context Editing when they need the capability described above as part of an AI feature or workflow.
Hands-on guides, comparisons, and tutorials that cover Agents.
FAQ
A beta Claude API feature that automatically clears stale content from a conversation server-side before it reaches the model, while your client keeps the full history.
Context Editing sits in the Agents part of the AI stack. Understanding it helps you make better decisions when building, debugging, and shipping AI features.
Developers Digest publishes tutorials and videos that cover Agents topics including Context Editing. Check the blog and YouTube channel for hands-on walkthroughs.
Related
A multi-agent mechanism where one agent passes control of the conversation to a more specialized agent, rather than calling it as a subroutine.
Anthropic's most capable widely released model, launched June 9, 2026 as the first Mythos-class model available for general use, with a 1M-token context window and up to 128K output tokens at $10 per million input and $50 per million output tokens.
A limit on how many tokens a model or agent may spend on a task, used to control cost and stop long runs from sprawling.

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.