Agents & Orchestration Intermediate
Proactive Compaction
Compact at ~60% utilization with focus instructions to control what details are preserved
Command
"color:#9CA3AF;font-style:italic"># At ~60% context utilization, compact with focus: $ /compact Focus on database schema changes and migration decisions "color:#9CA3AF;font-style:italic"># Or embed in CLAUDE.md "color:#7C5CFC">for automatic focus: "color:#9CA3AF;font-style:italic"># Compact instructions $ When you are using compact, please focus on test output and code changes
Response
// Proactive compaction gives YOU control over what's preserved // vs auto-compaction where the model decides // Subtle early decisions can be lost in auto-compaction
Parsing Code
059669">">// CLAUDE.md compact instructions apply to EVERY compaction: 059669">">// both manual /compact and automatic compaction // Without this, the model decides what to prioritize
Gotchas
! Without focus instructions, auto-compaction may lose subtle early decisions from turn 3 by turn 40
! Compact instructions in CLAUDE.md apply to every compaction automatically