Extended agent conversations accumulate historical messages, tool results, retrieved documents, and intermediate analysis. Repeatedly processing this growing context increases token consumption and can degrade the efficiency of subsequent model calls.
Server-side compaction reduces active context size by replacing earlier conversation content with a condensed representation of relevant information. Combining compaction with an independently cached system-prompt prefix allows stable instructions to remain reusable even when conversational history is summarized or replaced.
Anthropic's compaction documentation specifically recommends placing a cache breakpoint at the end of the system prompt to preserve cache effectiveness during context compaction.
Recommended context architecture

Stable instructions remain independently cacheable while growing conversational history is periodically compacted.
The implementation should monitor input_tokens , cache_creation_input_tokens , cache_read_input_tokens , and output consumption to establish actual expenditure reductions. Cache lifetime, compaction frequency, and summary quality should be optimized against representative multi-day research jobs.
Switching model tiers introduces behavioral differences and may invalidate existing cached content. Removing thinking blocks manually does not adequately address accumulated documents and conversational history. Repeatedly truncating the oldest messages can destroy essential analytical context and disrupt cache reuse.
Compaction combined with a stable cached prefix is therefore the most appropriate architecture. However, the exact 50 percent expenditure reduction must be validated through workload benchmarking rather than assumed as a guaranteed feature outcome.
Reference Topics: Server-side compaction, prompt caching, cache breakpoints, context optimization, token usage monitoring, and long-running agent economics.