Add a spoonful of tomato sauce to a cocotte. Add chickpeas, basil, half the red pepper flakes, and a sprinkle of parmesan. Add another spoonful of tomato sauce until cocotte is almost full (but make sure you leave enough room for the egg).
Crack an egg in the in the middle and top with a little more parmesan. Season with remaining red pepper flakes, salt and pepper. Bake for about 12 min or until white of egg is cooked through. Serve with crispy bread or pita. Enjoy!