Context Compact — Development skill for Claude Code
Prepare context for compaction: $ARGUMENTS.
How to install Context Compact
Installs to ~/.claude/commands/greyhaven-ai-sygaldry-context-compact.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/greyhaven-ai/sygaldry/HEAD/.claude/commands/context-compact.md -o ~/.claude/commands/greyhaven-ai-sygaldry-context-compact.md Restart Claude Code, or start a new session, for it to be picked up.
What Context Compact does
Prepare context for compaction: $ARGUMENTS
Context window approaching limit. Need to preserve essential information for task continuation. Distill current work state to essential elements. Capture critical context for seamless continuation after compaction. Working on: $ARGUMENTS Need to compact context while preserving task continuity - Summarize work compleAlternatives in Development
- Onboard — You are given the following context: $ARGUMENTS 5.8k ★
- Android Release — Prepare and execute an Android release (patch/minor/major) 1.6k ★
- Agentlas Call — Prepare explicitly named Agentlas Hub or Cloud agents 1.1k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Compact
Prepare session state for context compaction — capture learnings, save state, then compact
Post Compact Reminder
Claude Code hook that detects context compaction and injects a reminder to re-read AGENTS.md, preventing post-
Do Not Compact
Claude Code plugin: reload CLAUDE.md files after context compaction
ConPACT
CONtext comPACT coordinates agent-initiated context compaction at verified scope closure—after the final answe
Pre Compact
Prepare for a MANUAL /compact — flush your in-context working-set to disk so the
Compact Middleware
Claude Code's compaction engine, as a drop-in DeepAgents middleware
Related Agents
Claude Code Tools
by Prasad Chalasani - Well-crafted toolset for session continuity, featuring skills/commands to avoid compacti
Context Engine
Context window management — tracks tool call count, auto-detects when context fills up, triggers state save +
Logging
Use only during context compaction or task completion. Consolidates and organizes work logs into the task's Wo