Find repetition across generated passages
Compare sentences and actions separately. An event may repeat even when the wording changes. Mark the first occurrence and cut the later one if it adds no consequence.
Try it
If a character checks the same lock twice, keep both only if the second attempt reveals new damage or reflects a changed plan.