ai agent bug fixing