Use cases / Tech leads
Keeping the codebase readable as it grows
Agents never remember that the helper already exists. Someone has to.
The problem
Code written fast is written twice. Duplicated helpers, functions that grew past anyone’s attention and tests that were never added are not bugs, so nothing flags them, and they are what makes the next change slow.
What visualdiff does
- Déjà vu finds new helpers that already exist under another name, and bodies copied from elsewhere in the change.
- Complexity, error handling, test and hygiene rules run over every line, with a severity that fits what the repository is.
- A prototype can be read with its maintainability rules off, so the noise is gone where it does not belong and present where it does.
In the sample, formatCents is written again in receipt.ts; format.ts already has it.
Related
- Reviewing pull requests written by agentsAgents open pull requests faster than anyone can read them. Read the 10% that decides whether it is safe.
- Large refactors that hide a behaviour changeA refactor is supposed to change nothing. Find the one line that does.
- Stopping hallucinated dependenciesSlopsquatting: attackers register the package names models invent. Catch them at review.
- Seeing which running systems a change reachesThe diff says rds.tf. The map says orders-db, the API in front of it, and the queue behind it.