Hook
More breakout videos from this creator.
How come Claude gets dumber and dumber the longer I talk to it? That happens because of something called context rot. The longer a conversation goes, the more stuff that a large language model has to pay attention to at the beginning of a chat, it's very easy for it to always focus on the most relevant information because that's all that's there. But as it gets longer and longer, there's more and more irrelevant information getting passed back and forth to the model. Things like tool calls that may not be relevant anymore, or your initial couple prompts which aren't relevant to your current goal. That makes sense, but how do people get around that? Once your context window hits 70 or 80% utilization, you can perform something called compaction to get some space back. And how does that work? Well, you basically just ask a large language model to summarize the current conversation and only keep the relevant info you need to continue working. Things like the current goal, the immediate next tasks, things you've tried that have failed, and any important decisions that will be relevant going forward. But you don't keep every single tool call, web searches that turned up irrelevant results, or the exact word for word conversation that you may have had with it. So does this let long conversation sort of, but compaction is a lossy operation. Every single time you do it, you lose those exact details of your conversation. After two or three compactions, I like to just run clear or start a new session.