Nematodes hunt down insect larvae in the soil or on plant surfaces, burrow into their bodies, and take up residence in their blood vessels. There, they puke up the P. luminescens bacteria living inside them. Upon their release, the bacteria, which are bioluminescent and glow a soft blue, begin producing a number of chemicals that kill the insect host and suppress and kill all the other microorganisms already inside it. This leaves P. luminescens and their nematode partner to feed, grow and multiply without interruptions.
As the worms and the bacteria eat and eat and the insect corpse is more or less hollowed out, the nematode eats the bacteria. This isn’t a double cross, but part of the move to greener pastures. The bacteria re-colonize the nematode’s guts so they can hitch a ride as it bursts forth from the corpse in search of a new host.
The next meal shouldn’t be hard to find either, since P. luminescens already sent them an invitation to the party. Just before they got got back in their nematode taxi, P. luminescens were at critical mass in the insect corpse, and scientists think that that many glowing bacteria attract other insects to the body and make the nematode’s transition to a new host much easier.