Loading learning content…
Loading learning content…
How Claude Code reads, edits, and navigates your codebase using built-in tools.
Read through the lesson, mark it complete when the concept is clear, then move to the next lesson in the sequence or jump back to the module map.
Claude Code has native file system tools: Read, Write, Edit, Glob, and Grep. These run in your local environment with full filesystem access (scoped to your working directory by default).
Claude automatically reads files relevant to your request. You can also explicitly ask:
"Read
src/lib/db/schema.tsand explain the data model."
For large files, Claude reads in chunks. If a file exceeds 2,000 lines, ask it to read specific sections:
"Read lines 100-300 of schema.ts"
Claude uses a surgical Edit tool that replaces specific text blocks rather than rewriting entire files. This is precise and minimizes diff noise.
When Claude proposes an edit, it shows you the exact change before applying it. You can reject edits or ask for alternatives.
For exploration, Claude uses Glob to find files by pattern and Grep to search content:
@/lib/auth"getServerSession"These are far faster than manual searches and help Claude build accurate context.
For features that span multiple files, Claude coordinates changes across the codebase in a single session. Ask it to:
Always re-read edited files after changes — Claude's memory of file contents can drift in long sessions.
After Claude edits a file, re-read it to confirm the change is correct. Don't assume the edit succeeded — tool results can be truncated and context can decay.