Awesome Reviewers

Verification · Static analysis · Duplicate code detection

Semantic reuse check

Search the codebase for an existing function that does what the new code does, by embedding or by name.

How to build it

  1. Embed the signature and docstring of each existing function in the repository.
  2. Query that index with each new function and show the nearest matches in review.
  3. Ask the author to reuse or justify a new helper that closely matches an existing one.

Signals in a repository

  • An index build script or cached embedding file for function signatures.
  • A CI or bot step that posts nearest-match suggestions on new functions.
  • Review comments that point to an existing helper for a new function.

In practice

No scanned repository runs a tool for this check. The steps above are the only guidance.