Skip to content

Instantly share code, notes, and snippets.

@justin-caldicott
Created June 5, 2026 11:01
Show Gist options
  • Select an option

  • Save justin-caldicott/7d145b7982b4bad43f8ed853eb7a1af6 to your computer and use it in GitHub Desktop.

Select an option

Save justin-caldicott/7d145b7982b4bad43f8ed853eb7a1af6 to your computer and use it in GitHub Desktop.
CLAUDE.md snippet to minimise permission prompts for simple search operations

Codebase Search and Navigation

Tool priority

  1. Claude native tools — fastest, always available, no dependencies
  2. IDE MCP tools — for semantic search and large codebase exploration
  3. Bash — never for search or read operations

Use native tools for

  • Reading a file when the path is known → Read
  • Listing directory contents → LS
  • Finding files by pattern → Glob
  • Simple, small-scope content search → Grep

Use IDE MCP tools for

  • Symbol, class, interface, or method lookup
  • Content search across a large or unfamiliar codebase
  • File discovery when project structure is unclear

Rider — C#, .NET, ASP.NET, Aspire, .csproj, .sln, or any backend .NET code
WebStorm — everything else

If only one IDE is open, use whichever is available.

Never use Bash for search or read operations

grep, find, rg, cat, ls — always use native or MCP tools. Bash only for operations no other tool can perform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment