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".
| Command | What it does | Guide |
|---|---|---|
/leoprevent:login | Connects this installation to your account. Opens your browser to approve it. | Connect the plugin to your account |
/leoprevent:set-license | Connects with a licence key instead, where browser login is not possible. | Connect the plugin to your account |
/leoprevent:test | Writes 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:stats | Summarises your reviews, the flaws found and what was fixed, for a period, a repository or your team. | See your results with /leoprevent:stats |
/leoprevent:sweep | Judges 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:sca | Shows 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| Scanner | Add |
|---|---|
| Aikido | aikido |
| Snyk | snyk |
| GitHub code scanning | github |
| Scanner findings filed as GitHub issues | github-issues |
| Veracode | veracode |
Then add one of these to change what it does:
| Add | What it does |
|---|---|
plan | Counts the open findings only. Sends no code. |
all | Sweeps every finding, batch after batch. |
next | Sweeps the batch after the last one. |
resolve | Rechecks 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.