Share Claude Code settings as project settings - #70
Open
torarnv wants to merge 3 commits into
Open
Conversation
The checked-in .claude/settings.local.json was the file Claude Code reserves for personal, untracked overrides. Rename it to settings.json, which is the shared project file, and ignore settings.local.json so personal overrides stay out of the repo.
Pre-approving rm with a wildcard lets any path be deleted without a prompt. Let it prompt instead.
These name binaries and paths the project no longer has: the binary is called linear, not linear-agent, and there is no linear-mcp-server or install-mcp.sh in the repo. Also drop two entries left over from the upstream author, a hardcoded /Users/joa23 path and a one-off say command.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Claude Code settings for this repo lived in
.claude/settings.local.json, a file meant for personal, machine-specific overrides. That meant useful permission entries were not shared with other contributors, and the file had accumulated stale, user-specific entries (like another contributor's binary paths and a broadrmpermission) that did not belong in a shared config.Solution
Rename
.claude/settings.local.jsonto.claude/settings.jsonso the settings are checked in and shared across the team, and add.claude/settings.local.jsonto.gitignorefor future personal overrides. Along the way, drop the stale, personal permission entries (hardcoded binary paths, asaycommand, a blanketrmpermission) that shouldn't be shared.