Skip to content

Instantly share code, notes, and snippets.

View Dragynrain's full-sized avatar

Adam Forster Dragynrain

View GitHub Profile
@Dragynrain
Dragynrain / claude-status-compaction-tracker.md
Created February 4, 2026 17:23
Track Claude Code context compaction events in your status line (PowerShell/Windows)

Claude Code Status Line with Compaction Counter (PowerShell/Windows)

Track how many times your context has been auto-compacted by detecting when the usage percentage drops significantly.

Why This Matters

  • "35%" might actually mean ~135% burned if one compaction already happened
  • Early conversation context becomes lossy after each compaction
  • Useful signal for when to start fresh on complex tasks