A new kind of DNA circuitry can decode the complex chemical pulses cells use to signal that, for example, they're damaged or under attack. Building it into pills could allow them to release their pharmaceutical payload only when they detect the right signal, allowing them to target infections.