My Story AI Challenge Free Guides Get the free kitFree kit
← All free guides
RuleSet up ClaudeFree guide

The Canary Rule and When to Start a New Chat

Every chat has a memory limit, and Claude won't tell you when it starts losing your instructions. This gives you one line that warns you, the signs it's time to start fresh, and a prompt that carries your work into the new chat.

4 to copy4 steps7 min read
Zach CrawfordA free guide by Zach Crawford
Claude Code
Add this to my CLAUDE.md file. If there isn't one in this folder, make it. Keep anything that's already in the file.
## Name check
My first name is [your first name]. Start every reply to me with a short first line that begins with my name, like "[your first name], here it is." Put the rest of the reply under that line. Never put my name inside the work itself, like emails, posts and files.
This is how I check you're still following this file. If a reply doesn't start with my name, I'll know it's time to start a new chat.
The whole prompt is in this guide. One click copies it.

This is the start of a real prompt from this guide. It is not a result.

You've had a chat go great for an hour. Then it forgot a rule you gave it at the start, and you kept correcting it in the same chat.

That's not you doing it wrong. Every chat has a memory limit, and a long chat starts to lose what you told it early on. Claude won't stop and tell you when that happens.

So you give it a canary. One small rule that warns you before the work goes bad.

What the memory limit is

Everything in a chat sits in Claude's working memory: your messages, its answers, every file it read. That's called the context window. It's big, but it isn't endless.

When a chat in Claude Code gets close to full, it shrinks the older part into a summary so it can keep going. The summary keeps your requests and the main points. Detailed instructions from early in the chat can get lost.

You can see how full a chat is (type /context in Claude Code). But Claude won't say "I lost your rule." It keeps answering like nothing changed.

And a chat doesn't have to be full to drift. A chat stuffed with three old jobs gives you worse answers on the fourth. Anthropic's own Claude Code guide says to clear between jobs for that reason: a focused chat gets better answers.

1Make it say your name

Tell Claude to start every reply with your name. If the name is there, it's still following that rule, which is a good sign it's following the rest. You'll see it at the top of every reply, so the day it's missing, you'll notice.

Put the line in your rules file. In Claude Code that's CLAUDE.md, the file it reads every time you start a chat in that folder. Open Claude Code in your business folder, put your first name in both brackets, and paste this:

Copy and paste this
Add this to my CLAUDE.md file. If there isn't one in this folder, make it. Keep anything that's already in the file.

## Name check
My first name is [your first name]. Start every reply to me with a short first line that begins with my name, like "[your first name], here it is." Put the rest of the reply under that line. Never put my name inside the work itself, like emails, posts and files.
This is how I check you're still following this file. If a reply doesn't start with my name, I'll know it's time to start a new chat.

Then show me the file.

Claude Code asks before it saves the file. Say yes. From your next chat on, every reply should start with your name.

Keep the part about the first line and the work. When this guide was tested, a shorter version of the line had Claude start a welcome message to students with the reader's name.

One tip. In Claude Code, "remember this" saves to Claude's own notes, not your rules file. Ask it to add the line to CLAUDE.md, like the prompt above does, so you can see it and change it.

No rules file yet? Put your first name in both brackets and paste this as the first message of a new chat:

Copy and paste this
Before we start: my first name is [your first name]. Begin every reply to me with a short first line that begins with my name, like "[your first name], here it is." Put the rest of the reply under that line. Never put my name inside the work itself, like emails and posts. Keep doing this for this whole chat. It's how I check you're still following what I tell you.

In a plain chat, that line lives in the chat itself, so it can fade like everything else. That's what makes it a warning. When it goes, the other things you said early in the chat may be going too.

2When it stops, start fresh

The moment Claude stops using your name, it's a sign it's losing your instructions. Don't argue with it. Start a new chat.

Watch for these too. Any one of them is enough:

3Before you go, bring the important part

Starting fresh doesn't mean starting from zero. Ask for a short note on where you are and what's next. Paste it into the new chat.

Paste this into the old chat before you leave it:

Copy and paste this
I'm about to start a new chat. Write me a short carry-over note I can paste into it.

Use only what's in this chat. Don't add anything new, and don't fill gaps with guesses.

Keep the note under 200 words, in plain words, in this order:
1. The job: what we're working on, in one or two lines.
2. Done: what's finished, and where it's saved.
3. Decided: every rule and decision I gave you in this chat, including the plan if we made one. Keep my exact words for the rules. If I asked you to start every reply with my name, that's a rule too.
4. Next: the very next step.
5. Open: anything still unclear or waiting on me.

If you're not sure something was decided, put it under Open.

If finished work lives only in this chat and isn't saved anywhere, put the final version of each piece under the note, word for word. That part doesn't count toward the 200 words.

Read the note before you use it. If something is wrong or missing, fix it now. It's a lot easier here than three answers into the new chat.

If your work only lives in the chat, like emails you never saved, the prompt puts the final versions under the note. Without that, the new chat knows the emails exist but can't see a word of them.

Then start the new chat. In Claude Code, type /clear, or click + New in the desktop app. Your CLAUDE.md loads again on its own. Paste this, with your note under it:

Copy and paste this
Here's where I left off in my last chat. Read the note, then tell me in one or two lines what you'll do next. Wait for my OK before you start.

[paste the carry-over note here]

4Better yet, don't get there

I try not to get there at all. One job per chat, and /clear when it's done. Short chats forget less.

I run my business on Claude Code and Codex every day, and I keep one job per chat. When the job is done, I type /clear and start the next one clean. The rules file loads again on its own, and the old job doesn't come along.

What counts as one job? Something with one finish line: one email series, one sales page, one batch of posts. If you're about to type "OK, now something different," that's a new chat.

If one job runs long, use the carry-over note halfway through and finish it in a fresh chat.

The limitations you should know

Want the next guide? Follow @zachcrawford.ai

More free guides