German biologists have identified specific brain circuits that determine which jobs worker bees perform inside a colony.The study, published in PNAS, reveals that a gene called doublesex acts as a neural switch controlling age-related task allocation.Young bees typically care for the queen and larvae, while older bees build the hive and defend it.When the gene was deactivated in older worker bees, they began caring for the queen again — a job normally performed only by younger bees.This suggests doublesex plays a crucial role in programming the bee brain for different roles.The discovery offers new insight into how a bee colony organizes its workforce without any central leader assigning tasks.