I work in this space. We have some pretty sophisticated pilots in process right now for such an assistant. We can talk privately if you want to learn more. Expect to see a lot of this coming out over the next few years.
Do you traverse the AST and send it to a recurrent net? Do you compress the AST into a different representation first?