Nathan Hodgson
Library
Setup guidesBeginner1 min readUpdated

Claude Code Canary Trick: Catch a Session Before It Breaks

Have Claude start every reply with your name. The moment it stops, that's your early warning the session has drifted and stopped reading your rules, so you can clear it before it wastes your afternoon.

Open code.claude.com

You should have Claude call you by your name in every single reply. Not because it's cute, but because it tells you the moment your session starts to fall apart. Peter Steinberger, one of the biggest Claude power users, calls this a canary: a tiny signal that warns you the second something stops working right.

Why a canary works

  • Claude doesn't go from perfect to hallucinating overnight. First it drops one instruction, then it starts guessing, then it's confidently wrong.
  • Your name is the first instruction to fall. If it stops appearing, your rules have stopped loading.
  • That makes the first invisible slip impossible to miss.

Step 1: Add the canary to your rules

Open your CLAUDE.md (or your rules file) and add one line:

Prompt
Start every single reply with my name.

Step 2: Watch the signal

  1. While Claude keeps opening replies with your name, your rules are loading and it's reading them.
  2. The second it forgets, treat that as your early warning.

Step 3: Clear and start fresh

When the canary dies, clear the session and start clean before it wastes your whole afternoon. Pair this with a handoff file if you want to carry the real work into the new session cleanly.