Has anyone tried Canary Trick on claude/codex .md file? It's a fun trick though.
Commit
3533146
What's the canary trick
The trick is a single line in the CLAUDE.md file that instructs Claude to start every response with your name. This is called a canary, a small signal that warns you when something starts going wrong.
As long as Claude keeps starting its responses with your name, everything…
Ok i tried it out and I don't think it works. So far the canary hasn't failed and it always displayed but claude still sometimes forgets other stuff. I think the problem is that the canary by design injects itself continously into the context which makes it impossible to miss.
commit 3533146
@flopana i saw that coming! Recently claude is exponentially dialect about this kinda guardrails hacks.