Blend the garlic, almonds, pepper flakes, basil leaves, tomatoes and then the sea salt in a food processor or blender. Blend for about a minute or so, scrape down the sides and then blend again until no large bits are visible.
While the machine is running gently stream in the o;I''ve oil until the pesto is smooth and well blended.