emergency-compact

Truncate Aethervault sessions to reclaim token space during context overflow.

Updated Feb 3, 2026
One-click install
npx skills add https://github.com/sunilkgrao/aethervault --skill emergency-compact
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: emergency-compact
Source: https://github.com/sunilkgrao/aethervault/tree/main/skills/emergency-compact
Command: npx skills add https://github.com/sunilkgrao/aethervault --skill emergency-compact

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Emergency Compact forces context reduction by truncating older messages when normal compaction fails or context overflow persists, helping conversations continue smoothly without data loss.

Core Features & Use Cases

  • Force context truncation to reclaim token space during overflow.
  • Create a truncated backup of the current session and log a truncation notice.
  • Offer aggressive fallback options for stubborn sessions with high context usage.

Quick Start

Run the emergency-compact script to truncate the current session when context overflows.

Frequently Asked Questions about emergency-compact

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix context overflow when auto-compaction fails in a long-running session?

Emergency context compaction forcibly truncates older messages to reclaim available token space when normal auto-compaction fails. It backs up the current session, truncates to the last N messages, and appends a system truncation notice.

What is context truncation and how does it reclaim token space?

Context truncation reduces active context size by cutting off older messages and keeping only the last N messages. It reclaims token space by appending a system truncation notice, allowing long-running sessions to continue without data loss.

How do I handle repeated 413 prompts caused by excessive memory usage?

You can handle repeated 413 prompts by applying an aggressive fallback compaction. This forcibly truncates the active session to the last N messages, reducing memory usage and stopping persistent context overflow errors.

Does emergency compact back up the session before truncating older messages?

Yes, emergency compact creates a truncated backup of the current session before removing older messages. It also logs a system truncation notice, ensuring you retain a record of the session before reclaiming token space.

When should I use an aggressive fallback for session management over normal compaction?

You should use an aggressive fallback for session management when normal auto-compaction fails or context overflow persists. It is designed for stubborn sessions with high context usage that repeatedly trigger 413 prompts.