Add comprehensive Claude Code configuration for Rust/Go projects, including: - CLAUDE.md with delegation heuristics and guardrails - Subagents: qwen3-worker (LM Studio), code-reviewer, task-planner - Skills for delegation rules and Rust/Go conventions - Hooks: post-write-lint, pre-bash-guard, subagent-stop-log - MCP server (stdio) to interface with LM Studio - README and technical report documenting the architecture
9 lines
381 B
Bash
Executable File
9 lines
381 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Bloque les commandes destructives sans confirmation
|
|
CMD=$(echo "$CLAUDE_TOOL_INPUT" | python3 -c "import json,sys; print(json.load(sys.stdin).get('command',''))")
|
|
|
|
if echo "$CMD" | grep -qE 'rm -rf|DROP TABLE|git push --force'; then
|
|
echo "BLOQUÉ : commande dangereuse détectée. Confirmez explicitement."
|
|
exit 2 # exit 2 = deny dans Claude Code
|
|
fi
|