The eggs then hatch into larvae that secrete chemicals which reprogram the bud to grow into an initially hairy red or green .