Skip to content

FallDownTheSystem/condense-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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-cli

Usage

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

About

CLI output condenser using Claude haiku. Reduces verbose command output to essential information.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors