Grant the bench's runs only the tools a review needs, in place of skipping every permission #299

Merged
lilleman merged 20 commits from item-50 into main 2026-10-16 23:04:26 +02:00
Showing only changes of commit 4625b805eb - Show all commits
+2 -1
View File
@@ -48,7 +48,8 @@ def permission_flags(clone, version_dir, report):
# before reading either file. An edit to .git/ could add a hook, which runs any command.
outside = (" /", "=/", " ~", "=~", "../", " ..", "$", "O/", "X/")
denied = [f"Edit(/{clone}/.git/**)", *(f"Bash(git *{shape}*)" for shape in outside)]
# Only the clone's own settings: the user's add every checkout under ~/code to the readable trees.
# Only the clone's own settings: the user's add every checkout under ~/code to the readable trees. A run
# cannot widen the clone's settings either: Claude Code refuses its edit to them, as a probe showed.
return ["--setting-sources", "project,local", "--permission-mode", "dontAsk", "--permission-prompts", "none",
"--allowedTools", *allowed, "--disallowedTools", *denied]