The verdict
treefmt appears in 1 AI-ranked category — best position #3 for code formatter.
Near-tie with dprint for highly polyglot codebases because it takes the pragmatic approach of orchestrating each language's best native formatter behind one command, runs formatters in parallel, and can restrict work to changed files; particularly strong when a repo spans ecosystems such as Go, Rust, Python, Nix, C++, and TypeScript rather than mostly web languages. ([GitHub][2])
Gemini Purpose-built polyglot formatter orchestrator that unifies canonical language-native formatters (e.g., ruff, rustfmt, gofumpt, prettier) into a single parallelized, git-aware execution tree with centralized caching.
Claude A meta-formatter/orchestrator, not a formatter itself — the pragmatic real-world answer for genuinely polyglot repos: it dispatches each file type to the best native formatter (gofmt, rustfmt, Black/Ruff, Prettier, etc.) under one config and one command, with caching, so you get best-in-class per-language output.
Where treefmt falls short, per the models
- GPT It is a formatter multiplexer rather than a formatter engine, so teams must install, configure, version, and understand the underlying tools themselves.
- Claude Only as good as the tools you wire up; requires installing and version-pinning many underlying formatters, so setup and reproducibility overhead is real (mitigated but not eliminated by Nix).
- Gemini It is an orchestrator rather than a standalone formatting engine, requiring external toolchains and language runtimes to be pre-installed and managed on host systems.
Poll history — On this board 2 of 2 polls since Aug 22 · now #2
#3 → #2
Top alternatives per the models: dprint · Prettier · Spotless · Biome
Head-to-head — how the models call it
Watch treefmt
Boards re-poll weekly and the models change their minds. One short email only when treefmt's standing moves — a rank change, a rival overtaking, or new reasoning from the models. Nothing otherwise.
Embed your ranking badge
treefmt ranks #3 for best code formatter by AI-model consensus. Put the badge in your README, docs or site — it updates automatically as the models re-rank.
[](https://modelsagree.com/best/best-code-formatter?utm_source=badge&utm_medium=embed&utm_campaign=badge-treefmt)<a href="https://modelsagree.com/best/best-code-formatter?utm_source=badge&utm_medium=embed&utm_campaign=badge-treefmt"><img src="https://modelsagree.com/badge/treefmt.svg" alt="treefmt — ranked #3 for Best code formatter by AI models on ModelsAgree" height="28"></a>Rankings are computed from what the models answer, re-polled on demand · raw reasoning shown verbatim · methodology