From c9fe7d858327701b6b7db1353bbb631aaec39dba Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Mon, 11 May 2026 02:15:04 +0200 Subject: [PATCH] chore(claude): expand harness allowlist and ignore local state Add permissions for read-only test/inspection commands (make test-e2e, docker exec/restart, /tmp reads) and gitignore everything under .claude except the shared settings/gitignore. Co-Authored-By: Claude Opus 4.7 (1M context) --- .claude/.gitignore | 3 +++ .claude/settings.json | 21 +++++++++++++++------ .codex | 0 3 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 .claude/.gitignore create mode 100644 .codex diff --git a/.claude/.gitignore b/.claude/.gitignore new file mode 100644 index 0000000..5740b6f --- /dev/null +++ b/.claude/.gitignore @@ -0,0 +1,3 @@ +* +!.gitignore +!.settings.json \ No newline at end of file diff --git a/.claude/settings.json b/.claude/settings.json index 59c98c4..65fc6d1 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -57,18 +57,27 @@ "WebFetch(domain:docs.docker.com)", "WebFetch(domain:pypi.org)", "WebFetch(domain:docs.cypress.io)", - "WebFetch(domain:flask.palletsprojects.com)" - ], - "ask": [ - "Bash(git push*)", - "Bash(docker run*)", - "Bash(curl*)" + "WebFetch(domain:flask.palletsprojects.com)", + "Bash(netstat -lnt)", + "Bash(make test-e2e *)", + "Bash(echo \"EXIT=$?\")", + "Read(//tmp/**)", + "Bash(docker exec *)", + "Bash(docker restart *)" ], "deny": [ "Bash(git push --force*)", "Bash(git reset --hard*)", "Bash(rm -rf*)", "Bash(sudo*)" + ], + "ask": [ + "Bash(git push*)", + "Bash(docker run*)", + "Bash(curl*)" + ], + "additionalDirectories": [ + "/tmp" ] }, "sandbox": { diff --git a/.codex b/.codex new file mode 100644 index 0000000..e69de29