Run one formatter plan across a mixed-language repo and keep generated edits predictable with treefmt
Use treefmt when an agent needs one repo-level formatting plan across multiple languages instead of stitching formatter commands together ad hoc.
Prerequisites
treefmt, the underlying language formatters you plan to invoke, a repository-level treefmt configuration file, and shell access.
Installation
Basic usage or getting-started notes:
What if that single command would handle all the formatters in parallel? And only format files that have changed since the previous run?
When formatters are run in a script, they process all the files they encounter, regardless of whether or not
You can install treefmt by downloading the binary. Find the binaries for different architectures here.
Extracted from upstream docs: https://raw.githubusercontent.com/numtide/treefmt/HEAD/README.md