A woman charged with the overdose death of her 5-year-old grandson pleaded guilty in an agreement filed Tuesday.