I'm pleased to announce the release of fdu, the world's fastest disk usage and file tree analytics CLI+API.
Over the past few months, I found myself managing numerous worktrees with hundreds of thousands of files. Agents struggle to tally disk usage, file age, or know where to begin to clean up large folders.
fdu is an ground-up rewrite of both du and more modern tools like dust.
It's pre-built and distributed via uv so you can run it right now with `uvx fdu@latest`.
Thanks to an agentic performance iteration loop, it is the fastest tool of its kind, typically walking and tallying 5-10GB/s or 100-200K files/s on my old MacBook. That is ~9x faster than du and 10-100% faster than other modern native/Rust/Go options.
It's instant to install as a skill or use as a CLI. Or can be used as a Python or Rust API.
Other features: colored terminal output, tree views, last modification time for every directory (recursive), gitignore awareness, document analysis, and programming language detection (with code/comment/blank line tallies), filename and age filtering, native directory watching, a file cache for faster reruns, and parsable outputs like YAML and JSONL.
All my agents now use the fdu to disk usage. Give it a try and let me know if it's useful! Or what you'd like to see in it next.