AcademyResourcesDevelopment

Claude Code Safety Net

Engineering teams that let AI agents run commands and want a check against destructive actions.

  • Listedour rating
  • 1,583gitHub stars
  • MITlicence
  • todaylast update
git clone https://github.com/kenryu42/cc-safety-net.git
README.md

Loading the file...

What it does

A hook for coding agent command lines that checks what a command would do before it runs. It blocks destructive git and filesystem commands and access to secrets such as SSH keys and .env files. It is not a sandbox. It works with Claude Code, Codex, OpenCode, Gemini CLI and others.

Use cases

  1. 01Stop an agent from running a destructive git command
  2. 02Block agent access to .env files and SSH keys
  3. 03Add a safety check to a shared coding setup

Questions about
Claude Code Safety Net.

What is Claude Code Safety Net used for?

Engineering teams that let AI agents run commands and want a check against destructive actions. A hook for coding agent command lines that checks what a command would do before it runs. It blocks destructive git and filesystem commands and access to secrets such as SSH keys and .env files. It is not a sandbox. It works with Claude Code, Codex, OpenCode, Gemini CLI and others.

How do I install Claude Code Safety Net?

Run this in your terminal: git clone https://github.com/kenryu42/cc-safety-net.git

Is Claude Code Safety Net open source?

Yes. The code is on GitHub (kenryu42/cc-safety-net) under the MIT licence.

Is Claude Code Safety Net safe to use?

Our automatic scan flagged points to review, so read the code before installing it. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.