Warm the oil and aromatics. In a large, wide pot or deep skillet, heat olive oil over medium. Add the sliced onion and a pinch of salt.
Cook 3–4 minutes until softened. Stir in garlic and red pepper flakes and cook 30 seconds, just until fragrant.
Build the base. Add crushed tomatoes, broth, salt, pepper, and sugar if using. Stir well and bring to a gentle simmer.
Taste and adjust salt now—you want it well seasoned.
Add the pasta. Lay the spaghetti in the pot. Use tongs to press and twist the strands so they’re mostly submerged. It’s fine if a few ends poke out—they’ll soften as you stir.
Simmer and stir. Cook uncovered at a steady simmer, tossing with tongs every minute or two to prevent sticking.
Add a splash of hot water if the liquid reduces too quickly. This usually takes 9–12 minutes, depending on your pasta.
Check doneness and texture. When the pasta is al dente, the sauce should be silky and clinging. If it’s too thin, simmer 1–2 minutes more.
If it’s too thick, add a small splash of water to loosen.
Finish with freshness. Stir in cherry tomatoes (if using), most of the torn basil, and the cheese. Add lemon zest for brightness if you like. Drizzle with another teaspoon of olive oil for a glossy finish.
Taste and adjust seasoning.
Serve hot. Plate immediately with extra basil and more grated cheese. A few grinds of black pepper on top are perfect.