ARCHETYPE
Fort Knox
Deny lists, pre-tool hooks, sandboxing. Nothing touches prod without a signature.
GUARDRAILS
5/5
Blocks destructive commands · Protects secrets · Pre-tool screening hook · No YOLO mode · Sandbox or ask-first rules · details
Quality 29/100 Guardrails v2
Copy this rig
# review before running: this installs third-party code
$ npx degit chroju/dotfiles/dotfiles/HOME/.claude ./rig-dotfiles # 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(sudo:*)",
"Bash(wget:*)",
"Bash(rm -rf:*)",
"Bash(rm -r:*)",
"Bash(rm -f:*)",
"Read(**/.env)",
"Read(**/.env.*)",
"Read(**/*.key)",
"Read(**/*.pem)",
"Read(./secrets/**)",
"Read(**/.aws/**)",
"Read(**/.aws/credentials)",
"Read(**/.ssh/**)",
"Read(**/.ssh/id_*)",
"Read(**/.gnupg/**)",
"Edit(**/.env)",
"Edit(**/.env.*)",
"Edit(**/*.key)",
"Edit(**/*.pem)",
"Edit(**/.ssh/id_*)",
"Read(**/node_modules/**)",
"Read(**/.terraform/**)",
"Read(**/__pycache__/**)",
"Read(**/venv/**)",
"Read(**/.venv/**)",
"Read(**/dist/**)",
"Read(**/build/**)",
"Read(**/*.log)"
],
"ask": [
"Bash(git push:*)",
"Bash(gh pr create:*)",
"Bash(gh pr merge:*)",
"Bash(gh issue create:*)",
"Bash(gh repo create:*)"
]
},
"hooks": {
"PreToolUse": [
{
"matcher": "Write|Edit|MultiEdit",
"hooks": [
{
"type": "command",
"command": "FILE_PATH=$(jq -r '.tool_input.file_path // .tool_input.path // \"\"'); [ -n \"$FILE_PATH\" ] || exit 0; REAL=$(readlink -f \"$FILE_PATH\" 2>/dev/null) || REAL=\"$(readlink -f \"$(dirname \"$FILE_PATH\")\" 2>/dev/null)/$(basename \"$FILE_PATH\")\"; case "
}
]
},
{
"matcher": "Agent",
"hooks": [
{
"type": "command",
"command": "~/.claude/scripts/agent-model-guard.sh"
}
]
}
]
}
} Hooks (15)
| event | matcher | runs |
|---|---|---|
| PreToolUse | Write|Edit|MultiEdit | FILE_PATH=$(jq -r '.tool_input.file_path // .tool_input.path // ""'); [ -n "$FILE_PATH" ] || exit 0; REAL=$(readlink -f "$FILE_PATH" 2>/dev/null) || REAL="$(readlink -f "$(dirname "$FILE_PATH")" 2>/dev/null)/$(basename "$FILE_PATH")"; case |
| PreToolUse | Agent | ~/.claude/scripts/agent-model-guard.sh |
| PostToolUse | Write | FILE_PATH=$(jq -r '.tool_input.file_path') && [ -n "$(tail -c1 "$FILE_PATH")" ] && echo >> "$FILE_PATH" |
| PostToolUse | Write|Edit|MultiEdit | jq -r '.tool_input.file_path' | xargs -I {} sed -i '' 's/[[:space:]]*$//' '{}' |
| Stop | * | ~/.claude/scripts/tmux-stop.sh |
| Stop | * | ~/.claude/scripts/rate_limits_cache.sh |
| Stop | * | ~/.claude/scripts/herdr-notify.sh stop |
| UserPromptSubmit | * | ~/.claude/scripts/tmux-working.sh |
| Notification | * | ~/.claude/scripts/tmux-notify.sh |
| Notification | * | ~/.claude/scripts/herdr-notify.sh notification |
| PermissionRequest | * | ~/.claude/scripts/herdr-approve.sh |
| SessionStart | * | ~/.claude/scripts/tmux-window-name-check.sh |
| SessionStart | * | bash ~/.claude/hooks/herdr-agent-state.sh session |
| SessionStart | * | /bin/sh -c 'rex __internal session-start --agent claude 2>/dev/null || true' |
| SessionEnd | * | /opt/homebrew/bin/bun $HOME/dev/src/github.com/chroju/obsidian/scripts/session_anchor.ts |
Slash commands (3)
/check-version/scrapbox/use-ask
Plugins (3)
codex@openai-codexhrns@chrojuclaude-security@claude-plugins-official
Permissions
deny (28)
Bash(sudo:*)
Bash(wget:*)
Bash(rm -rf:*)
Bash(rm -r:*)
Bash(rm -f:*)
Read(**/.env)
Read(**/.env.*)
Read(**/*.key)
Read(**/*.pem)
Read(./secrets/**)
Read(**/.aws/**)
Read(**/.aws/credentials)
Read(**/.ssh/**)
Read(**/.ssh/id_*)
Read(**/.gnupg/**)
Edit(**/.env)
Edit(**/.env.*)
Edit(**/*.key)
Edit(**/*.pem)
Edit(**/.ssh/id_*)
Read(**/node_modules/**)
Read(**/.terraform/**)
Read(**/__pycache__/**)
Read(**/venv/**)
Read(**/.venv/**)
Read(**/dist/**)
Read(**/build/**)
Read(**/*.log)
ask (5)
Bash(git push:*)
Bash(gh pr create:*)
Bash(gh pr merge:*)
Bash(gh issue create:*)
Bash(gh repo create:*)
allow (40)
Read
Edit
MultiEdit
Write
Glob
Grep
WebFetch
WebSearch
Bash(ls:*)
Bash(find:*)
Bash(tree:*)
Bash(git diff:*)
Bash(git log:*)
Bash(git status:*)
Bash(git show:*)
Bash(git branch:*)
Bash(git worktree list:*)
Bash(git pull:*)
Bash(git checkout -b:*)
Bash(git switch:*)
Bash(gh pr list:*)
Bash(gh pr view:*)
Bash(gh issue list:*)
Bash(gh issue view:*)
Bash(gh repo view:*)
Bash(icalPal:*)
Bash(date:*)
Bash(terraform fmt:*)
Bash(terraform validate:*)
Bash(gh pr comment:*)
Bash(tmux rename-window:*)
mcp__notion__notion-fetch
mcp__notion__notion-search
mcp__notion__notion-query-data-sources
mcp__claude_ai_Slack__slack_search_public_and_private
mcp__claude_ai_Slack__slack_read_channel
mcp__claude_ai_Slack__slack_read_thread
mcp__claude_ai_Google_Calendar__list_events
mcp__aws-terraform-mcp-server__SearchAwsProviderDocs
mcp__aws-knowledge-mcp-server__aws___search_documentation
Similar rigs
ruvnet/RuView
π RuView turns commodity WiFi signals into real-time spatial intelligence, vital sign monitoring, and presence detection — all without a single pixel of video.
Fort Knox 14.1k tok · · Q20
ruvnet/ruflo
🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native
Fort Knox 35.3k tok · · Q49
ai-job-search-dev/ai-job-search
The job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
Fort Knox 2.5k tok · · Q26
Donchitos/Claude-Code-Game-Studios
Turn Claude Code into a full game dev studio — 49 AI agents, 72 workflow skills, and a complete coordination system mirroring real studio hierarchy.
Fort Knox 11.6k tok · · Q57