claude-code - 💡(How to fix) Fix [FEATURE] make tools like ripgrep and fdfind a first class citizen [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#54800Fetched 2026-04-30 06:35:38
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×3

Code Example

## Shell tool preferences

- For file/directory searches: try `fd`, then `fdfind`, then `find` as a last resort.
- Use `rg` (ripgrep) instead of `grep` for content searches.

---

find ~/git/ -name "*.sh" | xargs grep -l "ticket"
find ~/git/ -type f | grep -iv "meta\|\.pyc\|__pycache__" | grep -E "tpm" -i | sort
etc...
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

Tools like fd and ripgrep are much faster than find and grep.

Even though I have added this section to CLAUDE.md, in several cases claude-code continues to ignore those instructions and just use old plain find and grep.

## Shell tool preferences

- For file/directory searches: try `fd`, then `fdfind`, then `find` as a last resort.
- Use `rg` (ripgrep) instead of `grep` for content searches.

Those tools are much faster and are well supported.

Some examples of shell commands I've seen claude do, ignoring the instructions

find ~/git/ -name "*.sh" | xargs grep -l "ticket"
find ~/git/ -type f | grep -iv "meta\|\.pyc\|__pycache__" | grep -E "tpm" -i | sort
etc...

Proposed Solution

I'd like for claude-code to never invoke grep or find when it can invoke rg and fd (or fdfind in some platforms)

Alternative Solutions

No response

Priority

Low - Nice to have

Feature Category

File operations

Use Case Example

No response

Additional Context

No response

extent analysis

TL;DR

Update claude-code to prioritize fd and rg over find and grep for file and content searches.

Guidance

  • Review the claude-code implementation to ensure it correctly reads and applies the shell tool preferences from CLAUDE.md.
  • Verify that fd and rg are installed and available in the system's PATH.
  • Consider adding a fallback mechanism to handle cases where fd or rg are not available, defaulting to fdfind or find and grep as specified.
  • Test claude-code with various search scenarios to ensure it uses the preferred tools.

Example

No code example is provided as the issue does not contain sufficient implementation details.

Notes

The solution relies on the assumption that claude-code is designed to read and apply the preferences from CLAUDE.md. If this is not the case, additional modifications may be necessary.

Recommendation

Apply workaround: Update claude-code to use fd and rg by default, with a fallback to find and grep when necessary, as this aligns with the user's preference for faster and well-supported tools.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [FEATURE] make tools like ripgrep and fdfind a first class citizen [1 participants]