Shed provides a rigorous framework of decision rules to manage context window hygiene for AI agents, preventing token bloat through strategic masking and compression.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install shed
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 shed using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Shed is a specialized methodology designed for developers using Openclaw Skills to maintain high performance in long-running LLM agent sessions. Named after the biological process of molting, this skill helps agents discard 'dead weight'—specifically the tool outputs that account for up to 84% of context growth—while retaining the critical reasoning chains and extracted facts necessary for task completion.
By implementing research-backed strategies from NeurIPS 2025 and leading agent frameworks, Shed ensures that your agents do not suffer from the 'Complexity Trap.' It prioritizes simple, effective observation masking over expensive and often lossy LLM-based summarization, allowing for more stable, accurate, and cost-effective autonomous workflows.
To implement these context hygiene rules within your agent architecture, establish a monitoring loop for token usage. You can initialize a standard memory structure using the following commands:
mkdir -p memory/logs
touch memory/$(date +%Y-%m-%d).md
# Configure your agent to trigger the Shed protocol at 70% context utilization
Ensure your agent's system prompt includes the hierarchy of extraction, masking, and delegation defined in the Shed protocol.
Shed organizes agent memory into distinct, manageable structures to optimize Openclaw Skills performance:
| Component | Format | Purpose |
|---|---|---|
| Memory Breadcrumbs | Markdown (memory/YYYY-MM-DD.md) | Persistent trailhead for future session resumption |
| Tool Extractions | Labeled File/JSON Blocks | High-value facts decoupled from raw tool output |
| Context Blocks | Typed Segments (Human, Persona, Knowledge) | Structured window management with hard character caps |
| Working Memory | In-context tokens | Immediate reasoning and action history |
Loading
A practical framework of grounding exercises designed to help AI agents maintain honesty, recognize limitations, and prevent behavioral drift during autonomous operation.

An automated outbound security framework that prevents AI agents from leaking secrets, PII, or internal system configurations.

A passive alignment service that provides domain-specific safety reminders to help autonomous agents stay on task and avoid hallucinations.

A specialized skill for AI agents to create, poll, and export professional PowerPoint presentations directly from text prompts or outlines.

A specialized collection of philosophical and practical writings designed to guide autonomous AI agents through consciousness, drift prevention, and transcendence.

A powerful automation tool for simultaneously publishing text and images to Weibo and Xiaohongshu using real browser instances to bypass bot detection.








































