~ / rigs / serpro69 / safe-claude-code

serpro69/safe-claude-code

An attempt to make claude-code safer for non-tech-savvy users

↗ GitHub ★ 0 NOASSERTION updated 1mo ago project Claude CodeCodex
stack: PythonShell
share on X
ARCHETYPE
Pragmatist
A balanced, no-drama setup: some rules, some tools, nothing extreme.
CONTEXT TAX · EVERY TURN
up to ~6.7k tokens
Claude Code loads MCP tools on demand, so the real cost is usually lower.
Heavy · median rig: 2.3k · breakdown
GUARDRAILS
3/5
Protects secrets · No YOLO mode · Sandbox or ask-first rules · details
Quality 22/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ npx degit serpro69/safe-claude-code/.claude ./rig-safe-claude-code  # inspect, then merge into .claude/

MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.

Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.

{
  "permissions": {
    "deny": [
      "Bash(rm:*)",
      "Read(./examples)",
      "Read(./**/consensus*.md)",
      "Read(./**/review*.md)",
      "Read(./**/.env)",
      "Read(./**/service-account-key.json)",
      "Read(*.csv)",
      "Read(*.log)",
      "Read(*.pyc)",
      "Read(./**/*.lock*)",
      "Read(.git/)",
      "Read(.idea/)",
      "Read(.vscode/)",
      "Read(.next/)",
      "Read(./**/.ansible/)",
      "Read(./**/.terraform/)",
      "Read(./**/build/)",
      "Read(./**/data/)",
      "Read(./**/dist/)",
      "Read(./**/out/)",
      "Read(./**/node_modules/)",
      "Read(./**/venv/)",
      "Read(./**/__pycache__/)"
    ]
  }
}

MCP servers (1)

serversourceest. tokens
capy local / custom 2.5k

Plugins (1)

kk@claude-toolbox

Permissions

deny (23)
Bash(rm:*)
Read(./examples)
Read(./**/consensus*.md)
Read(./**/review*.md)
Read(./**/.env)
Read(./**/service-account-key.json)
Read(*.csv)
Read(*.log)
Read(*.pyc)
Read(./**/*.lock*)
Read(.git/)
Read(.idea/)
Read(.vscode/)
Read(.next/)
Read(./**/.ansible/)
Read(./**/.terraform/)
Read(./**/build/)
Read(./**/data/)
Read(./**/dist/)
Read(./**/out/)
Read(./**/node_modules/)
Read(./**/venv/)
Read(./**/__pycache__/)
ask (0)
—
allow (10)
Bash(cat:*)
Bash(grep:*)
Bash(ls:*)
Bash(mkdir:*)
Bash(sort:*)
WebSearch
Skill(kk:*)
Read(~/.claude/plugins/cache/claude-toolbox/*)
Bash(echo "${TOOLBOX_PLUGIN_ROOT}")
Bash(echo "${TOOLBOX_PLUGIN_ROOT:-NOT_SET}")

Similar rigs

copied ✓