Throughout the animal kingdom, several members of the basic helix-loop-helix (bHLH) family act as proneural genes during early steps of nervous system development. Roles of bHLH genes in specifying terminal differentiation of postmitotic neurons have been less extensively studied. We analyze here the function of fiveC. elegansbHLH genes, falling into three phylogenetically conserved subfamilies, which are continuously expressed in a very small number of postmitotic neurons in the central nervous system. We show (a) that two orthologs of the vertebrate bHLHb4/b5 genes, calledhlh-17andhlh-32,function redundantly to specify the identity of a single head interneuron (AUA), as well as an individual motor neuron (VB2), (b) that thePTF1aorthologhlh-13acts as a terminal selector to control terminal differentiation and function of the sole octopaminergic neuron class inC. elegans, RIC, and (c) that the NHLH1/2 orthologhlh-15controls terminal differentiation and function of the peptidergic AVK head interneuron class, a known neuropeptidergic signaling hub in the animal. Strikingly, through null mutant analysis and cell-specific rescue experiments, we find that loss ofhlh-15/NHLHin the peptidergic AVK neurons and the resulting abrogation of neuropeptide secretion causes a substantially expanded lifespan of the animal, revealing an unanticipated impact of a central, peptidergic hub neuron in regulating lifespan, which we propose to be akin to hypothalamic control of lifespan in vertebrates. Taken together, our functional analysis reveals themes of bHLH gene function during terminal differentiation that are complementary to the earlier lineage specification roles of other bHLH family members. However, such late functions are much more sparsely employed by members of the bHLH transcription factor family, compared to the function of the much more broadly employed homeodomain transcription factor family.