Sandbox demo

Searching the Codebase

Glob finds files by pattern. Grep finds content inside them. Knowing which to use is half the speed.

Glob is for 'where does X live': `**/*.test.ts` finds every test file. Grep is for 'who uses Y': `useAuth\(` finds every call site. The mistake new users make is greping when they should glob — slower, noisier.

When you're not sure, ask the agent for a plan first. It will pick correctly more often than you do.

Sandbox transcript
Claude Code · sandbox replay
Press Play to replay this transcript step-by-step.
0 / 4

The transcript is canned — no real API calls. The point is to internalize the loop: user → plan → tool → result → answer.

Check your understanding
Q1. When should you use Glob over Grep?
· Score 100% on the quiz.