How to use the Explore subagent in Claude Code
- Start in the repository and name Explore when you want discovery without edits.
- Use the example below as a starting point and replace the sample task with your own.
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.