HandbookIV the PraetoriumStarting a fresh context
IVthe Praetorium, Direct the agentStarting a fresh context
In plain words
A long chat makes the agent lose track of early details, so you open a new one and bring a short summary of what matters.
Where you see it
Two hours into a Cursor chat, the agent offers to create the notes table you made in the first ten minutes. Everything it can see at once (your messages, its replies, the files it read) is its context, and it has a size limit. In Claude Code, /clear starts over and /compact shrinks the chat to a summary.
What goes wrong
- Staying in a chat that has gone off the rails
Once a long chat is full of failed attempts, the agent keeps building on them. A clean start with a summary often solves in one reply what forty messages couldn't.
- Starting fresh with nothing
A new chat knows nothing about your app. Bring the summary, the stack and the files that matter, or keep them in a rules file.
- Pasting the summary without reading it
If the summary says the bug is fixed when it isn't, the new chat inherits the mistake. Correct it before you paste it.
What to tell your agent
Quick check
Sign in to earn +10 XP for itAfter three hours in one chat, the agent has started undoing fixes it made earlier. Best move?