← 返回
开发者工具

Rtk Compressor

Intelligently compress CLI outputs by removing comments, blanks, and redundancies to reduce token usage by 60-90% while preserving key info.
通过移除注释、空行和冗余信息,智能压缩CLI输出,节省60‑90%的Token使用量,同时保留关键信息。
efficiency97
开发者工具 clawhub v0.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 498
下载
💾 21
安装
1
版本
#latest

概述

RTK Compressor Skill

智能压缩 CLI 命令输出,降低 token 消耗 60-90%。

功能

  • 移除注释、空行、样板代码
  • 聚合相似项
  • 保留核心信息
  • 支持多种输出类型:ls/tree、cat/read、测试输出、JSON/日志

使用方式

# 直接压缩输出
echo "输出内容" | rtk-compressor

# 或在代码中调用
python3 -m rtk_compressor compress "原始输出"

压缩效果

命令类型原始 tokens压缩后节省
------------------------------------
ls/tree200040080%
cat/read400001200070%
测试输出25000250090%

安装

pip install rtk-compressor

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-30 08:14 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 65 📥 179,847
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 920 📥 185,727
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 666 📥 323,797