Answer: What you've uncovered are most likely cranefly pupa. When the larvae hatch they feed on the roots of plants. As long as the population isn't too high they won't do a lot of damage to the roots of your plants. I'd pick them out of the soil as you turn it over. Any that you miss will be snatched up by birds or attacked by ground beetles and other predators.
Best wishes with your garden!
Q&A Library Searching Tips