Programming living cells offers the prospect of harnessing sophisticated biological machinery for transformative applications in energy, agriculture, water remediation and medicine. Inspired by engineering, researchers in the emerging field of synthetic biology have designed a tool box of small genetic components that act as intracellular switches, logic gates, counters and oscillators.