chore(claude): remove most permissions from settings.json#4460
chore(claude): remove most permissions from settings.json#4460
Conversation
Claude (or any other LLM agent) should not have permission by default to do anything, except possibly read files. Users typically allow Claude to write code. If Claude then has permission to run make, Go, or bash scripts, Claude can run arbitrary code on the host machine without prompting the user. This leaves developers open to unwanted, destructive behavior due to hallucinations and prompt injection attacks. Additionally, any settings we commit to this repo silently take precedence over user settings. This commit removes the tool permissions. The MCP one seems okay for now. It would be nice to leave a breadcrumb to remind devlopers to be mindful about what they add to the shared configuration, but Claude's configuration doesn't allow comments...
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files🚀 New features to boost your workflow:
|
BenchmarksBenchmark execution time: 2026-02-20 18:26:59 Comparing candidate commit 1b33307 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 156 metrics, 8 unstable metrics.
|
|
@nsrip-dd I'd add it to |
IIUC there are two settings files, |
Claude (or any other LLM agent) should not have permission by default to
do anything, except possibly read files. Users typically allow Claude to
write code. If Claude then has permission to run make, Go, or bash
scripts, Claude can run arbitrary code on the host machine without
prompting the user. This leaves developers open to unwanted, destructive
behavior due to hallucinations and prompt injection attacks.
And with blanket
ghandgitpermissions, the agent has the same accessto GitHub as the user running the agent. Additionally, any settings we commit
to this repo silently take precedence over user settings. This PR removes the
tool permissions. The MCP one seems okay for now.
It would be nice to leave a breadcrumb to remind devlopers to be mindful
about what they add to the shared configuration, but Claude's
configuration doesn't allow comments...