logoalt Hacker News

nater5000today at 3:40 PM1 replyview on HN

I think people really need to focus more on working with limited contexts rather than trying to work around it. I really try to keep my sessions as short as possible and it helps a ton with keeping Claude (et al) focused.

Specifically, I like the "canary" trick that people have discussed where you add a small, innocuous rule to your CLAUDE.md like "When responding to me, start every sentence with my name." so that when Claude stops doing this, you know you've used way too much context and need to start a new session.


Replies

faizshahtoday at 4:13 PM

This or you just repeat the initial prompt every 200k tokens