Compress OpenClaw session context to reduce token usage and extend session lifetime. Uses NLP summarization (Sumy) to intelligently compact conversation history while preserving essential context. Triggers on mentions of session compression, token reduction, context cleanup, or when session size exceeds safe thresholds (~300KB). Use when (1) OpenClaw approaches 50% context limit, (2) Sessions are slowing down due to large context, (3) Reducing API costs from excessive token consumption, (4) Extending session lifetime without forced reboots.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install clawpressor或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install clawpressor⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/clawpressor/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
Compress OpenClaw session context to reduce token usage and extend session lifetime. Uses NLP summarization (Sumy) to intelligently compact conversation history while preserving essential context.
Key capabilities include Typical Results, Integration with Workflows, Context Maintenance (1x/jour), and Safety.
Ideal for teams looking to automate repetitive tasks and build intelligent workflows.
安装 Session Context Compressor 后,可以对 AI 说这些话来触发它
Compress all images in this folder to under 200KB without visible quality loss
Processes each image with adaptive quality settings, targets sub-200KB output, and reports the before/after sizes for each file
Optimize this video for web playback and reduce its file size by 50%
Re-encodes the video with web-optimized settings (H.264, faststart), targets 50% size reduction, and returns the output file path
Compress this PDF and tell me the before/after file sizes
Applies PDF compression (image downsampling, font subsetting), then reports the original and compressed sizes with percentage saved
将技能文件夹放到 ~/.claude/skills/clawpressor/ 目录(个人级,所有项目可用),或 .claude/skills/clawpressor/(项目级)。重启 AI 客户端后,用 /clawpressor 主动调用,或让 AI 根据上下文自动发现并使用。
Session Context Compressor 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Session Context Compressor 可免费安装使用。请查阅仓库了解许可证信息。
Compress OpenClaw session context to reduce token usage and extend session lifetime. Uses NLP summarization (Sumy) to intelligently compact conversation history while preserving essential context. Triggers on mentions of session compression, token reduction, context cleanup, or when session size exceeds safe thresholds (~300KB). Use when (1) OpenClaw approaches 50% context limit, (2) Sessions are slowing down due to large context, (3) Reducing API costs from excessive token consumption, (4) Extending session lifetime without forced reboots.
Session Context Compressor 属于「AI Agent & Automation」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。