Diana Hu: Inserting canary facts tests if an LLM's context has degraded
Diana Hu · We're All Addicted To Claude Code · Y Combinator · Feb 6, 2026 · at 16:00
Y Combinator Group Partner Diana Hu discusses methods founders use to detect context window degradation in coding agents.
“One of the tricks that I think founders use is you put like a cannery at the beginning of the context. There's something very esoteric that it would only help. It's like something really funny. It's like, I don't know. My name is Calvin and blah, blah, blah. I drink tea at eight AM. Some random fact. And then as you keep going, you ask it, do you remember what's my name? Do you remember when I drank tea? And then when it starts forgetting that, I think is a bit of a sign that the context has poison.”
quote is from the automated transcript, cleaned for reading: filler sounds and stutters are removed, nothing is rephrased. names can be misheard (the analysis reads context, assessments check outside sources). how →