diff --git a/workflow-bench/bench.py b/workflow-bench/bench.py index 4f656d33..ed5c7020 100755 --- a/workflow-bench/bench.py +++ b/workflow-bench/bench.py @@ -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]