One thing I like to do for larger tasks is to first create a separate document and then prompt using the document, usually new session for each task. AI is good at slicing the task for itself and as a human in the loop its easier to understand the steps its performing and what is happening.
There are probably a million ready made solutions already but manual labour for context management still seems to get the best results for me personally.