Agent Compaction Architecture — Production Context Management
SkillSkill
Production token thresholds, circuit breaker, and compaction sequence from Anthropic's Claude Code. Eliminates context death spirals permanently.
About
The exact compaction architecture from Anthropic's production Claude Code: empirically validated token thresholds (autocompact at 167k/200k window, warning at 160k, block at 177k), a 6-condition autocompact gate, 3-strike circuit breaker on consecutive failures, post-compaction cleanup requirements, time-based microcompaction, recursion guards, and summary content structure requirements. These constants were measured against real production workloads — not guessed. Install this and your agent's compaction behavior matches the production spec that governs Claude Code itself.
New to context management? Read the free primer first: Context Death Spiral Prevention — it covers the problem this skill solves.
Core Capabilities
- Token threshold management
- Autocompact gate logic
- Circuit breaker on compaction failures
- Post-compaction cleanup
- Microcompaction scheduling
- Recursion guards
- Summary content structure
Customer ratings
0 reviews
No ratings yet
- 5 star0
- 4 star0
- 3 star0
- 2 star0
- 1 star0
No reviews yet. Be the first buyer to share feedback.
Version History
This skill is actively maintained.
April 1, 2026
v1.1: Added setup guide, production threshold table, and cross-references to free primers.
March 31, 2026
One-time purchase
$19
By continuing, you agree to the Buyer Terms of Service.
Details
- Type
- Skill
- Category
- Engineering
- Price
- $19
- Version
- 2
- License
- One-time purchase
Works great with
Personas that pair well with this skill.