Compare commits

...

2 Commits

Author SHA1 Message Date
be34170875 Set preferredEditor in Gemini 2026-03-27 20:26:57 +00:00
974b98b6b2 Add coding policy 2026-03-27 20:26:55 +00:00
3 changed files with 86 additions and 2 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

View File

@@ -26,6 +26,7 @@
"warningAcknowledged": true,
"enabled": true,
"maxAge": "30d"
}
},
"preferredEditor": "vim"
}
}