Context Capsule
Compresses older OpenClaw agent session history into a bounded, lane-change-aware context capsule — keeps recent messages verbatim, flags abandoned directions, quarantines injected instructions, and redacts secrets. Local, deterministic, any model.
Install
npx skills add Parad0x-Labs/openclaw-skills --skill context-capsulegit clone --depth 1 https://github.com/Parad0x-Labs/openclaw-skills.git /tmp/openclaw-skills
mkdir -p ~/.claude/skills
cp -r /tmp/openclaw-skills/skills/context-capsule ~/.claude/skills/context-capsulePersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Context Capsule
Compress older agent session history before it hits the LLM, so long chats stop
re-sending the full transcript every turn. It keeps the recent tail verbatim and
turns older history into a bounded extractive capsule with decisions, tasks,
errors, paths, links, questions, and durable facts. Works with any model —
Claude, GPT, Ollama, Mistral, LM Studio.
**What sets it apart:**
- **Lane-change aware.** When the session pivots ("replace X with Y", "forget X,
use Y instead"), the capsule marks the abandoned direction as superseded and
keeps the live one, so the model is steered away from a dropped plan. On the
6-case pivot set in `test/supersession-bench.mjs` (5 pivots, 1 no-pivot
control, 6 abandoned subjects) v1.7.0 strikes or omits 6 of 6 abandoned
subjects and flags 0 live choices at budgets 700 and 1,400; `npm test` fails
below 83% or on any wrongly flagged live choice. Pivots stated without an
explicit cue are not detected.
- **High fidelity per token.** Distinctive signals — file paths, IDs, ports,
URLs, commands, errors, decisions — are emitted as dense atoms. As of **v1.7.0**,
a lone value (a bare port `5433`, an issue ref `#4821`, a version `v2.13.0`, an
ISO date, a hyphenated code like `NEEDLE-ZX-7742`) is emitted as its **own** atom,
so it survives compression even when its surrounding sentence loses the budget
race (`test/value-survival.test.mjs`). On the public 109-message fixture inDetails
- Skill name
context-capsule- Repository
- Parad0x-Labs/openclaw-skills
- Path
skills/context-capsule/SKILL.md- License
- MIT
- Repo updated
- 13 November 2026
FAQ
What does the Context Capsule skill do?
Compresses older OpenClaw agent session history into a bounded, lane-change-aware context capsule — keeps recent messages verbatim, flags abandoned directions, quarantines injected instructions, and redacts secrets. Local, deterministic, any model.
How do I install the Context Capsule skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add Parad0x-Labs/openclaw-skills --skill context-capsule. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Context Capsule popular?
It lives in Parad0x-Labs/openclaw-skills, which has 23 GitHub stars and 3 forks.
Related skills
Agent Passport
23Parad0x-Labs/openclaw-skills
On-chain identity for OpenClaw agents — .null name, ETH↔Solana binding, verifiable agent identity without touching private keys
Correction Intent Tagger
23Parad0x-Labs/openclaw-skills
Detects when a user message corrects a prior one, builds an active state where corrections override originals, and injects only the live instruction set into agent context. Prevents model drift when users change their minds mid-session.
Dark Null Bridge
23Parad0x-Labs/openclaw-skills
Archive Dark NULL ZK settlement data into encrypted Liquefy TraceVaults with optional Solana anchoring via an SPL Memo transaction. Bridges zero-knowledge proof outputs into a verifiable, tamper-evident vault.
AI Mobile Deployment
39lionelsimai/claude-skills-collection
Deploy AI models to mobile applications. TRIGGERS - Use when user needs help with ai-mobile-deployment related tasks.
Liquefy Token Guard
23Parad0x-Labs/openclaw-skills
Token usage auditor and budget guard for OpenClaw agents — scans traces for waste (duplicate prompts, oversized context, model overkill), writes budgets, and builds a compact context capsule so the next run starts lean.
AI Migration Plan
39lionelsimai/claude-skills-collection
Plan AI platform migrations between providers. TRIGGERS - Use when user needs help with ai-migration-plan related tasks.
Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.