When should I tamp the coffee? I have a Sage Dual Boiler coffee machine, using the stock portafilter and baskets. Should I tamp the coffee in the basket and then insert into the portafilter, or insert the basket first into portafilter and then tamp?
I am unaware if this specific machine has specific requirements. If this is the case, please mention.

I mostly prefer to tamp the coffee after I put it in the portafilter. It's harder to carry the basket with coffee in it. Also it's harder to tamp the basket without easily holding it in place.