nac7/tooltrim

Drop-in compression for LLM agent tool outputs: cut ~99% of tool-result tokens while keeping (often improving) answer accuracy. Provider-agnostic, with a faithfulness benchmark and an OpenAI-compatible proxy.

2Stars on the repository
1Mods indexed here, across every type
21d agoLast push, which is what freshness is scored on
MITLicence, which decides whether bodies are shown

tooltrim

01

nac7/tooltrim

MCP server Claude CodeCodexCursor

Drop-in compression for LLM agent tool outputs. Shrink bloated HTML/JSON/log results before they re-enter context — cut tokens, stay on-task, keep full output retrievable. Runs locally from the tooltrim Python package.

2 21d ago A tokens not measured original MIT