nixfmt
$ nixfmt Community Low Risknixfmt (nixfmt) — Command-line tool to format Nix language code. Verified across Homebrew Core; included for structured shell automation under FCRS-1.0 baseline review.
brew install nixfmt Pure CLI utility (nixfmt); directly invoked in shell workflows without an equivalent MCP server layer.
At a Glance
- Command
- $ nixfmt
- FCRS-1.0 Score
- 68/100 (Usable w/ Caveats)
- Evidence Tier
- Low Confidence
- CLI vs MCP
- CLI Only
- Reviewed Date
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Registry-verified CLI binary (nixfmt); inspect --help output before assuming structured JSON flags.
- Indexed in Homebrew Core
Classified as low risk based on code-devops scope and upstream package metadata.
- Install channel verified via
brew install nixfmt - Declared license: MPL-2.0
Installable via brew install nixfmt across macos, linux.
- Primary install:
brew install nixfmt
Command-line tool to format Nix language code
- Official homepage/source: https://github.com/NixOS/nixfmt
community lineage tool maintained by nixos.
- Upstream repository: nixos/nixfmt
Upstream documentation linked at https://github.com/NixOS/nixfmt; baseline FCRS cap applies until local probe runs.
- https://github.com/NixOS/nixfmt
Security, Auth & Guardrails
Local execution tool; typically requires no external credentials unless targeting remote endpoints.
Open-source / free local execution; zero API token or SaaS billing overhead from the binary itself.
When invoking `nixfmt`, verify flags with `nixfmt --help` first, close stdin to avoid interactive prompts, and require confirmation before remote or destructive mutations.
Agent-Ready Command Recipes
Safe Read-Only Queries
nixfmt --help
Discover supported flags and subcommands for nixfmt before constructing automated calls.
nixfmt --version
Confirm nixfmt is installed and executable in PATH with zero side effects.
Strengths for Agents
- + Indexed in Homebrew Core with reproducible install via
brew install nixfmt - + Standalone CLI binary (
nixfmt) directly composable in shell pipelines
Caveats & Pitfalls
- ! Low-confidence baseline review: not yet locally probed on this host; run
nixfmt --helpto verify flags before scripting
Official References
Tested Agent Hosts
Follow Ecosystem Links
Related CLIs in Code & DevOps
View category hub →Modern Protocol Buffers CLI for linting, breaking-change detection, formatting, and codegen with `--error-format=json`.