Claude Code Tips & Tricks
The habits that separate fighting the tool from moving fast with it — none of these are features, just ways of using the features already covered elsewhere in this section.
Beginner → Advanced
/clear between unrelated tasks costs nothing and removes an entire class of "why did it suggest that?" moments — see Avoiding Usage Limits for what actually fills a context window in the first place.
src/auth.py:142 instead of "the login function." A concrete, minimal repro ("run pytest tests/test_auth.py -k expired, it fails with X") beats a paragraph describing the symptom, because Claude can run it instead of inferring it.
DROP TABLE, an rm -rf) is worth reading in full before approving it, not reflexively confirming because the last five suggestions were fine.
.env files usually need their own install step the first time. Worth it for anything that would otherwise mean idling one session to babysit another: a long-running migration in one worktree while you keep reviewing PRs in the main one, or two genuinely independent features that don't touch the same files.
Ctrl+B while a Bash command it already started is running to move that one command to the background mid-flight (tmux users press it twice, since tmux intercepts the first one as its own prefix key). Either way you get a background task ID back immediately instead of a blocked turn.