… inhibition among a small set of neurons allows worms to switch between long-lasting behavioral states. MIT … to sustain long-lasting behaviors, and yet flexibly switch between them as environmental conditions warrant. “For … begged the question: How does the worm decide to flip the switch? To find out, Ji and colleagues programmed a machine …