Heat 2 tsp. olive oil in a medium skillet. Add onion and garlic and cook over medium high heat about 5 minutes, until beginning to soften. Add tomatoes and red pepper flakes and cook a few minutes more, stirring frequently. Remove from heat and add spaghetti, tossing lightly.
In a small bowl beat eggs lightly. Add to spaghetti and mix gently.
Wipe out skillet. Heat a bit more olive oil and add spaghetti mixture. Cook over low heat for about 10 minutes, until golden on the underside and nearly set on top. Season with salt and pepper to taste.
Top with parmagiana and broil until cheese is bubbly. Let set a few minutes before serving.