AI code planning