Claude Code has a /compact command that summarises the conversation so far to save on context tokens.