Docs
When Claude Code runs out of context
What to do after Claude Code forgets the decisions you already made.
Claude Code can run out of context in the middle of a task. The transcript is still on disk somewhere, but the next session does not know which of those two hours were decisions and which were dead ends. People describe it the same way: two hours of decisions, gone.
What you actually needed
Not a longer context window. A short record of what changed in the repo, what is still half built, and what you already settled. Plotkeep writes that record from commits and, if you paste it, from the Claude Code transcript.
A way back in
- Connect the repo, or open the harbor demo and see the shape of it.
- Read the last day. The recap is grouped by area, not dumped as a git log.
- Check the decision log. Correct anything the commit message got wrong.
- Copy the context pack into the new Claude Code session before you ask for more code.
The pack tells the agent what not to reopen. That is the part a raw diff never says.