Watch a review with /leoprevent:test

Watch LeoPrevent flag a deliberate flaw in a throwaway file, your agent fix it, and the record appear on your dashboard.

/leoprevent:test runs one real review end to end on your machine, using a throwaway file.

Before you start#

  • The plugin is installed and connected.
  • You are in a project folder, ideally a git repository.

Run the test#

/leoprevent:test

Codex cannot add slash commands, so the test is not available there.

  1. The agent writes a new scratch file at the top of your repository, named leoprevent-test- followed by a timestamp. It holds one small function with a database query built from request input.
  2. The agent ends its turn, and LeoPrevent reviews it.
  3. LeoPrevent gives the agent the finding with the reason and the safe fix, and the agent changes the query to a safe, parameterised one.
  4. The agent tells you which finding came back and what it changed.

Check it worked#

The finding then appears in Findings on the dashboard, with the fix recorded against it. It is a real record and counts in your totals.

If no finding came back, the agent says so and changes nothing. See A turn wasn't reviewed.

Clean up#

The agent offers to delete the scratch file. Say yes in your next message, once the fix has been checked.

The test sends nothing beyond a normal review of that one file.

Updated 19 Nov 2026

Suggested articles