Abstract. Gamma ray lines from cosmic sources convey the action of nuclear reactions in cosmic sites and their impacts on astrophysical objects. Gamma rays at characteristic energies result from nuclear transitions following radioactive decays or highenergy collisions with excitation of nuclei. The gamma-ray line from the annihilation of positrons at 511 keV falls into the same energy window, although of different origin. We present here the concepts of cosmic gamma ray spectrometry and the corresponding instruments and missions, followed by a discussion of recent results and the challenges and open issues for the future. Among the lessons learned are the diffuse radioactive afterglow of massive-star nucleosynthesis in 26 Al and 60 Fe gamma rays, which is now being exploited towards the cycle of matter driven by massive stars and their supernovae; large interstellar cavities and superbubbles have been recognised to be of key importance here. Also, constraints on the complex processes making stars explode as either thermonuclear or core-collapse supernovae are being illuminated by gamma-ray lines, in this case from shortlived radioactivities from 56 Ni and 44 Ti decays. In particular, the three-dimensionality and asphericities that have recently been recognised as important are enlightened in different ways through such gamma-ray line spectroscopy. Finally, the distribution of positron annihilation gamma ray emission with its puzzling bulge-dominated intensity disctribution is measured through spatially-resolved spectra, which indicate that annihilation conditions may differ in different parts of our Galaxy. But it is now understood that a variety of sources may feed positrons into the interstellar medium, and their characteristics largely get lost during slowing down and propagation of positrons before annihilation; a recent microquasar flare was caught as an opportunity to see positrons annihilate at a source.