Not sure if helpful, but my best algorithm leading to creative ideas/insights looks like this:
Spend a day working on things related to the topic you want to make progress on. Mostly not on the hardest parts, but keep the hard part in mind.
Get a night of good sleep (so e.g. don’t work late because this harms sleep, at least in my case)
On the following day, go for a long hike/bike, alone, in nice nature. The “alone” part is important. Also, soon after waking up (not after work or whatever). Maybe listen to some somewhat related podcasts but sufficiently boring ones such that your brain keeps getting to the thing you worked on yesterday.
When you’re back home, you should already have the ideas!
Qwen 3.6 has preserve_thinking option which I guess preserves thinking between turns. But I haven’t used that.