Autofac

"Autofac" was originally published in the November 1955 issue of Galaxy Science Fiction (not to be confused with cover featuring author James H. Schmitz).

"Autofac" is a 1955 science fiction novelette by American writer Philip K. Dick that features one of the earliest treatments of self-replicating machines (and Dick's second, after his 1953 novelette Second Variety). It appeared originally in Galaxy Science Fiction of November 1955, and was reprinted in several collections, including The Variable Man published in 1957, and Robots, Androids, and Mechanical Oddities published in 1984.

It was adapted by Travis Beacham for an episode of the 2017 TV series, Philip K. Dick's Electric Dreams, with the same name as the short story.