Tools Howto 01
Compaction: when to summarize an agent's history — and when it backfires
Anthropic's compaction API summarizes an agent's history when it hits a token threshold. How it works, the billing pass you don't see, and when it backfires.
2 posts tagged "context-engineering".
Every post tagged "context engineering" in the journal. Tag archives are auto-generated from post frontmatter -- one entry per unique tag across non-draft posts. Currently 2 posts share this tag. Use the category filter above to scope by editorial type.
Showing 2 of 2 posts — page 1 of 1
Anthropic's compaction API summarizes an agent's history when it hits a token threshold. How it works, the billing pass you don't see, and when it backfires.
Anthropic's context editing clears stale tool results from an agent's window, cutting token use up to 84%. How it works, the config, and the prompt-cache catch.