Commands

Every LeoPrevent command you can run in your coding agent, what each one does, and where its full guide is.

Reviews run on their own when your agent finishes a turn. These commands are for everything else: connecting, testing, checking results, checking dependencies and clearing a scanner backlog.

In Claude Code and Hermes Agent they are slash commands, such as /leoprevent:stats. GitHub Copilot spells them with a space, such as /leoprevent stats. In other agents, ask the agent to run the LeoPrevent command by name, for example "run the LeoPrevent sweep for Aikido".

CommandWhat it doesGuide
/leoprevent:loginConnects this installation to your account. Opens your browser to approve it.Connect the plugin to your account
/leoprevent:set-licenseConnects with a licence key instead, where browser login is not possible.Connect the plugin to your account
/leoprevent:testWrites a scratch file with one planted flaw, lets LeoPrevent flag it and has the agent fix it, so you see a full review.Watch a review with /leoprevent:test
/leoprevent:statsSummarises your reviews, the flaws found and what was fixed, for a period, a repository or your team.See your results with /leoprevent:stats
/leoprevent:sweepJudges one scanner's open findings in this repository, in batches of 25 or all at once, and has your agent check the ones LeoPrevent thinks are false positives.Sweep a scanner's backlog
/leoprevent:scaShows the dependency scan for this project and offers to fix what has a safe fix.Dependency check

Sweep#

Name the scanner after the command. Leave it out and the agent asks.

/leoprevent:sweep aikido
ScannerAdd
Aikidoaikido
Snyksnyk
GitHub code scanninggithub
Scanner findings filed as GitHub issuesgithub-issues
Veracodeveracode

Then add one of these to change what it does:

AddWhat it does
planCounts the open findings only. Sends no code.
allSweeps every finding, batch after batch.
nextSweeps the batch after the last one.
resolveRechecks the real findings from the last sweep whose files changed, and records the fixed ones.

For example, /leoprevent:sweep snyk plan.

Stats#

Add what you want in plain words, such as /leoprevent:stats last 7 days, /leoprevent:stats in my-repo or /leoprevent:stats the team. The team view is for admins on the account.

Updated 19 Nov 2026

Suggested articles