Use Case
Context Optimizer is a powerful AI agent skill that extends your assistant with new capabilities. Advanced context management with auto-compaction and dynamic context optimization for DeepSeek's 64k context window. Features intelligent compaction (merging, summarizing, extracting), query-aware relevance scoring, and hierarchical memory system with context archive. Logs optimization events to chat. This guide walks you through installing Context Optimizer, configuring it for your setup, and running your first commands β so you can start getting value in minutes.
Install Context Optimizer: npx clawhub@latest --dir ~/.claude/skills install context-optimizer
Restart your AI client (Claude Code, Cursor, Gemini CLI, or OpenClaw)
Type a natural language request related to documents & notes to trigger Context Optimizer
Review the output and refine your prompt for better results
Combine Context Optimizer with other skills to build multi-step workflows
Copy these prompts and use them with your AI agent after installing Context Optimizer
Help me get started with Context Optimizer
What can Context Optimizer do for my documents & notes workflow?
Show me an example of using Context Optimizer
Select your agent
Option 1: Install via CLI (recommended)
Recommended (no pre-install needed)
npx clawhub@latest --dir ~/.claude/skills install context-optimizerOr via clawhub CLI (if already installed)
clawhub --dir ~/.claude/skills install context-optimizerβ οΈ Requires Node.js 18+. No Node? Use Option 2 below to download the ZIP instead. Install Node.js β
Option 2: Manual install (no Node required)
Download the ZIP, extract it, and place the folder at the path below. Restart your agent to activate.
Install path
~/.claude/skills/context-optimizer/π‘Extract and place the folder at the path above, then restart your agent.