Skip to content

[External Plugin]: leoprevent #6247

Open

Description

@syoung-leotrace

Plugin name

leoprevent

Short description

A Stop hook that has the Copilot agent review its own changes for security flaws and fix them before it finishes the turn. Requires a LeoTrace account. Each turn sends the changed code (the diff plus one hop of imported context), the prompt, and turn metadata including the developer's git name and email to the LeoTrace API for review; after a finding, the fix and the agent's reply are sent too. Secret files and symlinks are never read.

GitHub repository

leotrace-hq/leoprevent-plugin

Plugin path inside the repository

copilot/leoprevent

Ref to review

v0.2.46

Commit SHA to review

0ab0fadfc3af450a49f0b6d0d2ffefd89504c70c

Version

0.2.46

License identifier

Apache-2.0

Author name

LeoTrace

Author URL

https://leotrace.io

Homepage URL

https://leotrace.io

Keywords

security
code-review
appsec
secure-coding
vulnerabilities

Additional notes

Tested at this layout with Copilot CLI 1.0.105 and VS Code 1.144.1 on macOS: the hooks load, a planted SQL injection is reported to the agent, fixed and re-checked in the same session. The plugin fails open: if the LeoTrace API is unreachable or the account is not signed in, the turn ends normally.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions