Use cases/Exploring a Codebase

Exploring a Codebase

Discovery with glob, grep, reads, and optional Explore agent

Before changing anything, Claude Code maps the tree and reads selectively. Tool-usage guidance tells the model when to prefer fast search vs deep reads; the Explore agent can take over for broad reconnaissance.

6 stepsnavigationread-onlyagents

Step-by-step breakdown

1
โš™๏ธStart as coding agent
Identity & Introduction
Hide

The session is framed as a software engineering assistant with the same global guardrails as any other task.

Use the instructions below and the tools available to you to assist the user.
Techniques
role-settingguardrailsscope-limiting
2
โš™๏ธWhen to use which tool
Tool Usage & Parallelism
Show
3
๐Ÿ”งMap file patterns
Glob Tool
Show
4
๐Ÿ”งSearch contents
Grep Tool
Show
5
๐Ÿ”งRead key files
File Read Tool
Show
6
Show