How does a tiny worm decide when to bite?

Worm by name, worm by nature? Not so for these territorial nematodes.

microscope view of two nematodes C. elegans and P. pacificus
C. elegans worm (right) escaping the predatory P. pacificus worm (left). Credit: Salk Institute.