LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

lowfat

Filter CLI output to reduce noise and LLM token usage

TLDR

Run a command through lowfat's default filter pipeline
$ lowfat git status
copy
Show active filters and compression level for a command
$ lowfat info git
copy
Display lifetime token savings
$ lowfat stats
copy
Set the global compression level
$ lowfat level ultra
copy
Prefix a one-off command at a specific level
$ LOWFAT_LEVEL=lite lowfat git log
copy
Install the OpenCode plugin
$ lowfat opencode install
copy

SYNOPSIS

lowfat [options] command [args...]lowfat info [command] [options]lowfat stats [options]lowfat historylowfat level lite|balanced|ultralowfat hooklowfat shell-init zsh|bashlowfat plugin new namelowfat plugin doctorlowfat filter [options]

DESCRIPTION

lowfat is a lightweight Rust CLI that sits in front of shell commands and strips redundant output before it reaches a human or an AI coding agent. It targets the common case where tools such as git, docker, and ls emit verbose text that wastes context window space without adding decision value.The tool ships as a single binary with built-in processors and a plugin system. Plugins are .lf filter scripts stored under ~/.lowfat/plugins/; lowfat plugin new scaffolds a new one and lowfat plugin doctor validates installed plugins.Integration modes include direct prefixing (lowfat docker ps), shell hook injection via eval "$(lowfat shell-init zsh)" (auto-activates when CLAUDECODE=1, CODEX_ENV, or LOWFAT_ENABLE=1 is set), Claude Code PreToolUse hooks (lowfat hook), and an OpenCode plugin (lowfat opencode install). lowfat history ranks commands by potential savings so you can tune filters for your workflow.Compression levels (lite, balanced, ultra) control how aggressively output is trimmed. Configuration lives in ~/.lowfat and can be overridden per invocation with LOWFAT_LEVEL or --level.

PARAMETERS

--config

Print the full resolved configuration.
--explain
Show which filters ran and why (used with filter).
--audit
Include recent plugin execution details in stats.
--sub name
Select a plugin sub-pipeline (used with filter).
--level level
Override compression level for a single invocation (lite, balanced, ultra).

CONFIGURATION

~/.lowfat/

User configuration directory for pipeline definitions and plugins.
LOWFAT_LEVEL
Environment variable to force a compression level for one command.
LOWFAT_ENABLE=1
Force shell integration on even outside agent environments.

INSTALL

yay -S lowfat
copy

CAVEATS

lowfat reduces tokens by removing detail; verify critical output with lowfat info or by running the underlying command without the prefix when debugging. Shell integration rewrites commands transparently, which can surprise users who forget it is active. Python-based plugins may require uv for dependency resolution (lowfat plugin doctor checks this).

SEE ALSO

git(1), docker(1), awk(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid