fd
$ fd Community Low Riskfd traverses local directory trees in parallel while respecting .gitignore and hidden-file rules by default. Its concise path-per-line stdout, --type / --extension filters, and --print0 output make repository discovery deterministic and token-efficient for agents.
brew install fd Local fd enumerates thousands of paths in milliseconds with zero RPC round-trips or MCP schema 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
Strips ANSI colors on non-TTY pipes, supports --color never and --print0, and uses predictable line-per-path output despite lacking --json.
- Supports
--color never,-0/--print0, and clean non-TTY stdout
Strictly local read-only traversal by default, skipping .git and .gitignore entries automatically with zero network calls.
- Pure local file enumeration; no network or credential access
Single static Rust binary distributed via brew, cargo, and major Linux/Windows package managers.
- Cross-platform static binary for macOS, Linux, and Windows
Far faster and terser than POSIX find thanks to smart defaults and -e/-t/-d flags.
- Parallel directory traversal with built-in ignore filtering
Maintained under sharkdp/fd with broad ecosystem adoption and long-term stability.
- Active OSS repository under MIT / Apache-2.0
Clear --help, man page, and README examples for every filter flag.
- Comprehensive README and built-in
--helpdocumentation
Security, Auth & Guardrails
None required; operates purely on local readable filesystem paths.
100% free, offline, and open-source (MIT / Apache-2.0).
# fd Agent Rules - Always scope searches with `--max-depth` (`-d`) or target subdirectories to avoid flooding context. - Pass `--color never` (or rely on non-TTY pipe detection) and avoid `-x`/`-X` command execution unless explicitly needed.
Agent-Ready Command Recipes
Safe Read-Only Queries
fd -t f -e ts -d 4 --color never src/
Returns matching .ts files under src/ up to 4 levels deep without ANSI escape codes.
fd -H -t f -d 2 '\.ya?ml$' .
Uses -H to include hidden files while still honoring .gitignore exclusions.
Strengths for Agents
- + Millisecond parallel file discovery with
.gitignoreand.gitexcluded automatically. - + Concise
--type,--extension, and--max-depthflags keep agent context compact.
Caveats & Pitfalls
- ! Lacks a native
--jsonflag, though one-path-per-line and--print0are trivial to parse. - ! Packaged as
fdfindon Debian/Ubuntu unless aliased tofd.