Auto Compact

•
2
•

Automatically manages and compresses conversation history to prevent context limit errors during long coding sessions.

The Auto Compact skill optimizes the Claude Code developer experience by intelligently summarizing conversation history as it approaches token limits. By maintaining essential information—such as active file edits, current task states, and unresolved errors—while discarding redundant data, it ensures uninterrupted workflows and session continuity. This tool is essential for complex refactoring or deep debugging sessions where context overflow would normally cause the AI to stop responding or lose track of the current objective.

主な機能

01Customizable PreCompact hooks for state logging and custom logic
02Preservation of critical project state and active file edits
03Automatic context threshold monitoring and triggering
04Configurable compression thresholds via settings.json
05Manual compaction via the /compact command
062 GitHub stars

ユースケース

01Deep debugging sessions requiring extensive log analysis and iterations
02Large-scale project refactorings that involve high message volumes
03Continuous pair programming sessions where session longevity is vital