Hey! Here's a quote from my recent Tidal Profile which is totally related:
I've been doing "production" sessions where I simply explore ideas, add new samples, and basically "write songs" in a way. As for performance, I like to select a list of "songs" (pre-made code snippets) which I'll use as starting points throughout the performance. I start with something and do some changes to it and try to find an improvisational flow, if I can't find it, or if the flow gets cut, I simply transition to the following song. The transitions might be seamless or abrupt, depending on what I'm going for. I don't like to use Tidal's transition functions, so I also play a lot with evaluating code at the exact time: risky, but fun.
I must clarify that getting a good balance between the "discomfort" of improvising and the pre-made/pre-thought stuff is hard. There's lots of times were I wish I had improvised more before going into a new section, and I end up running out of prepared snippets for the gig, heh. It's important to allow oneself to flow and try new stuff live