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

fd

$ fd Community Low Risk
sharkdp (OSS) · Files & Search · MIT / Apache-2.0 · macos / linux / windows

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

FCRS-1.0 Score
94 /100
Excellent
Medium Confidence
Zero-Friction Install
brew install fd
CLI vs MCP Decision CLI Preferred vs MCP

Local fd enumerates thousands of paths in milliseconds with zero RPC round-trips or MCP schema 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 21 / 25

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
Trust & Safety 25 / 25

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
Setup & Portability 15 / 15

Single static Rust binary distributed via brew, cargo, and major Linux/Windows package managers.

  • Cross-platform static binary for macOS, Linux, and Windows
Utility & Efficiency 15 / 15

Far faster and terser than POSIX find thanks to smart defaults and -e/-t/-d flags.

  • Parallel directory traversal with built-in ignore filtering
Maintenance & Lineage 9 / 10

Maintained under sharkdp/fd with broad ecosystem adoption and long-term stability.

  • Active OSS repository under MIT / Apache-2.0
Docs & Verifiability 9 / 10

Clear --help, man page, and README examples for every filter flag.

  • Comprehensive README and built-in --help documentation

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; operates purely on local readable filesystem paths.

Side Effects
Read-Only
Cost & Quotas

100% free, offline, and open-source (MIT / Apache-2.0).

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

List TypeScript source files within depth limit
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.

Locate config files including hidden dotfiles
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 .gitignore and .git excluded automatically.
  • + Concise --type, --extension, and --max-depth flags keep agent context compact.

Caveats & Pitfalls

  • ! Lacks a native --json flag, though one-path-per-line and --print0 are trivial to parse.
  • ! Packaged as fdfind on Debian/Ubuntu unless aliased to fd.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI