Explore subagent for Claude Code

Map how a repository works with Claude Code’s Explore subagent and get file-level evidence before you make changes.

How to use the Explore subagent in Claude Code

  1. Start in the repository and name Explore when you want discovery without edits.
  2. Use the example below as a starting point and replace the sample task with your own.
Claude Code prompt · Try this example
Use the Explore subagent to trace a settings change from the form to persistence. Cite the functions and files and leave the workspace untouched.

Trace the settings save path

Ask for the form handler, the validation boundary, the server write, and the code that updates the UI. Open the cited files and confirm that the agent followed imports from the entry point you actually use.

Read-only context

Explore is intended for codebase research. The built-in starts without the project’s CLAUDE.md and Git status snapshot. Pass any constraints that matter to the research, such as which app or folder to inspect.

Browse Agents