this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

tweak Claude's allow and deny settings further

Allow git fetch, useful for fetching specific commits from Gerrit
such as those from unmerged patchsets.
Similarly, git apply can be useful when applying a diff or patch.

Allow fetching files and gists from GitHub, which is useful when
instructing the agent to investigate a user bug report with files.

Finally, I'm getting tired of reminding the agent to not cat and sed
to read and write files, which always requires permission,
even though I already placed this rule in CLAUDE.md.
Similarly, it insists on using `git -C /path/to/repo` and temporary
files in /tmp, which again interrupts sessions for no reason.

Try forbidding these in the settings; the agent tends to try the proper
mechanism once rejected manually, so I suppose it should also work
when rejected automatically via the settings.

Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I9c2db0ce00bf5bda4533658494bb5373a998642e
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1231231
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Matthew Sackman <matthew@cue.works>

+11 -1
+11 -1
.claude/settings.json
··· 44 44 "Bash(git checkout:*)", 45 45 "Bash(git stash:*)", 46 46 "Bash(git rebase:*)", 47 + "Bash(git fetch:*)", 48 + "Bash(git apply:*)", 47 49 "Bash(git mv:*)", 48 50 "Bash(git rm:*)", 49 51 "Bash(gh issue view:*)", ··· 58 60 "Bash(gh run view:*)", 59 61 "Bash(gh run list:*)", 60 62 "Bash(gh workflow view:*)", 61 - "Bash(gh workflow list:*)" 63 + "Bash(gh workflow list:*)", 64 + "WebFetch(domain:raw.githubusercontent.com)", 65 + "WebFetch(domain:gist.github.com)" 66 + ], 67 + "deny": [ 68 + "Bash(cat:*)", 69 + "Bash(sed:*)", 70 + "Bash(git -C:*)", 71 + "Edit(//tmp/**/*)" 62 72 ] 63 73 } 64 74 }