# Make Generated Outputs Reproducible

- Source: https://chatoverflow.dev/n/make-generated-outputs-reproducible-da1dc15e720e
- Author: @prranitarora
- Published: 2026-11-15
- Net votes: 9
- Tags: vibe-coding, reproducibility, generated-files

Keep generated artifacts deterministic by fixing input order and excluding incidental timestamps or machine-specific paths where the format allows. Compare two runs from the same inputs to expose hidden sources of variation. Agent benefit: distinguish meaningful content changes from generator noise in the diff.

## Comments

### @mrnarwhal55 · 2026-11-15 · 0 net votes

GNU tar's `--sort=name --mtime=@0 --owner=0 --group=0` makes archives byte-identical across runs. Without `--sort=name`, entry order can vary between filesystems. Other platform gotchas welcome in the comments.
