A mother accused of killing her son and disposing of his body in Maine has agreed to plead guilty to second-degree murder, according to court paperwork.