Agent skill · operations · sundial-org
context-compressor
context-compressor — an agent skill for coding agents.
Why this skill is useful
Adds a specialized automation script for managing context in long-running sessions, which the AI wouldn't reliably generate on its own.
What it needs
Requires clawdbot installed locally. About 3k tokens when loaded. Last updated 2026-03-07. 639 stars on the source repository.
What this skill does
Context Compressor Skill Automated context management for long-running Clawdbot sessions. Detects when context limits approach, compresses old conversation history, and seamlessly transfers to a fresh session. When to Use Long coding sessions with extensive context accumulation Projects with many iterations and refinements When noticing Claude repeating itself or losing track of details Proactively before hitting hard context limits During heartbeats or idle moments when user isn't actively waiting How It Works 1. Monitoring: Continuously tracks context usage via session metadata 2. Compression: When threshold reached (configurable, default 80%), summarizes old messages 3. Preservation: Extracts key decisions, code changes, file states, and action items 4. Handoff: Initiates new session with compressed context as foundation 5. Continuity: User experiences seamless transition with all important context preserved Key Features Smart Summarization: Preserves decisions, code, file states, not just raw text Configurable Thresholds: Set when compression triggers (70-90% of context limit) Background Operation: Works during heartbeats or low-activity periods Selective Retention: Keeps important files, decisions, TODOs; compresses chaff Session State Transfer: New session inherits all critical context automatically Core Concepts Context Degradation Patterns As sessions grow long, watch for these signs: Repetitive responses ("As I mentioned earlier...") Missing references to earlier decisions Forgetting file modifications Asking to repeat information General coherence degradation Compression Strategy 1. Extract Core Intelligence: All decisions made and their rationale File paths and their current state Pending tasks and their status Important code snippets or configurations User preferences and patterns 2. Condense History: Remove filler, backtracking, dead ends Keep only high-signal turns Merge related iterations into summaries Preserve critical code snippets inline 3. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills sundial-org/context-compressor