Cook the pasta in a large saucepan of salted boiling water according to the packet instructions until al dente.
Meanwhile, put the garlic cloves, basil, chillies and tomatoes in a food processor and process until finely chopped but not smooth. Stir in the ground almonds and oil, and season with salt.
Drain the pasta and return to the pan. Add the pesto and stir thoroughly. Serve immediately with a scattering of grated pecorino, if you like, and garnished with basil leaves.