GNU Findutils
$ gfind Foundation Med RiskGNU Findutils provides gfind (installed as find on Linux and gfind via Homebrew on macOS) and gxargs for recursive file tree filtering by name, timestamp, size, permissions, and depth. Supports -print0 and -printf, though it lacks JSON and exposes -delete/-exec.
brew install findutils Baseline Unix filesystem search and -print0 piping executes directly on local disks with zero MCP overhead.
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
Deterministic non-interactive search with -print0 and GNU -printf, but lacks --json and differs from macOS BSD find (-printf unavailable in BSD find).
- Supports
-print0,-printf, and-maxdepth - No
--jsonoutput; macOS installs binary asgfind
Read-only by default, but -delete (which implies -depth) and -exec can silently destroy files if predicate ordering is wrong.
-deleteordering mistakes (e.g.-delete -o ...) can delete unintended files
Preinstalled as find on Linux; brew install findutils provides gfind on macOS.
- Standard Linux tool; macOS requires
gfindprefix or PATH override
Universal expression engine for mtime, permissions, size, and -print0 | xargs -0 batching when fd is absent.
- Unmatched predicate expressiveness across Unix environments
Foundational GNU Project package maintained continuously under GPL-3.0-or-later.
- Official GNU Findutils distribution
Canonical GNU Findutils manual and find(1) man page.
- Official manual at gnu.org/software/findutils/manual
Security, Auth & Guardrails
None required; operates strictly on local filesystems.
100% free, offline, and open-source (GPL-3.0-or-later).
# GNU Findutils (gfind) Agent Rules - Prefer `fd` for repo searches; when using `gfind` (`find` on Linux), always prune `.git`/`node_modules` and bound `-maxdepth`. - NEVER run `-delete` or destructive `-exec` commands without first running the exact predicate read-only (`-print`).
Agent-Ready Command Recipes
Safe Read-Only Queries
gfind . -maxdepth 4 -path '*/.git' -prune -o -type f -name '*.py' -mtime -7 -print0
Prunes .git, bounds traversal to -maxdepth 4, and emits safe null-delimited paths (-print0).
gfind src -type f -printf '%s\t%TY-%Tm-%Td\t%p\n'
Uses GNU -printf to print file size, ISO date, and path cleanly without extra stat calls.
Strengths for Agents
- + Universal Linux availability with rich predicates (
-mtime,-size,-perm,-printf). - +
-print0handles filenames containing spaces or newlines safely.
Caveats & Pitfalls
- ! On macOS, Homebrew names the binary
gfindto avoid shadowing stock BSDfind(which lacks-printf). - ! Does not honor
.gitignore; misordered-deletepredicates can erase unintended files.