Install
openclaw skills install rtk-compressorIntelligently compress CLI outputs by removing comments, blanks, and redundancies to reduce token usage by 60-90% while preserving key info.
openclaw skills install rtk-compressor智能压缩 CLI 命令输出,降低 token 消耗 60-90%。
# 直接压缩输出
echo "输出内容" | rtk-compressor
# 或在代码中调用
python3 -m rtk_compressor compress "原始输出"
| 命令类型 | 原始 tokens | 压缩后 | 节省 |
|---|---|---|---|
| ls/tree | 2000 | 400 | 80% |
| cat/read | 40000 | 12000 | 70% |
| 测试输出 | 25000 | 2500 | 90% |
pip install rtk-compressor