Feature request: Track and display compact count

Resolved 💬 2 comments Opened Jan 14, 2026 by Machoman3000 Closed Feb 27, 2026

Feature Request

Problem:
When using Claude Code for extended sessions, auto-compacts happen without a clear way to track how many have occurred. This makes it difficult to gauge context degradation and know when to start a fresh session.

Proposed Solution:
Add a compact counter that:

  1. Displays in /status output (e.g., "Compacts this session: 3")
  2. Optionally shows in the status bar
  3. Resets when starting a new session

Workaround (current):
Manually rename sessions after each compact (e.g., session-compact-1, session-compact-2), but this requires user vigilance and doesn't catch auto-compacts.

Use Case:

  • Long development sessions where context quality matters
  • Knowing when context rot may be affecting response quality
  • Making informed decisions about when to start fresh vs. continue

Additional Context:
Auto-compacts can happen mid-task without warning. A counter would help users understand their session's "memory health" at a glance.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗