Add coding policy

This commit is contained in:
2026-03-27 20:25:55 +00:00
parent dbc0f893f4
commit 974b98b6b2
2 changed files with 84 additions and 1 deletions

View File

@@ -0,0 +1,78 @@
[[rule]]
toolName = "run_shell_command"
commandPrefix = "pre-commit run --all-files"
decision = "allow"
priority = 100
[[rule]]
toolName = "run_shell_command"
commandPrefix = "grep"
decision = "allow"
priority = 100
[[rule]]
toolName = "run_shell_command"
commandPrefix = "cat"
decision = "allow"
priority = 100
[[rule]]
toolName = "run_shell_command"
commandPrefix = "git add"
decision = "allow"
priority = 100
[[rule]]
toolName = "run_shell_command"
commandPrefix = "git status"
decision = "allow"
priority = 100
[[rule]]
toolName = "run_shell_command"
commandPrefix = "mkdir"
decision = "allow"
priority = 100
[[rule]]
toolName = "write_file"
decision = "allow"
priority = 100
[[rule]]
toolName = "replace"
decision = "allow"
priority = 100
[[rule]]
toolName = "google_web_search"
decision = "allow"
priority = 100
[[rule]]
toolName = "glob"
decision = "allow"
priority = 100
[[rule]]
toolName = "grep_search"
decision = "allow"
priority = 100
[[rule]]
toolName = "run_shell_command"
commandPrefix = "tail"
decision = "allow"
priority = 100
[[rule]]
toolName = "run_shell_command"
commandPrefix = "xxd"
decision = "allow"
priority = 100
[[rule]]
toolName = "run_shell_command"
commandPrefix = "ls"
decision = "allow"
priority = 100

View File

@@ -6,6 +6,11 @@ priority = 100
[[rule]]
toolName = "run_shell_command"
commandPrefix = "pre-commit run --all-files"
commandPrefix = "nix eval"
decision = "allow"
priority = 100
[[rule]]
mcpName = "nix"
decision = "allow"
priority = 500