nh-clean
$ nh Community Low Risknh-clean (nh) — Clean Nix profiles and delete unused and unreachable Nix store paths. Generations can be listed using nix-env --list-generations or nh os info.. Verified across tldr-pages Corpus; included for structured shell automation under FCRS-1.0 baseline review.
gh repo clone nix-community/nh Pure CLI utility (nh); directly invoked in shell workflows without an equivalent MCP server layer.
At a Glance
- Command
- $ nh
- FCRS-1.0 Score
- 70/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 (nh); inspect --help output before assuming structured JSON flags.
- Indexed in tldr-pages Corpus
- Command usage documented in tldr-pages
Classified as low risk based on files-search scope and upstream package metadata.
- Install channel verified via
gh repo clone nix-community/nh - Package checksum verified by upstream registry
Installable via gh repo clone nix-community/nh across macos, linux.
- Primary install:
gh repo clone nix-community/nh
Clean Nix profiles and delete unused and unreachable Nix store paths. Generations can be listed using nix-env --list-generations or nh os info.
- Official homepage/source: https://github.com/nix-community/nh#usage
community lineage tool maintained by nix-community.
- Upstream repository: nix-community/nh
Upstream documentation linked at https://github.com/nix-community/nh#usage; baseline FCRS cap applies until local probe runs.
- https://github.com/nix-community/nh#usage
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 `nh`, verify flags with `nh --help` first, close stdin to avoid interactive prompts, and require confirmation before remote or destructive mutations.
Agent-Ready Command Recipes
Safe Read-Only Queries
nh --help
Discover supported flags and subcommands for nh before constructing automated calls.
nh --version
Confirm nh is installed and executable in PATH with zero side effects.
Strengths for Agents
- + Indexed in tldr-pages Corpus with reproducible install via
gh repo clone nix-community/nh - + Includes practical community usage examples in tldr-pages for
nh
Caveats & Pitfalls
- ! Low-confidence baseline review: not yet locally probed on this host; run
nh --helpto verify flags before scripting