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
- 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.
- 02
Package install hooks
npm lifecycle scripts and the files they run, import-time payloads, registry overrides, Python
setup.pyhooks,.pthfiles andconftest.py. - 03
Hidden payloads
Code hidden in fonts, images and unexpected binaries. Obfuscated strings, such as base64 and hex, are decoded and inspected.
- 04
Dependencies
Typosquats, packages from outside the registry,
npm auditresults and known malicious packages in OSV.dev. Flagged packages are inspected from their published archive and never installed. - 05
Git abuse
Git settings and hooks that can run commands, unsafe submodules and backdated commits.
- 06
Prompt injection
Hidden instructions in
SKILL.md,CLAUDE.md,AGENTS.md,.cursorrulesand similar files, including invisible Unicode characters and requests to send secrets. - 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.
Clear signs of harmful behaviour. Don't open, install or run the repository.
Findings that need a closer look before you go further.
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
npm audit and OSV.dev. You can run them offline to skip network lookups.Process
How the review runs
- 01
Scan the repository
Config files, scripts, binaries and agent files are checked against the seven areas.
- 02
Check dependencies
Packages are checked against advisories. Flagged ones are inspected from their archive.
- 03
Build the report
Scan and dependency results are rendered into one readable report.
- 04
Deep review and verdict
The agent reviews the findings in depth, then gives the final verdict.
Output
What you get
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.
presentation.reveal is set to never, so the output stays hidden..vscode/tasks.json:14Engineering
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.
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.
