Steam the chopped beans, dont make them too soft and mushy.
Dry roast cumin seeds (1/2 tsp), coriander seeds, cardamom and cinnamon for a minute. Don’t burn the spices. Cool and grind them along with roasted peanuts and enough water to make a thick paste.
Heat oil in a cooking vessel and add 1/2 tsp cumin seeds and let them brown a bit, add the dry red chillis, curry leaves, crushed garlic and green chillis and toss them for a few seconds.
Add the chopped onions and saute them till transparent.
Add the steamed beans and salt and cook covered on medium heat for 4-5 mts.
Add the ground peanut paste and combine it well and cook covered for 2-3 mts. Turn off heat.