Skip to content

Add Claude settings configuration file#46

Merged
dmitrii-palisaderesearch merged 2 commits intomainfrom
claude/default-code-config-j2f6I
Feb 28, 2026
Merged

Add Claude settings configuration file#46
dmitrii-palisaderesearch merged 2 commits intomainfrom
claude/default-code-config-j2f6I

Conversation

@dmitrii-palisaderesearch
Copy link
Contributor

Summary

This PR introduces a new .claude/settings.json configuration file to define permissions and sandbox settings for Claude operations.

Key Changes

  • Created .claude/settings.json with the following configurations:
    • Permissions: Enabled WebFetch and WebSearch capabilities
    • Sandbox Settings:
      • Enabled sandbox mode for security
      • Configured automatic bash allowance when sandboxed

Implementation Details

The settings file establishes a baseline configuration that allows Claude to perform web-based operations (fetching and searching) while maintaining a sandboxed execution environment with automatic bash command authorization when the sandbox is active.

https://claude.ai/code/session_012Zf75Rf7DY5bKkLk6xCGFL

Allow WebFetch and WebSearch tools, enable sandbox with
autoAllowBashIfSandboxed.

https://claude.ai/code/session_012Zf75Rf7DY5bKkLk6xCGFL
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 in .claude/settings.local.json if needed.

https://claude.ai/code/session_012Zf75Rf7DY5bKkLk6xCGFL
@gemini-code-assist
Copy link

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request establishes a foundational configuration for Claude's operational behavior by introducing a new settings file. It ensures Claude can perform necessary web-based tasks while operating within a secure sandboxed environment, with clear documentation provided for these new settings.

Highlights

  • New Claude Configuration File: Introduced .claude/settings.json to manage Claude's operational permissions and sandbox environment.
  • Web Permissions: Configured Claude to allow WebFetch and WebSearch capabilities within its execution environment.
  • Sandbox Settings: Enabled sandbox mode and configured automatic bash allowance when Claude operates in a sandboxed environment.
  • Documentation Update: Updated README.md to document the default Claude project settings and how to override them.
Changelog
  • .claude/settings.json
    • Added a new configuration file for Claude's operational permissions and sandbox settings.
  • README.md
    • Documented the default Claude project settings, including web permissions and sandbox behavior.
Activity
  • No human activity has been recorded on this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a configuration file for Claude, enabling web search and fetch capabilities, and automatically allowing bash commands within a sandboxed environment. While the changes are clearly described, the default setting to automatically allow bash commands presents a significant security concern. I've recommended a more secure default to prioritize safety, following the principle of least privilege, especially for a template repository that will be used for new projects.

Comment on lines +9 to +10
"autoAllowBashIfSandboxed": true,
"enabled": true

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

@dmitrii-palisaderesearch dmitrii-palisaderesearch merged commit 2e840b3 into main Feb 28, 2026
12 checks passed
@dmitrii-palisaderesearch dmitrii-palisaderesearch deleted the claude/default-code-config-j2f6I branch February 28, 2026 18:06
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.

2 participants