token-trim-cli is an MIT-licensed Python command-line tool that prunes Python code and logs to reduce LLM context-window usage and API costs. It uses syntax-aware processing and token counting for developers working with prompts and LLM workflows.
In the CLI tools & terminal space, token-trim-cli takes a focused approach. It focuses on reducing unnecessary Python code and log content in LLM contexts to lower token usage and API costs. token-trim-cli is an open-source project aimed at python developers building LLM and prompt-engineering workflows. The project is open source (MIT). It ships for the command line, and it can be self-hosted.
Paresh R. Nayak builds and maintains token-trim-cli, and it first shipped in 2026. The project is developed in the open on GitHub with 16 commits in the last 90 days. Among its 5 catalogued features are AST pruning, log pruning, and token counting.
Summary written by a language model from the project’s public pages.
What PulseGate has recorded for this listing
Closest matches by what these projects do