Mince the garlic and onion.
Cut the cherry tomatoes in half.
Heat olive oil in a pan and sauté the garlic and onion.
Add anchovies, olives, and capers and stir-fry.
Add cherry tomatoes and tomato sauce, then bring to a simmer.
Add the cooked pasta and mix well.
Season with salt and pepper to taste.