Rinse and pat dry the basil leaves. Peel the garlic cloves, if using whole. Prepare the baby spinach leaves — a pre-washed bag works fine.
Place all ingredients in a food processor, starting with the leaves on the bottom and ending with the olive oil.
Pulse on a chop setting until evenly chopped, then on a grind setting until coarsely ground but not pureed, with no large chunks remaining.
To make the breakfast flatbread: spread the pesto generously over a flatbread. Arrange cherry tomatoes and crack an egg into the center. Season with salt and pepper.
Bake at 400°F (205°C) for 12–15 minutes. Dollop extra pesto on top before serving.