Agent skill · software engineering · sundial-org

context-manager

AI-powered context management for Clawdbot/Moltbot sessions

Why this skill is useful

Adds 4 executable scripts for managing and compressing AI session contexts that aren't in public docs.

What it needs

Requires clawdbot, moltbot installed locally. About 4k tokens when loaded. Last updated 2026-03-07. 639 stars on the source repository.

What this skill does

Context Manager Skill AI-powered context management for Clawdbot/Moltbot sessions. Uses the agent itself to generate intelligent summaries, then resets the session with compressed context. Quick Start When to Use Context usage approaching 70-80%+ Long sessions with extensive conversation history Before the session becomes slow or loses coherence Proactively to maintain fast, focused sessions How It Works 1. AI Summarization: Sends a prompt to the agent asking it to summarize its own context 2. Backup: Saves the original JSONL session file to memory/compressed/ 3. Reset: Deletes the JSONL file (official reset method per Moltbot docs) 4. Inject: Sends the AI-generated summary as the first message in the fresh session 5. Result: Same session key, new session ID, compressed context Key insight: The agent has full visibility into its own context, so it generates the best possible summary. Commands Session Commands Command Description --------- ------------- list List all sessions with token usage status [KEY] Show detailed status for a session summarize [KEY] Generate AI summary (read-only) summarize [KEY] --replace Summarize AND reset session with compressed context compress [KEY] Legacy grep-based extraction (not recommended) check [KEY] Check if session exceeds threshold check-all Check all sessions at once Configuration Commands Command Description --------- ------------- set-threshold N Set compression threshold (50-99%, default: 80) set-depth LEVEL Set depth: brief/balanced/comprehensive set-quiet-hours HH Set quiet hours (e.g., "23:00-07:00") help Show help and usage examples Examples List All Sessions Check Session Status Generate AI Summary (Safe, Read-Only) Full Compression (Summarize + Reset + Inject) Result: 70k tokens → 16k tokens (77% reduction) Output Files When compression occurs, these files are created in memory/compressed/: File Description ------ ------------- {timestamp}.ai-summary.md AI-generated session summary {timestamp}.session-backup.jsonl Full …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills sundial-org/context-manager

View the source on GitHub

Browse the @skills marketplace