[Bug] Grep tool ignores USE_BUILTIN_RIPGREP setting

Resolved 💬 3 comments Opened Aug 23, 2025 by Wowfunhappy Closed Aug 29, 2025

Bug Description
Claude's grep tool is still using the built-in ripgrep binary even though USE_BUILTIN_RIPGREP is set to 0 in settings.json.

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 1.0.89
  • Feedback ID: eec9db8d-b834-4f6d-bab1-30f5db7cbf45

Errors

[{"error":"Error: Command failed: /usr/local/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/x64-darwin/rg --files --hidden /Users/Jonathan/Desktop\ndyld: cannot load 'rg' (load command 0x80000034 is unknown)\n\n    at genericNodeError (node:internal/errors:985:15)\n    at wrappedFn (node:internal/errors:539:14)\n    at ChildProcess.exithandler (node:child_process:417:12)\n    at ChildProcess.emit (node:events:508:28)\n    at ChildProcess.emit (node:domain:489:12)\n    at maybeClose (node:internal/child_process:1101:16)\n    at Socket.<anonymous> (node:internal/child_process:457:11)\n    at Socket.emit (node:events:508:28)\n    at Socket.emit (node:domain:489:12)\n    at Pipe.<anonymous> (node:net:346:12)","timestamp":"2025-08-23T21:31:12.494Z"},{"error":"Error: Command failed: /usr/local/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/x64-darwin/rg --hidden RIPGREP /Users/Jonathan/Desktop/test.txt\ndyld: cannot load 'rg' (load command 0x80000034 is unknown)\n\n    at genericNodeError (node:internal/errors:985:15)\n    at wrappedFn (node:internal/errors:539:14)\n    at ChildProcess.exithandler (node:child_process:417:12)\n    at ChildProcess.emit (node:events:508:28)\n    at ChildProcess.emit (node:domain:489:12)\n    at maybeClose (node:internal/child_process:1101:16)\n    at Socket.<anonymous> (node:internal/child_process:457:11)\n    at Socket.emit (node:events:508:28)\n    at Socket.emit (node:domain:489:12)\n    at Pipe.<anonymous> (node:net:346:12)","timestamp":"2025-08-23T21:31:19.572Z"},{"error":"Error: Command failed: /usr/local/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/x64-darwin/rg --hidden test /Users/Jonathan/Desktop/test.txt\ndyld: cannot load 'rg' (load command 0x80000034 is unknown)\n\n    at genericNodeError (node:internal/errors:985:15)\n    at wrappedFn (node:internal/errors:539:14)\n    at ChildProcess.exithandler (node:child_process:417:12)\n    at ChildProcess.emit (node:events:508:28)\n    at ChildProcess.emit (node:domain:489:12)\n    at maybeClose (node:internal/child_process:1101:16)\n    at Socket.<anonymous> (node:internal/child_process:457:11)\n    at Socket.emit (node:events:508:28)\n    at Socket.emit (node:domain:489:12)\n    at Pipe.<anonymous> (node:net:346:12)","timestamp":"2025-08-23T21:31:23.462Z"},{"error":"Error: Command failed: /usr/local/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/x64-darwin/rg --hidden USE_BUILTIN_RIPGREP /Users/Jonathan/.config/claude-code/settings.json\ndyld: cannot load 'rg' (load command 0x80000034 is unknown)\n\n    at genericNodeError (node:internal/errors:985:15)\n    at wrappedFn (node:internal/errors:539:14)\n    at ChildProcess.exithandler (node:child_process:417:12)\n    at ChildProcess.emit (node:events:508:28)\n    at ChildProcess.emit (node:domain:489:12)\n    at maybeClose (node:internal/child_process:1101:16)\n    at Socket.<anonymous> (node:internal/child_process:457:11)\n    at Socket.emit (node:events:508:28)\n    at Socket.emit (node:domain:489:12)\n    at Pipe.<anonymous> (node:net:346:12)","timestamp":"2025-08-23T21:31:29.639Z"},{"error":"Error: Command failed: /usr/local/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/x64-darwin/rg --hidden -l test /Users/Jonathan/Desktop\ndyld: cannot load 'rg' (load command 0x80000034 is unknown)\n\n    at genericNodeError (node:internal/errors:985:15)\n    at wrappedFn (node:internal/errors:539:14)\n    at ChildProcess.exithandler (node:child_process:417:12)\n    at ChildProcess.emit (node:events:508:28)\n    at ChildProcess.emit (node:domain:489:12)\n    at maybeClose (node:internal/child_process:1101:16)\n    at Socket.<anonymous> (node:internal/child_process:457:11)\n    at Socket.emit (node:events:508:28)\n    at Socket.emit (node:domain:489:12)\n    at Pipe.<anonymous> (node:net:346:12)","timestamp":"2025-08-23T21:31:59.534Z"},{"error":"Error: Command failed: /usr/local/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/x64-darwin/rg --hidden .* /Users/Jonathan/Desktop/test.txt\ndyld: cannot load 'rg' (load command 0x80000034 is unknown)\n\n    at genericNodeError (node:internal/errors:985:15)\n    at wrappedFn (node:internal/errors:539:14)\n    at ChildProcess.exithandler (node:child_process:417:12)\n    at ChildProcess.emit (node:events:508:28)\n    at ChildProcess.emit (node:domain:489:12)\n    at maybeClose (node:internal/child_process:1101:16)\n    at Socket.<anonymous> (node:internal/child_process:457:11)\n    at Socket.emit (node:events:508:28)\n    at Socket.emit (node:domain:489:12)\n    at Pipe.<anonymous> (node:net:346:12)","timestamp":"2025-08-23T21:32:03.372Z"},{"error":"Error: Command failed: /usr/local/lib/node_modul

Note: Error logs were truncated.

(Note on the error log: on my system, it is expected that the built-in ripgrep binary will not run. However, it shouldn't be _trying_ to run the built-in ripgrep, I set USE_BUILTIN_RIPGREP to 0 so it will use the system copy, which works fine!)

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗