A peptide ring can have a tail. When the beginning of a chain connects to a side group partway along its length, the residues beyond that junction remain outside the loop. Moving the junction changes the geometry of the molecule.
Kejia Yan and Ratmir Derda review chemical and enzyme-based approaches that bring this kind of variation to existing peptide collections. Their discussion makes clear why a library’s diversity depends on both the amino acid sequences it contains and the shapes those sequences can adopt.