78 lines
1.7 KiB
JSON
78 lines
1.7 KiB
JSON
{
|
|
"enableAllProjectMcpServers": true,
|
|
"permissions": {
|
|
"allow": [
|
|
"Bash(*)",
|
|
"Read(*)",
|
|
"Write(*)",
|
|
"Edit(*)",
|
|
"Agent(*)",
|
|
"TaskCreate(*)",
|
|
"TaskUpdate(*)",
|
|
"TaskList(*)",
|
|
"TaskGet(*)",
|
|
"TaskOutput(*)",
|
|
"TaskStop(*)",
|
|
"TeamCreate(*)",
|
|
"TeamDelete(*)",
|
|
"SendMessage(*)",
|
|
"WebFetch(*)",
|
|
"WebSearch(*)",
|
|
"Skill(*)",
|
|
"ScheduleWakeup(*)",
|
|
"Monitor(*)",
|
|
"NotebookEdit(*)",
|
|
"LSP(*)",
|
|
"ToolSearch(*)",
|
|
"SendUserFile(*)",
|
|
"AskUserQuestion(*)",
|
|
"ExitPlanMode(*)",
|
|
"EnterPlanMode(*)",
|
|
"ShareOnboardingGuide(*)",
|
|
"CronCreate(*)",
|
|
"CronList(*)",
|
|
"CronDelete(*)",
|
|
"PushNotification(*)",
|
|
"RemoteTrigger(*)",
|
|
"mcp__*"
|
|
],
|
|
"deny": [
|
|
"Bash(git worktree *)",
|
|
"Bash(EnterWorktree*)",
|
|
"Bash(git stash *)",
|
|
"Bash(pkill node*)",
|
|
"Bash(killall node*)",
|
|
"Bash(wall *)",
|
|
"Bash(write *)",
|
|
"Bash(rm -rf /*)",
|
|
"Bash(git push --force *)",
|
|
"Bash(*--no-verify*)"
|
|
]
|
|
},
|
|
"hooks": {
|
|
"PreToolUse": [
|
|
{
|
|
"matcher": "Write|Edit",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": ".claude/hooks/enforce-structure.sh",
|
|
"timeout": 5,
|
|
"statusMessage": "Checking project structure..."
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": "Bash|Agent|EnterWorktree",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "~/.claude/hooks/block-worktree.sh",
|
|
"timeout": 5,
|
|
"statusMessage": "Blocking worktree usage (multi-agent repo)"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|