A robust behavioral system designed to prevent context loss and precision decay during LLM compaction events.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install compaction-survival
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install compaction-survival using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
This skill addresses a fundamental limitation in AI agents: the loss of specific details like file paths, exact values, and reasoning chains when the context window fills up. By implementing Openclaw Skills such as the Compaction Survival System, agents can maintain high-fidelity memory through three integrated layers: Write-Ahead Logging (WAL), a Working Buffer for high-utilization states, and an automated Recovery protocol. This ensures that the agent remains sharp and informed, even after a context reset or summary event.\n\nUnlike traditional memory solutions that attempt to store everything, this approach focuses on precision. It captures critical data points—corrections, preferences, and decisions—the moment they are mentioned, ensuring that your Openclaw Skills workflow never suffers from agent amnesia.
The Compaction Survival System is a behavioral skill and does not require external API keys. To integrate it into your Openclaw Skills environment, follow these steps:\n\n1. Ensure your agent has permission to read/write to a memory/ directory.\n2. Create the initial SESSION-STATE.md file in your workspace root.\n3. Configure your agent's system prompt to prioritize the WAL protocol on every user input.\n\nbash\nmkdir -p memory\ntouch SESSION-STATE.md\n
The system organizes data across three primary layers to ensure survival across compaction events within the Openclaw Skills ecosystem:\n\n| File | Purpose | Retention |\n| :--- | :--- | :--- |\n| SESSION-STATE.md | Active working memory, specific values, and decisions. | Persists until task completion. |\n| memory/working-buffer.md | Raw logs of exchanges occurring after 60% context usage. | Overwritten each high-utilization session. |\n| memory/YYYY-MM-DD.md | Daily logs providing chronological history. | Permanent archival. |
Loading
A sophisticated performance engineering framework for profiling, coordinating, and optimizing multi-agent AI systems to maximize throughput and cost-efficiency.

A specialized framework for testing and benchmarking LLM agents through behavioral assessment, reliability metrics, and production monitoring.

A technical framework for compiling SONiC (Software for Open Networking in the Cloud) switch images across multiple hardware and virtual platforms.

An interactive educational skill for testing knowledge in school subjects and programming using dynamic inline button interactions.

A surgical pattern-remover designed to strip away AI writing signatures and restore a natural, human voice to your content.

An automated security testing suite for Large Language Models designed to identify prompt injections, jailbreaks, and data extraction vulnerabilities.








































