Analyzes duplication reports or raw code, generates an iterative implementation plan to resolve duplications, waits for developer approval before executing, and completes the process by ensuring code quality and tests pass.