Skip to content

Duplicate guard

Stop finding duplicates in review

FlowKy keeps an index of every function and class in your repo. The moment your agent starts writing one that already exists, it gets the file and the line — and imports it instead.

Get FlowKy free

No card · Your own API key · Two minutes to set up

PreToolUse hook · fires on every write

You know this one

The third formatDate()

Your agent cannot see the 400 functions already in the repo. So it writes formatDate() again, in a third file, subtly different. Either you catch it in review, or nobody does — and the two versions drift apart quietly.

How it works

  1. The index is built from your code

    Every function, class and export in the repo, indexed on your machine. Nothing is uploaded; the index lives beside the project it describes.

  2. Every write is checked before it lands

    A hook fires on every file write the agent attempts. A new symbol that matches an existing one interrupts the write before it happens, not after.

  3. The agent gets the address, not a lecture

    It receives the existing symbol’s file and line, imports it, and moves on. No duplicate reaches the diff, so none reaches review.

Fair questions

Does this slow the agent down?
The check is a lookup against a local index, not a scan of the codebase, and it runs only on writes. Sessions that write nothing pay nothing.
What if the near-duplicate is intentional?
The agent is told what exists — it is not forbidden to write. It, and you, decide. Most of the time the right answer turns out to be an import.
Get FlowKy free

No card · Your own API key · Two minutes to set up

Also in the VS Code extension