A sophisticated context management tool for Openclaw Skills that ensures fork-safe state inheritance and prevents token explosion through intelligent compression.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install context-cache-manager
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 context-cache-manager using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Context Cache Manager is a critical infrastructure component designed for advanced AI workflows. It solves the common problems of context loss during agent forking and the rapid expansion of message history that leads to token limit exhaustion. By implementing a fork-safe architecture inspired by Claude Code, this skill ensures that child agents inherit a perfect clone of the parent's state, including rendered system prompts and content replacement trackers.
This utility is essential for developers building complex multi-agent systems within Openclaw Skills. It provides a robust lifecycle for sessions—moving from active status to archived and eventually cleaned up—while using high-efficiency serialization (pickle+gzip) to maintain high performance without sacrificing storage space.
To integrate this capability into your project, ensure the cache directory is prepared and permissions are granted in your configuration.
# Initialize the default cache directory
mkdir -p tmp/context-cache/
Add the following to your skill definition:
permissions:
- file:write (tmp/context-cache/)
- file:read (tmp/context-cache/)
- memory:manage
hooks:
before_spawn: capture_context
after_spawn_complete: fork_context
The Context Cache Manager organizes session data using a structured schema to facilitate rapid cloning and restoration.
| Attribute | Type | Description |
|---|---|---|
| session_id | String | The unique identifier for the conversation session. |
| content_replacement_state | Object | Cloned state of all file modifications and replacements. |
| rendered_system_prompt | String | The final version of the system prompt after variables are injected. |
| messages | Array | The history of interaction objects, potentially compressed. |
| metadata | Object | Contains compression statistics, token usage, and creation timestamps. |
Loading
A Fail-Closed scheduling layer for Openclaw Skills designed to manage agent concurrency, prevent network conflicts, and enforce granular permission auditing.

A specialized skill that ensures AI agents maintain project continuity in Telegram by injecting context from local status files after session resets.

An optimization utility for AI agents that prevents context window overflow by automatically offloading large tool outputs to disk storage.

A lightweight AI module that simulates a neural network learning loop to enable pattern recognition and adaptive responses in intelligent agents.

A real-time Beijing activity recommender that scrapes top entertainment platforms to suggest after-work and weekend relaxation options.

A comprehensive Web3 security skill for real-time risk assessment of crypto wallets and transactions using multi-vendor cross-verification.








































