# Block Risky Coding-Agent Commands with CC Safety Net

> Use CC Safety Net when coding-agent CLIs need pre-execution hooks that block destructive commands, secret access, and unsafe file operations before tools run.

- Skill: `agentskillexchange/block-risky-coding-agent-commands-with-cc-safety-net` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/block-risky-coding-agent-commands-with-cc-safety-net`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/block-risky-coding-agent-commands-with-cc-safety-net/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/block-risky-coding-agent-commands-with-cc-safety-net

---


# Block Risky Coding-Agent Commands with CC Safety Net

Use CC Safety Net when coding-agent CLIs need pre-execution hooks that block destructive commands, secret access, and unsafe file operations before tools run.

## Prerequisites

Node.js/npx or npm; CC Safety Net CLI; one supported coding-agent host such as Claude Code, Codex, Gemini CLI, GitHub Copilot CLI, Kimi Code, OpenCode, Pi, Cursor, Amp Code, Hermes Agent, Antigravity CLI, or OpenClaw.

## Installation

Install or set up from the source-backed instructions:

Run npx -y cc-safety-net@latest install and select the installed coding-agent CLIs to protect. For a global CLI alias, run npm install -g cc-safety-net. After installation, run npx cc-safety-net doctor to verify the hook integration.

- Source: https://github.com/kenryu42/cc-safety-net

## Documentation

- https://ccsafetynet.com/docs

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/block-risky-coding-agent-commands-with-cc-safety-net/)

