Finely dice the onion and garlic. Heat the oil in a saucepan and fry the onions until translucent. Add the garlic, crumbled chilli pepper and herbs and sauté briefly. Stir in the tomatoes, season with salt and let the sauce simmer openly for about 10 minutes, stirring occasionally.
Cook the pasta in boiling salted water according to the instructions on the packet until it is firm to the bite.
Roughly chop the olives. Add the capers to the sauce and let it simmer for about five minutes.
Drain the pasta, mix into the sauce and season with salt and pepper. Slice the pecorino over it.