Install
openclaw skills install @chen6896qqwee/snip-compressorSemantic conversation compressor — intelligently summarize long chat history while preserving key decisions, facts, and context.
openclaw skills install @chen6896qqwee/snip-compressorDistilled from Claude Code's Snip compression engine. Analyzes conversation history and generates a compressed summary that preserves semantic continuity — not a simple truncation.
# Compress a conversation file
python3 {baseDir}/compressor.py --input conversation.json --output compressed.md
# Compress with custom token budget
python3 {baseDir}/compressor.py --input conversation.json --budget 2000
# Compress from stdin
cat conversation.json | python3 {baseDir}/compressor.py --budget 1500
JSON array of message objects:
[
{
"role": "user",
"content": "帮我分析一下这个股票"
},
{
"role": "assistant",
"content": "好的,我来看看...",
"tool_calls": [
{"name": "exec", "result": "{...}"}
]
}
]
Markdown with sections:
Based on Claude Code's src/services/snip/ module: