ONE puppy went home with the actress playing the teacher. Another is now living with the actor portraying the father. The stage manager took one, as did a hairdresser, and the parents of a publicist.

During the 24-month Broadway run of “The Curious Incident of the Dog in the Night-Time,” 21 puppies — golden retrievers and others that look goldenish — have cycled through the show’s cast, appearing in a brief but reliably crowd-pleasing scene toward the end of the show. And as each one ages out of the role — as soon as the dogs grow too big to fit in a gift box, they are replaced — each has been adopted by a performer, a crew member or someone else connected to the theater industry.

“I hadn’t really discussed it with my husband, and we have a 6-year-old and an ancient Chihuahua, so it wasn’t the best time,” said Francesca Faridany, or Frankie, the actress who for the first year of the show’s run played the teacher, Siobhan, and developed a fondness for Bubba, who was Puppy No. 8. “But I thought, ‘Oh, my God, I want to take him.’” Bubba, a mixed-breed dog who arrived at the show from a shelter and stayed in the cast for about eight weeks because he remained small, now lives with Ms. Faridany and her family.

This unusual puppy pipeline — generally from a breeder to the stage, and from the stage to a home — is nearing an end: The producers of “Curious Incident” have announced that they are closing the Broadway production on Sept. 4. But it has created an unusual group of dog-owning theater lovers who can identify their pets by number (reflecting when they appeared in the show), get together for playdates, exchange dog-sitting and have a Facebook group for photos; some even attended games played by the Curious Dogs, the show’s Broadway Show League softball team.