{"version":"2.1.71","anchor":"embedded-search-tools-bfs-ugrep","canonical_anchor":"embedded-search-tools-bfs-ugrep","heading":"Embedded Search Tools (bfs\/ugrep)","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.71\/e\/embedded-search-tools-bfs-ugrep","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.71","markdown":"### Embedded Search Tools (bfs\/ugrep)\n\n**What**\n\nWhen enabled, Claude Code shadows the system `find` and `grep` commands with faster embedded alternatives \u2014 `bfs` (breadth-first search) and `ugrep` \u2014 providing significantly improved search performance in the shell.\n\n**Details**\n\n- `find` is shadowed with `bfs` (breadth-first file search), configured with `-regextype findutils-default` for compatibility\n- `grep` is shadowed with `ugrep`, configured with `--ignore-files`, `--hidden`, `-I` (skip binary), and automatic exclusion of `.git`, `.svn`, `.hg`, `.bzr` directories\n- Controlled by the `EMBEDDED_SEARCH_TOOLS` environment variable\n- Only active when not running via SDK entrypoints (sdk-ts, sdk-py, sdk-cli)\n- Shell aliases for `find` and `grep` are unaliased first to avoid conflicts\n- A tip in the system prompt mentions: \"When using `find -regex` with alternation, put the longest alternative first\"\n\n**Evidence**\n\nShell shadowing setup (search for `\"unalias find 2>\/dev\/null\"`) \u2014 `e6Y` at line ~245057. Feature gate (search for `\"EMBEDDED_SEARCH_TOOLS\"`)"}