Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

GNU Findutils

$ gfind Foundation Med Risk
GNU · Files & Search · GPL-3.0-or-later · macos / linux / windows

GNU 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.

FCRS-1.0 Score
83 /100
Good
Medium Confidence
Zero-Friction Install
brew install findutils
CLI vs MCP Decision CLI Only

Baseline Unix filesystem search and -print0 piping executes directly on local disks with zero MCP overhead.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
✓ Read-Only Mode
✓ NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 17 / 25

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 --json output; macOS installs binary as gfind
Trust & Safety 21 / 25

Read-only by default, but -delete (which implies -depth) and -exec can silently destroy files if predicate ordering is wrong.

  • -delete ordering mistakes (e.g. -delete -o ...) can delete unintended files
Setup & Portability 13 / 15

Preinstalled as find on Linux; brew install findutils provides gfind on macOS.

  • Standard Linux tool; macOS requires gfind prefix or PATH override
Utility & Efficiency 13 / 15

Universal expression engine for mtime, permissions, size, and -print0 | xargs -0 batching when fd is absent.

  • Unmatched predicate expressiveness across Unix environments
Maintenance & Lineage 10 / 10

Foundational GNU Project package maintained continuously under GPL-3.0-or-later.

  • Official GNU Findutils distribution
Docs & Verifiability 9 / 10

Canonical GNU Findutils manual and find(1) man page.

  • Official manual at gnu.org/software/findutils/manual

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; operates strictly on local filesystems.

Side Effects
Read-Only Local Write Destructive
Cost & Quotas

100% free, offline, and open-source (GPL-3.0-or-later).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Find recently modified Python files null-delimited
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).

Emit structured tab-delimited size and mtime records
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).
  • + -print0 handles filenames containing spaces or newlines safely.

Caveats & Pitfalls

  • ! On macOS, Homebrew names the binary gfind to avoid shadowing stock BSD find (which lacks -printf).
  • ! Does not honor .gitignore; misordered -delete predicates can erase unintended files.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI