Put the pasta on to cook in plenty of boiling, salted water
Melt the butter in a large, lidded frying pan. Add the crushed garlic and chilli flakes and cook out for a minute or so, stirring
Mix the miso with a little of the pasta water, then add it to the pan with the wine and let that bubble down
Add a ladleful of the pasta water and let it cook down, stirring to emulsify the sauce
Add the clams and samphire, then turn up the heat to medium/high and add another splash of pasta water. Put a lid on and let them steam for around 4 minutes, or until all the clams have opened up
Remove the lid and drop in the spaghetti. Toss aggressively, adding more pasta water if necessary - the pasta should be coated in a deliciously silky sauce