Skip to content

Conversation

@hadley
Copy link
Member

@hadley hadley commented Dec 5, 2025

Fixes #2195

Note that something seems wrong with the permissions — claude still asks me if it's ok to edit various files and run Rscript. But it does grep and ls without confirmation.

"Bash(Rscript:*)",
"Bash(rm:*)",
"Bash(air:*)",
"WebFetch(domain:github.com)"
Copy link
Member

@DavisVaughan DavisVaughan Dec 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Bash(git checkout:*)" might be useful

Claude seems to like to try things and get stuck and need to undo them with git

⏺ I see the conversion didn't work correctly. Let me rewrite the script with a better approach:

⏺ Bash(git checkout order.c)
  ⎿  Updated 1 path from the index

"Bash(Rscript:*)",
"Bash(rm:*)",
"Bash(air:*)",
"WebFetch(domain:github.com)"
Copy link
Member

@jennybc jennybc Dec 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"WebFetch(domain:github.com)"
"WebFetch(domain:github.com)",
"WebFetch(domain:raw.githubusercontent.com)"

I also end up with this one in most projects.

Other candidates I've accrued in local settings recently that might be generally useful (Claude 🫶 the gh cli):

...
      "Bash(cat:*)",
      "Bash(git grep:*)",
      "Bash(gh pr view:*)",
      "Bash(gh issue view:*)",
      "Bash(gh api:*)",
      "Bash(gh pr diff:*)",
      "Bash(gh issue list:*)",
      "WebFetch(domain:cran.r-project.org)",
...

We should probably regard inst/claude/settings.json as the main source of truth, then that will propagate to usethis's .claude/settings.json by applying use_claude_code() to itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Helper for claude code settings

4 participants