mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-05-17 22:33:06 +08:00
42 lines
917 B
JSON
42 lines
917 B
JSON
{
|
|
"agent": {
|
|
"tool_permissions": {
|
|
"default": "confirm",
|
|
"tools": {
|
|
"terminal": {
|
|
"default": "confirm",
|
|
"always_deny": [
|
|
{
|
|
"pattern": "rm\\s+-rf\\s+(/|~)"
|
|
},
|
|
{
|
|
"pattern": "(^|\\s)(cat|sed|grep|rg)\\s+.*\\.(env|pem|key)(\\s|$)"
|
|
}
|
|
],
|
|
"always_confirm": [
|
|
{
|
|
"pattern": "sudo\\s"
|
|
},
|
|
{
|
|
"pattern": "(npm|pnpm|yarn|bun)\\s+(install|add|dlx|exec|x)\\b"
|
|
},
|
|
{
|
|
"pattern": "gh\\s+(auth|api|repo|release|pr|issue)\\b"
|
|
}
|
|
]
|
|
},
|
|
"edit_file": {
|
|
"always_deny": [
|
|
{
|
|
"pattern": "\\.env"
|
|
},
|
|
{
|
|
"pattern": "\\.(pem|key|p12|pfx)$"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|