AI Writes Code That Already Exists: Avoid Duplicate Work
AI often writes new helpers that already exist because it only sees a slice of the codebase, especially in multi-module repos. Duplicates can be exact, near, or semantic; semantic duplicates are the riskiest since the behavior is the same but the implementation differs. The article proposes a pre-ed