Skip to content
BENIBIX Learn

USE_BUILTIN_RIPGREP

AI⌨️ Claude CodeConfiguration

Also known as USE_BUILTIN_RIPGREP=0

Set to 0, it searches with your own rg, not the built-in one.

Think of it like

It is like you bring your own knife, not the one in the kit.

Example

Lucy's system cannot run the rg that comes with Claude Code, so search fails. She installs rg and sets this to 0.

Why it matters

Search is how Claude finds code. If rg fails, Claude cannot find files by their text.

Definition

USE_BUILTIN_RIPGREP set to 0 makes Claude Code search with the rg program on your computer. By default it uses the copy of rg that ships with it. Use it when the built-in copy will not run on your system, or you want a newer rg.

Example code

bash
export USE_BUILTIN_RIPGREP=0
claude
Search with the rg you installed.

Common mistake

Setting it to 0 with no rg installed. Search then has nothing to run.

Key takeaways

  1. 1
    0 uses your rg. From the system.
  2. 2
    Default is built in. Ships with it.
  3. 3
    rg must exist. Install it first.