I've found it useful to have Claude Code basically take notes in a Markdown file as it's working. When needed, edit this manually + other context and feed it into a new session. This has been fairly useful for longer-running work.