Building a Coding Agent in Swift, Part 6: Context Compaction

A three-layer compression strategy — micro-compaction, auto-compaction, and manual compaction — for infinite conversations.