Dice the onions and potatoes into small cubes.
In a skillet, warm the oil and add the diced potatoes to fry. Keep stirring continuously until the potatoes begin to change color. Then, incorporate the chopped onions and sauté for a few minutes over medium heat.
Season with salt, red chili powder, and black pepper powder. Mix well to ensure the spices blend with the sautéed onions and potatoes.
Next, add chopped tomatoes and stir well to combine.
Cover the pan for 3 minutes to allow the vegetables to cook on low heat, using the steam from the tomatoes.
After 3 minutes, pour whole eggs over the vegetable mixture.
Cover the skillet for 2 minutes to achieve perfectly poached eggs.
After 2 minutes, the Afghani eggs are ready to be served. Garnish with julienned red or green chilies.
Serve hot alongside your favorite bread.