condense-cli
v1.0.0
Published
CLI output condenser using Claude haiku. Reduces verbose command output to essential information for token-efficient AI coding assistants.
Downloads
89
Maintainers
Readme
condense-cli
CLI output condenser powered by Claude haiku. Takes verbose command output and returns only the essential information.
Designed as a fallback filter for the token-saving output pipeline in Claude Code, handling commands not covered by tokf or rtk.
Install
npm install -g condense-cliUsage
condense-cli "$(ls -la /some/large/directory)"
condense-cli "$(npm test 2>&1)"
condense-cli "$(git log --oneline -50)"Pass any CLI output as an argument. If it's short enough, it's returned verbatim. Long output gets condensed to ~10 lines keeping errors, warnings, counts, and key results.
How it works
Uses the Claude Agent SDK to call Claude haiku with a focused system prompt that extracts essential information from CLI output.
Requires Claude Code authentication (no API key needed when running locally).
License
MIT
