{"slug":"treefmt","name":"treefmt","domain":"treefmt.com","verdict":"As of 2026-08-23, ChatGPT, Claude, Gemini, Grok collectively rank treefmt #3 of 8 for code formatter. Source: https://modelsagree.com/product/treefmt (modelsagree.com, CC BY 4.0).","best_rank":3,"categories":1,"entries":[{"slug":"best-code-formatter","title":"Best code formatter","rank":3,"of":8,"score":9,"appearances":3,"modelRanks":{"ChatGPT":2,"Claude":4,"Gemini":3},"reason":"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])","reasons":[{"model":"ChatGPT","reason":"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])"},{"model":"Gemini","reason":"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."},{"model":"Claude","reason":"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."}],"fixes":[{"model":"ChatGPT","fix":"It is a formatter multiplexer rather than a formatter engine, so teams must install, configure, version, and understand the underlying tools themselves."},{"model":"Claude","fix":"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)."},{"model":"Gemini","fix":"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."}],"updated":"2026-08-23","rank_history":{"days":["2026-08-22","2026-08-23"],"ranks":[3,2]},"api":"https://modelsagree.com/api/v1/best/best-code-formatter.json"}],"page":"https://modelsagree.com/product/treefmt","check":"https://modelsagree.com/check?q=treefmt","updated":"2026-09-09T13:07:58.066Z","attribution":"modelsagree.com, CC BY 4.0"}