frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Lowfat – pluggable CLI filter that saved 91.8% of my LLM tokens

https://github.com/zdk/lowfat
19•zdkaster•4h ago
Hi HN,

Not sure if anyone would be interested.

But, just wanted to share that I've been maintaining my small tool called 'lowfat' that helps me filters some of my verbose CLI output.

It's a single binary, works as an agent hook or a shell wrapper. It has a plugin system to customize filters per command.

The idea is pretty simple: agents don't need the full kubectl get -o yaml or any 10k-line dump to make decisions. So that lowfat sits in between, strips the noise, and passes through what matters.

Here's my real report after 2 months of personal use:

lowfat history --all

  lowfat plugin candidates
  ─────────────────────────────────────────────────────────

    #  command                    runs   avg raw      cost   savings  source    status  
    1  kubectl get                101x     14.4K      1.5M     93.9%  plugin    good    
    2  grep                       103x     13.5K      1.4M     96.2%  plugin    good    
    3  git diff                    81x       995     80.6K     57.9%  built-in  good    
    4  kubectl                     90x       485     43.6K     33.6%  plugin    good    
    5  docker                     127x      5.5K    693.6K     96.1%  built-in  good    
    6  ls                         489x       117     57.3K     56.2%  built-in  good    
    7  find                        30x     16.5K    495.0K     95.5%  plugin    good    
    8  git show                    63x       490     30.9K     38.0%  built-in  good    
    9  git                        177x       368     65.2K     76.1%  built-in  good    
   10  git log                     86x       556     47.8K     78.5%  built-in  good    
   11  kubectl logs                 5x      3.6K     17.8K     43.0%  plugin    good    
   12  git status                  86x       152     13.1K     58.0%  built-in  good    
   13  docker ps                   20x       467      9.3K     52.8%  plugin    good    
   14  kubectl describe             6x       656      3.9K      1.2%  plugin    weak    
   15  docker images                9x       940      8.5K     61.8%  built-in  good    
   16  k get                        2x      2.1K      4.2K     35.9%  plugin    good    
   17  terraform                   10x       395      3.9K     32.1%  plugin    good    
   18  git commit                  32x        77      2.5K      0.0%  built-in  weak    
   19  docker build                 8x       487      3.9K     37.6%  built-in  good    
   20  docker compose              22x       979     21.5K     89.4%  built-in  good    

  total: 4.4M raw → 4.1M saved (91.8%)
My toolset above is kind limited, but it works pretty well for my usecase without any interruption Kinda help me not reaching the token limit for my company Bedrock limit usage and keep optimizing the saving on the go for later usage.

But, why not alternatives (https://github.com/zdk/lowfat#alternatives) ? The answers are: - My goal is to make the core lightweight but extensible via plugins i.e. not trying to bundle every command in the installed binary so that people own their output filters. - Customizable per usecase via plugin or filter pipelines as I am using my own toolset. - Customizable for non-public CLI tools, for example, some enterprise might have their interal CLI tools that public won't have access. - People should own their data. So the design is local-first, No telemetry forever. - I kinda love UNIX-style composible pipes, so lowfat-filter has implemented this style. - Be able to adjust aggressiveness of the filter, so we can control that we won't strip something the agent needed.

GitHub: https://github.com/zdk/lowfat

Anyway, if anyone is interested, feedbacks and questions are welcome!

Thanks!

Comments

devdoc83•2h ago
How do you handle the risk of stripping out the exact stack trace the agent needed? That seems like the hard tradeoff here.
itsthecourier•1h ago
gonna ask the same... do far it's has been manually choosing what's useful in each command for the agents?
zdkaster•11m ago
It requires a bit effort in doing long-term adjustment and tuning for your agent common cli tools commands called. kinda need to evolve on day-to-day basis. But, agent itself can be useful to help tuning this.
ramon156•1h ago
In a perfect world the LLM needs to be very explicit on what it wants to read
nixpulvis•22m ago
The LLMs already do that themselves with `tail` all the time. There's a lot of room for improvement on top of that. Though they usually figure it out after a few tries. I often just paste manual runs errors myself anyway.
zdkaster•15m ago
It has the strip aggressiveness level suport. You can tune up 3 levels for each template output of your stacktrace using lowfat-filter dsl, shellscript or python.
alex7o•59m ago
I would like to have deeper comparison with alternatives like rtk, which are already fast and written in rust, also the previous comments mentioned something that has been a know problem with rtk that it sometimes strips the thing that the llm needs (or expects, causing more work to need to happan not less)

US tobacco firms applied tobacco strategies to globalize ultra-processed foods

https://ajph.aphapublications.org/doi/10.2105/AJPH.2026.308501
135•giuliomagnifico•1h ago•112 comments

Tracing a powerful GNSS interference source over Europe

https://arxiv.org/abs/2606.03673
172•mimorigasaka•4h ago•57 comments

Redis 8.8: New array data structure, rate limiter, performance improvements

https://redis.io/blog/announcing-redis-8-8/
59•ksec•2d ago•19 comments

Mouseless – keyboard-driven control of macOS/Linux/Windows

https://mouseless.click
29•riddley•1d ago•10 comments

Changing How We Develop Ladybird

https://ladybird.org/posts/changing-how-we-develop-ladybird/
477•EdwinHoksberg•5h ago•316 comments

databow: a Rust CLI to query any database with an ADBC driver

https://columnar.tech/blog/introducing-databow//
72•hckshr•2d ago•15 comments

Entanglement Builds Space-Time. Now "Magic" Gives It Gravity

https://www.quantamagazine.org/entanglement-builds-space-time-now-magic-gives-it-gravity-20260603/
67•rbanffy•4h ago•50 comments

Fine-tuning an LLM to write docs like it's 1995

https://passo.uno/fine-tuning-docs-llm/
109•taubek•7h ago•43 comments

Nango (YC W23, dev infra) is hiring staff back end engineers

https://nango.dev/careers
1•bastienbeurier•1h ago

Meta enables ADB on deprecated Portal devices [video]

https://fb.watch/HxPu0fSyeH/
249•jenders•12h ago•94 comments

ESP32 Bit Pirate, a Hardware Hacking Tool with WebCLI That Speaks Every Protocol

https://github.com/geo-tp/ESP32-Bit-Pirate
63•geotp•5h ago•30 comments

Leap in DNA synthesis slashes time to build new genetic sequences

https://spectrum.ieee.org/faster-dna-synthesis-sidewinder
62•natalcleft•19h ago•12 comments

Anthropic's open-source framework for AI-powered vulnerability discovery

https://github.com/anthropics/defending-code-reference-harness
465•binyu•17h ago•127 comments

Show HN: Lowfat – pluggable CLI filter that saved 91.8% of my LLM tokens

https://github.com/zdk/lowfat
22•zdkaster•4h ago•8 comments

The IsUpMap lets you check the status of over 100 major sites at once

https://isupmap.com/
86•mikelgan•8h ago•31 comments

Communication on European Tech Sovereignty, and an EU Open-Source Strategy

https://digital-strategy.ec.europa.eu/en/library/communication-european-tech-sovereignty-accompan...
53•jrepinc•2h ago•28 comments

C++: The Documentary

https://herbsutter.com/2026/06/04/c-the-documentary-released-today/
214•ingve•8h ago•134 comments

Open Code Review – An AI-powered code review CLI tool

https://github.com/alibaba/open-code-review
215•geoffbp•13h ago•61 comments

I'm skeptical about efforts to revolutionize schooling

https://www.scotthyoung.com/blog/2026/05/27/revolutionize-schooling/
223•andrewstuart•2d ago•331 comments

Do transformers need three projections? Systematic study of QKV variants

https://arxiv.org/abs/2606.04032
186•Anon84•14h ago•36 comments

At the Autograph Show

https://oldster.substack.com/p/at-the-autograph-show
10•NaOH•2d ago•1 comments

Ohbin – uv wrapper for installing tools from GitHub

https://github.com/prostomarkeloff/ohbin
24•notmarkeloff•3d ago•11 comments

Watching a Z80 from an RP2350

https://emalliab.wordpress.com/2026/05/26/watching-a-z80-from-an-rp2350/
30•ibobev•2d ago•5 comments

WiFi Time

https://mitxela.com/projects/wifi_time
107•surprisetalk•2d ago•5 comments

Branchless Quicksort faster than std:sort and pdqsort with C and C++ API

https://tiki.li/blog/blqsort
198•birdculture•2d ago•60 comments

SpaceX, Other Mega IPOs Denied Fast Index Entry by S&P

https://www.bloomberg.com/news/articles/2026-06-04/s-p-dow-jones-keeps-megacap-ipo-rules-as-is-af...
731•tristanj•14h ago•358 comments

Delacroix's Entry of the Crusaders into Constantinople Restored

https://www.louvre.fr/en/explore/life-at-the-museum/delacroix-s-entry-of-the-crusaders-into-const...
48•rawgabbit•10h ago•18 comments

Go Experiments Explained

https://www.alexedwards.net/blog/go-experiments-explained
61•ingve•4d ago•16 comments

Linear Cosine Palettes(2025)

https://blog.djnavarro.net/posts/2025-09-14_cosine-palettes/
44•num42•9h ago•2 comments

Investigation: Russian censorship systems (TMCT) expose Chinese DPI signatures

https://freenet.monster/china-unicom.html?lang=en
8•aliowka•1h ago•1 comments