Seen those funny little narrow double tracks on the beach? It's a Sand scarab beetle larva:
Pericoptus truncatus is the largest of the New Zealand native scarab beetles. … The larvae, pupae and adults are common amongst the roots of marram grass and under or within driftwood.