Skip to content
Back to Work

Open-source project · Claude Code & Codex plugin

Code Safety Review

Check an unfamiliar repository before it gets a chance to run anything on your machine.

Code Safety Review is a plugin for Claude Code and Codex. Its review skill statically vets a third-party repository before you open, install or run it. It returns a clear verdict and a detailed report. Nothing from the reviewed repository is executed.

The risk

Opening a repository can be enough to run code

An editor task can start the moment a folder opens. An install script can run during a routine package install. A file written for an AI coding agent can carry hidden instructions.

Code Safety Review looks for these before you open, install or run anything. It is useful whenever a repository comes from a client, a vendor or an open-source project you don't know yet.

Scope

What the review checks

  1. 01

    Editor and IDE auto-run

    VS Code tasks that run when a folder opens, launch configs and workspace settings, plus devcontainer, JetBrains and Gitpod startup commands.

  2. 02

    Package install hooks

    npm lifecycle scripts and the files they run, import-time payloads, registry overrides, Python setup.py hooks, .pth files and conftest.py.

  3. 03

    Hidden payloads

    Code hidden in fonts, images and unexpected binaries. Obfuscated strings, such as base64 and hex, are decoded and inspected.

  4. 04

    Dependencies

    Typosquats, packages from outside the registry, npm audit results and known malicious packages in OSV.dev. Flagged packages are inspected from their published archive and never installed.

  5. 05

    Git abuse

    Git settings and hooks that can run commands, unsafe submodules and backdated commits.

  6. 06

    Prompt injection

    Hidden instructions in SKILL.md, CLAUDE.md, AGENTS.md, .cursorrules and similar files, including invisible Unicode characters and requests to send secrets.

  7. 07

    Agent configuration

    Claude Code hooks, MCP server commands and Codex configuration that could run when an agent opens the project.

Control

Nothing from the repository runs

The review is static. Files are read and decoded, never executed.

  • Read, never run

    No scripts, tasks or hooks from the reviewed repository are executed.

  • Packages inspected, not installed

    A flagged dependency is reviewed from its published archive. The skill never installs it.

  • A deeper look before the verdict

    After the automated scans, the agent must review the findings in depth before it gives a verdict.

Verdict

One clear answer

Every review ends with one of three verdicts, backed by a detailed report.

MALICIOUS

Clear signs of harmful behaviour. Don't open, install or run the repository.

SUSPICIOUS

Findings that need a closer look before you go further.

NO INDICATORS FOUND

The checks found nothing harmful. It isn't a guarantee: a static review can't confirm how code behaves when it runs.

Data

Know what leaves your machine

Dependency checks
Query npm audit and OSV.dev. You can run them offline to skip network lookups.
Flagged packages
Their published archive is downloaded for inspection, never installed.
The agent's model provider
Processes the files the agent reads during the review.

Process

How the review runs

  1. 01

    Scan the repository

    Config files, scripts, binaries and agent files are checked against the seven areas.

  2. 02

    Check dependencies

    Packages are checked against advisories. Flagged ones are inspected from their archive.

  3. 03

    Build the report

    Scan and dependency results are rendered into one readable report.

  4. 04

    Deep review and verdict

    The agent reviews the findings in depth, then gives the final verdict.

Output

What you get

review output
  • report.mdThe verdict and a detailed, readable report of the findings.
  • scan.jsonStructured results of the repository scan.
  • deps.jsonStructured results of the dependency check.
Example finding
Check area
Editor and IDE auto-run
What was found
Critical. The task “install-deps” runs automatically when the folder is opened. Its command downloads a script with curl and pipes it into bash, and presentation.reveal is set to never, so the output stays hidden.
Location
.vscode/tasks.json:14

Engineering

How we built it

The review follows the same principles we apply when automating business processes.

Bounded actions

The skill reads and decodes files. It never runs repository code or installs flagged packages.

Tested against realistic threats

Malware-like test fixtures are generated when the tests run, never stored in the repository. They point only to reserved test domains and addresses.

Holds itself to the same bar

The tool scans its own repository as part of the test suite. Any high or critical finding fails the build.

Checked against live services

A fast offline suite covers the checks. Separate live tests confirm the real npm audit and OSV.dev lookups still work.

Get started

Try it

Install the plugin from the WebStoating skills marketplace. Then ask your agent to review the repository before you open it.

“Use code-safety-review on /path/to/repo before I open it.”

You need

  • Python 3.9 or newer
  • Claude Code or Codex

Tip for VS Code users.
Set "task.allowAutomaticTasks": "off" so tasks can't start on their own when you open a folder.

We bring the same discipline to automating complex business processes.

Explore WebStoating’s automation services