claude-code - 💡(How to fix) Fix [DOCS] Native macOS/Linux builds still document `Glob` and `Grep` as separate tools [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#51781Fetched 2026-04-22 07:53:01
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3

Root Cause

This is especially misleading in pages that describe available tools, permissioning, or SDK allowedTools examples, because users on native macOS/Linux builds need to understand that search now routes through Bash instead of separate Glob/Grep tool calls.

RAW_BUFFERClick to expand / collapse

Documentation Type

Incorrect/outdated documentation

Documentation Location

https://code.claude.com/docs/en/tools-reference

Section/Topic

Built-in tools table and search-tool availability/platform behavior

Current Documentation

The docs currently say:

| Bash | Executes shell commands in your environment. See Bash tool behavior | | Glob | Finds files based on pattern matching | | Grep | Searches for patterns in file contents |

The SDK docs also still describe Glob and Grep as direct built-in tools:

| Glob | Find files by pattern (**/*.ts, src/**/*.py) | | Grep | Search file contents with regex |

No code.claude.com page currently documents the native macOS/Linux bfs / ugrep search behavior.

What's Wrong or Missing?

Changelog v2.1.117 says native macOS and Linux builds replace the separate Glob and Grep tools with embedded bfs and ugrep exposed through the Bash tool, while Windows and npm-installed builds stay unchanged.

The current docs still present Glob and Grep as normal built-in tools without any platform note, so they describe outdated behavior for native macOS/Linux builds.

This is especially misleading in pages that describe available tools, permissioning, or SDK allowedTools examples, because users on native macOS/Linux builds need to understand that search now routes through Bash instead of separate Glob/Grep tool calls.

Suggested Improvement

Update the tools documentation to add an explicit platform-availability note for search tools:

  • Native macOS/Linux builds: file/content search uses embedded bfs and ugrep through the Bash tool rather than separate Glob / Grep tool calls
  • Windows and npm-installed builds: existing Glob / Grep behavior remains unchanged

Then audit the pages that list built-in tools or show allowedTools examples so they either:

  • reflect the platform split directly, or
  • link back to a single authoritative availability note in tools-reference

Impact

Medium - Makes feature difficult to understand

Additional Context

Affected Pages:

PageContext
https://code.claude.com/docs/en/tools-referenceBuilt-in tools table still lists Glob and Grep as separate tools with no native-build caveat
https://code.claude.com/docs/en/how-claude-code-worksSearch capabilities are still described generically as pattern/file-content search
https://code.claude.com/docs/en/agent-sdk/overviewBuilt-in tools table and allowedTools: ["Read", "Glob", "Grep"] example assume direct Glob/Grep availability
https://code.claude.com/docs/en/agent-sdk/agent-loopBuilt-in tools and permission examples still describe Glob/Grep as direct search tools
https://code.claude.com/docs/en/agent-sdk/typescriptSDK reference still defines Glob and Grep tool inputs as standard built-in tools
https://code.claude.com/docs/en/agent-sdk/pythonSDK reference still defines Glob and Grep input/output schemas

Total scope: 6 pages affected

Source: Changelog v2.1.117

Exact changelog entry: Native builds on macOS and Linux: the Glob and Grep tools are replaced by embedded bfs and ugrep available through the Bash tool — faster searches without a separate tool round-trip (Windows and npm-installed builds unchanged)

extent analysis

TL;DR

Update the documentation to reflect the platform-specific behavior of search tools, noting that native macOS and Linux builds use embedded bfs and ugrep through the Bash tool, while Windows and npm-installed builds retain the separate Glob and Grep tools.

Guidance

  • Review the affected pages listed in the issue and update the documentation to include explicit platform-availability notes for search tools.
  • Add a note to the tools-reference page explaining the difference in search tool behavior between native macOS/Linux builds and Windows/npm-installed builds.
  • Audit the pages that list built-in tools or show allowedTools examples to ensure they reflect the platform split or link to a single authoritative availability note.
  • Consider adding a changelog entry or release note to inform users of the change in search tool behavior.

Example

No code snippet is necessary for this issue, as it is a documentation update.

Notes

The update should be applied to the 6 affected pages listed in the issue. The documentation change should be verified to ensure that it accurately reflects the current behavior of the search tools on different platforms.

Recommendation

Apply the workaround by updating the documentation to reflect the platform-specific behavior of search tools, as this will help to clarify the correct usage of the tools for users on different platforms.

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