<< All versions
Skill v1.0.0
currentAutomated scan100/100madxcrazy/antigravity-skills/compaction
──Details
PublishedNovember 4, 2026 at 11:36 AM
Content Hashsha256:480e81e4e8edf853...
Git SHAbc630d346de9
──Files
Files (1 file, 1.7 KB)
SKILL.md1.7 KBactive
SKILL.md · 38 lines · 1.7 KB
name: compaction description: >- Triggers on-demand context compaction: persists critical state into durable artifacts, flushes obsolete transient turn history, and signals the runtime to compact context. metadata: version: "1.0.0"
On-Demand Context Compaction Protocol
The /compaction command provides an explicit trigger to compact the active conversation context, preventing context exhaustion during long-running sessions.
Compaction Routine
When the user invokes /compaction:
- State Preservation (Pre-Compaction Audit):
- Before pruning the conversation history, identify all critical ongoing context:
- Current objective and tasks completed.
- Active file paths, line numbers, and key symbols under investigation.
- Ground-truth telemetry, architectural findings, or pending bugs.
- Write or update this state into a persistent summary artifact in
<artifactDir>/session_state.md.
- Trigger Runtime Compaction:
- Invoke internal
/compactmechanics or on-demand context checkpointing. - Format the compaction checkpoint with:
- Accomplished So Far: Summary of completed changes.
- Current State: Active files, ongoing tests, or current build statuses.
- Immediate Next Actions: Clear bullet points for the next prompt turns.
- Background Auto-Compaction Configuration:
- Antigravity automatically monitors conversation token thresholds in the background.
- When conversation volume is high, the runtime periodically summarizes earlier steps into
conversation_summaries.db. - Invoking
/compactionforces this summarization immediately rather than waiting for automatic token limit triggers.