Soak rice noodles in lukewarm water for 25 minutes until pliable but firm, then drain.
Whisk tamarind paste, fish sauce, palm sugar, and chili flakes in a bowl until sugar is dissolved to create the sauce.
Heat 1 tablespoon of oil in a wok over high heat and sauté chicken until fully cooked, then remove and set aside.
Add remaining oil to the wok and sauté garlic and tofu for 30 seconds.
Add drained noodles and sauce to the wok and stir-fry over medium-high heat until noodles absorb the liquid and soften.
Push noodles to one side, pour in the egg, and scramble until set before mixing into the noodles.
Add cooked chicken, bean sprouts, and green onions and toss for 1 minute until well combined.
Serve immediately garnished with crushed peanuts and lime wedges.