Skip to content
AddHunt
VS Code extensions

Redlyne

Security checks for AI-generated Python inside VS Code

Open source

  • Open source
  • Licence: Apache-2.0

In short

Redlyne is an open-source VS Code extension that checks AI-generated Python code for security vulnerabilities and suggests patches that can be applied in one step. It is for developers who paste assistant-written snippets into their projects and want reproducible checks that run locally.

What you get

  • Scans selected Python snippets for vulnerabilities
  • Proposes patches applied with one confirmation
  • Deterministic rule engine with no LLM
  • Researcher-curated rules, including OWASP Top 10 classes
  • Works on incomplete snippets
  • Runs fully on the local machine

The details

Redlyne is aimed at a specific habit: copying snippets from an AI assistant into a codebase many times a day. Traditional scanners tend to need the whole project, and analyzers based on syntax trees cannot even start on snippets that are missing imports. Redlyne works at the snippet level and handles both complete and incomplete code.

A rule engine, not a model

Detection relies on deterministic pattern matching rather than a language model, so each flag and each suggested fix can be reproduced and audited. The rules are written by hand by security researchers and are drawn from peer-reviewed research on vulnerabilities found in AI-generated Python, including classes from the OWASP Top 10.

In the editor

  • Right-click a Python selection to scan it
  • Review the flagged issues and a proposed patched version
  • Apply the patch after a single confirmation

All analysis runs on the developer's machine, and no code, telemetry or metadata is sent to a server. The project documents its evaluation setup in the repository so that results can be rerun, and the code is available under the Apache 2.0 license.

Alternatives to Redlyne

All alternatives

Questions

Does Redlyne use AI to find issues?

No. It uses a deterministic rule engine with hand-written rules, so its results are reproducible.

Can it check code that is missing imports?

Yes. It is designed for snippets, including incomplete ones that syntax-tree analyzers cannot parse.

Is any code sent to a server?

No. The extension runs entirely on the local machine and sends no code, telemetry or metadata.

More like this