Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .claude/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"permissions": {
"allow": [
"WebFetch",
"WebSearch"
]
},
"sandbox": {
"autoAllowBashIfSandboxed": true,
"enabled": true
Comment on lines +9 to +10

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

Enabling autoAllowBashIfSandboxed by default poses a significant security risk. While the execution is sandboxed, automatically allowing bash commands, especially in combination with enabled network access (WebFetch, WebSearch), increases the attack surface. A malicious or compromised model could potentially exploit this to perform unintended actions. It is recommended to follow the principle of least privilege and set this to false by default, requiring explicit user consent for command execution. This provides a safer default for projects based on this template.

If you apply this change, please also update the README.md to reflect the new default behavior.

Suggested change
"autoAllowBashIfSandboxed": true,
"enabled": true
"autoAllowBashIfSandboxed": false,
"enabled": true

}
}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ ninja # builds figures and the paper
git commit # checks format, lints, and type checks
```

### Claude Code

Default project settings in `.claude/settings.json` allow all bash commands sandboxed to the working directory and all network requests (`WebFetch`, `WebSearch`). This is a good balance between security and velocity. Override these in `.claude/settings.local.json` if you like.

### Files to know

- `flake.nix` defines system dependencies like `texlive`
Expand Down