Catch Duplicate Code Before It Ships | Optibot

New Release July 1, 2026 Code Review AI Reliability Duplicate Detection

Optibot Now Catches Duplicate Code Before It Ships

Optibot now detects duplicate code before every review, re-verifies prior issues more accurately, and handles model failures more gracefully.

Smarter reviews, fewer surprises

This release sharpens two things that quietly affect every review: whether Optibot spots code that already exists in your codebase before flagging it as new, and whether the verdicts it carries forward between pushes are still accurate.

Both improvements run automatically. Nothing to configure.

New: Duplicate code detection

One of the most common review notes is "this already exists somewhere." A helper function that duplicates one three files over, a validation pattern that was already extracted into a shared utility, a constant that lives in two places. These are easy to miss and expensive to fix after they have been merged.

Optibot now checks for this before every review runs. When it finds a meaningful match, it tells the reviewer exactly where the overlap lives so they can confirm whether it is a true duplicate or a justified variation, rather than either missing it entirely or having to go hunting.

Duplicate Code DetectionYOUR PR++++++YOUR CODEBASEsrc/utils/helpers.tsMatch found in utils/helpers.ts

Improvements

More accurate issue carry-forward

When Optibot flags an issue across multiple pushes, it tracks the status of each one. Previously, an issue that had not been addressed could persist with the same verdict even after subsequent changes resolved it.

Optibot now re-evaluates open issues whenever the relevant files change. Issues that were fixed get cleared. Issues that were not stay flagged. The thread reflects what is actually true in the current commit.

Manual re-reviews re-verify everything

Commenting #optibot review now triggers a full re-evaluation of all open prior issues, not just the ones in files changed most recently. When you explicitly ask for a fresh look, you get one across the entire pull request.

Under the Hood

Available on Pro and Enterprise plans.