RFC: AI-powered vulnerability explanations via --explain flag #330
sonukapoor
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What we're considering
We're exploring an opt-in
--explainflag that calls an LLM (Claude via the Anthropic API, with more providers possible) to generate a short plain-English explanation for your vulnerability findings — directly in the terminal or in the HTML report.No source code is sent. The prompt contains only the package name, version, severity, CVE ID, OSV summary, and fix version. It's entirely opt-in and requires you to supply your own API key in a local
.cve-lite.jsonconfig file.What it would look like in the terminal:
Or target a specific finding:
In the HTML report (
--report --explain): all findings include a full-width AI explanation section when the expanded row is opened.We'd love your feedback
Would you use this feature? A quick 👍 or 👎 on this post helps.
More specifically:
Pros
fetch--explainis layered on top after the local scan completesCons
.cve-lite.jsonneed to stay out of source control (the tool warns you if.gitignoreis missing the entry)The implementation is complete on a branch and working end-to-end. We're holding off on merging until we hear from the community whether this is a direction worth pursuing.
Beta Was this translation helpful? Give feedback.
All reactions