/ Diretório / Playground / Claude Code Safety Net
● Comunidade kenryu42 ⚡ Instantâneo

Claude Code Safety Net

por kenryu42 · kenryu42/claude-code-safety-net

A hooks-driven safety net for Claude Code — interceptors catch rm -rf, git reset --hard, force pushes, and uncommitted destructive edits.

Installs as a Claude Code plugin with PreToolUse hooks. Each potentially destructive operation is intercepted and either confirmed or refused based on rules. Includes rules for git, file system, npm, and arbitrary bash.

Por que usar

Principais recursos

Demo ao vivo

Como fica na prática

pronto

Instalação

Repositório do autor · Documentação oficial de Skills do Claude

Casos de uso

Usos do mundo real: Claude Code Safety Net

Install the safety net into Claude Code

👤 Claude Code users ⏱ ~15 min intermediate

Quando usar: You've been bitten by an agent overwriting uncommitted changes.

Fluxo
  1. Wire hooks
    Run the included setup; settings.json gets PreToolUse entries.✓ Copiado
    → Hooks active
  2. Test
    Ask Claude to git reset --hard; expect block.✓ Copiado
    → Block triggered

Resultado: Destructive ops require explicit override.

Combinações

Combine com outros MCPs para 10× de alavancagem

claude-code-safety-net + filesystem

Pairs naturally with any agent doing repo edits

Combine claude-code-safety-net with filesystem: Pairs naturally with any agent doing repo edits✓ Copiado

Ferramentas

O que este MCP expõe

FerramentaEntradasQuando chamarCusto
hook-driven (see docs) No callable tools; activates via PreToolUse hooks 1 call

Custo e limites

O que custa rodar

Cota de API
N/A
Tokens por chamada
0
Monetário
Free
Dica
Start in soft-warn mode; promote to hard-block after a week of clean runs

Segurança

Permissões, segredos, alcance

Escopos mínimos: hooks-read hooks-write
Armazenamento de credenciais: None
Saída de dados: None

Solução de problemas

Erros comuns e correções

Hooks not firing

Confirm settings.json was actually updated; restart Claude Code

False positives on benign git ops

Tune the per-project rules file

Alternativas

Claude Code Safety Net vs. outros

AlternativaQuando usarTroca
pegasi-ai/reinsYou want broader agent guardrailsHeavier setup
Manual reviewSolo, low-stakes repoDoesn't scale

Mais

Recursos

📖 Leia o README oficial no GitHub

🐙 Ver issues abertas

🔍 Ver todos os 400+ servidores MCP e Skills