Sweep a scanner's backlog

Clear a repository's scanner backlog on request, with every open finding judged and false positives confirmed with your agent.

On every turn, LeoPrevent judges the open scanner findings in the files your agent changes. A sweep does the same for a whole repository's backlog, when you ask for it. LeoPrevent judges every open finding from one scanner and your agent confirms the likely false positives. The real ones are sorted into small fixes and ones that need a person.

It only runs when a developer types it, in a repository whose scanner is connected.

What it sends#

A sweep sends LeoPrevent the full contents of every file that holds an open finding from that scanner, so each finding is judged in context. Secret files are never sent. A file with a leaked secret finding is never sent whole: only the flagged lines are, with values masked on your machine first. The agent shows this before it starts.

Run a sweep#

In Claude Code:

/leoprevent:sweep aikido

Use snyk, github (code scanning), github-issues or veracode in place of aikido for the other scanners. If you leave the scanner out, the agent asks which one. In GitHub Copilot, type /leoprevent sweep aikido. In Codex, ask Codex to run the LeoPrevent sweep for the scanner.

  1. The agent counts the open findings first, sending no code, and asks whether to sweep in batches or all at once.
  2. LeoPrevent judges the batch.
  3. The agent checks each likely false positive in the code and records whether it agrees. It does not change code during the sweep.
  4. The agent reports how many were false positives, which real findings are small fixes and which need a person.
  5. It asks whether to fix the small real ones, or sweep the next batch. Nothing is fixed until you answer.

Options#

AddWhat it does
planCount the open findings only. Sends no code.
allSweep every finding, batch after batch.
nextSweep the batch after the last one.
resolveCheck the real findings from the last sweep whose files have changed, and record the ones that are gone as fixed.

What happens to your answers#

Findings you agree are false positives are listed in Security tools. When someone confirms one there, or automatically if your Org uses Auto ignore false positives, it is ignored in Aikido or Snyk, dismissed in GitHub code scanning, closed as a GitHub issue, or proposed as a mitigation in Veracode. Real findings are recorded as existing flaws.

A real leaked secret always needs a person: the secret has to be rotated, not only removed from the code.

Updated 19 Nov 2026

Suggested articles