0U

00200200/usagetrim

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

43 stars 7 forks 质量 83 趋势 20MIT

保持信号。去掉噪音。本地CLI + MCP — Claude Code、Codex、Cursor 和 Desktop 的折叠冗长工具输出。

概览

保持信号。减少噪音。本地CLI+MCP,可折叠Claude代码、Codex、光标和Claude桌面的冗长工具输出——可通过参考恢复。可选macOS宠物。 网站 ·安装 ·演示 ·功能 ·连接 ·宠物 ·指南 需要Python 3.11+和UV(pipx也能用)。 试试不安装:uvx --from git+https://github.com/00200200/usagetrim Usagetrim 演示。 插件通过 UVX 运行固定释放轮,所以它们需要 UV 在 PATH 上。.mcpb 扩展通过 Claude Desktop 安装自己的副本。 Usagetrim演示已离线——。失败会保留;原始文件会完全恢复。 本地o200k_base估算——不包括计费、质量或订阅限制的索赔。完整矩阵:usagetrim demo --json。 - Claude Code 钩子会重写其他 MCP 服务器的结果:统一的 JSON 行变为 TSV,键一次,{“result”: “...”} 封装器失去转义,缩进被移除。每个值和类型都保留,提示注入边界如 Supabase 保持原文。

概述(AI 翻译)

保持信号。别吵了。 本地CLI+MCP,可折叠Claude代码、Codex、光标和Claude桌面的冗长工具输出——可通过引用恢复。可选macOS宠物。

网站 · 安装· 演示 · 特点 · 连接· 宠物· 指南


安装

需要Python 3.11+和UV(pipx也能用)。

试试不安装:uvx --from git+https://github.com/00200200/usagetrim usagetrim demo。

在你的应用里添加

应用 安装
Claude 代码 /plugin marketplace add 00200200/usagetrim,然后是/plugin install usagetrim@usagetrim — MCP工具、Bash和MCP输出钩子、俳句代理
Claude桌面 自定义→插件→添加市场00200200/usagetrim,或双击usagetrim- .mcpb,从“发布”(设置→扩展)中
Codex 应用 & CLI codex plugin marketplace add 00200200/usagetrim,然后是 codex plugin add usagetrim@usagetrim(或者在应用中的插件中选择)
光标,风帆冲浪 usagetrim install --cursor 或 usagetrim install --windsurf

插件会让固定释放轮通过uvx,所以它们需要在PATH上用UV。'.

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

UsageTrim

A local CLI and MCP server for compacting verbose test and build output. Filters use format-specific rules to retain diagnostic context; cached output is recoverable after recognized secrets are redacted, while the entry remains stored. Integrations are available for Claude Code, Codex, Cursor, and Claude Desktop; the macOS companion is optional.

Website · Install · Demo · Features · Connect · Pet · Guide


Install

Requires Python 3.11+ and uv (pipx works too).

uv tool install git+https://github.com/00200200/usagetrim
usagetrim demo

Try without installing: uvx --from git+https://github.com/00200200/usagetrim usagetrim demo.

Add it inside your app

App Install
Claude Code /plugin marketplace add 00200200/usagetrim, then /plugin install usagetrim@usagetrim — MCP tools, Bash and MCP output hooks, Haiku agents
Claude Desktop Customize → Plugins → add the marketplace 00200200/usagetrim, or double-click usagetrim-.mcpb from Releases (Settings → Extensions)
Codex app & CLI codex plugin marketplace add 00200200/usagetrim, then codex plugin add usagetrim@usagetrim (or pick it under Plugins in the app)
Cursor, Windsurf usagetrim install --cursor or usagetrim install --windsurf

Plugins run the pinned release wheel through uvx, so they need uv on PATH. The .mcpb extension installs its own copy through Claude Desktop.

verbose tool text  →  keep the failure  →  recover the rest by reference

See it cut

usagetrim demo runs authored fixtures with no model calls. It checks failure retention and exact recovery for those fixtures, which contain no recognized secrets. These checks do not guarantee preservation of every diagnostic in arbitrary output.

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "usagetrim": { "command": "/absolute/path/to/usagetrim", "args": ["mcp", "--profile", "desktop"] } } }