GitHub · 灵魂体仓库·· 19 天前精选AI 评分67
Iteris 发布终端压缩工具 trs,为 AI Agent 减少 token 消耗
dPeluChe/trs
来源与原文
GitHub · 灵魂体仓库
发布时间:(北京时间)
阅读原始来源 · github.com ↗完整链接与内容说明
https://github.com/dPeluChe/trs
本站目前仅有 AI 导读与摘要,未展示原文正文;技术细节、代码和完整结论请查看原始来源。
AI 导读
Iteris 发布开源工具 trs(Token-Reducing Shell),在命令前加 trs 或用 trs init 接入 AI Agent,把 git status、cargo test 等命令输出压缩为紧凑版本,示例中 cargo test 输出从 55 KB 压到 58 B(99% 压缩)。支持 Claude Code、Gemini CLI、Cursor、Codex CLI 等十六种 Agent 的 hook 或规则文件接入,提供 trs rewrite 输入压缩、trs output-saver 输出压缩、trs ingest 仓库摘要和 trs audit-docs 四个互补工具,macOS、Linux、Windows 单二进制安装,另有 npm 和 cargo 安装方式,MIT 协议开源。
推荐理由
面向 AI Agent 的终端输出压缩工具,README 给出各命令的压缩率数据和十六种 Agent 的接入方式,读者可据此评估能否降低上下文成本。
来源:GitHub · 灵魂体仓库 · github.com