Skip to content

Commit f582c3d

Browse files
YornikclaudeMarkvanMents
authored
Move machine-specific Claude settings out of the shared config (#11961)
* Move machine-specific Claude settings out of the shared config The shared .claude/settings.json pinned an AWS profile, forced Bedrock, and hard-coded five model IDs. Those values are specific to one machine, so every other contributor inherits a profile that does not exist for them and a model set that goes stale on each release. It also set MAX_THINKING_TOKENS to 1024 and CLAUDE_CODE_MAX_OUTPUT_TOKENS to 10240, which throttles reasoning and output for everyone who clones the repo. Move those values to a new .claude/settings.local.json.example template. Contributors copy it to .claude/settings.local.json, which is already gitignored and takes precedence over the shared file. Keep the telemetry opt-out, which is machine-neutral. Also nest the permission rules under a "permissions" object. The rules were top-level "allow" and "deny" keys, which is not the schema Claude Code documents, so the deny list was not taking effect. All 81 deny and 69 allow entries are unchanged, as are the hooks and the status line. Skills, hooks, rules, scripts, and the status line are separate tracked files and continue to ship to everyone who clones the repo. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * Point Claude settings warning to local example file Remove the default AWS_PROFILE reference from the check-claude-settings workflow and link to settings.local.json.example instead of an inline code block. Update the settings comment, example file, and AI tools page to match. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * Clarify Claude Code and Copilot setup in AI tools page Describe what the shared Claude settings contain, note that the example local settings target Bedrock, and add a section on truncated output. Add a GitHub Copilot section. Update the example file to current model IDs and drop the token limit keys. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * Move Copilot section under AI assistants and polish wording Make the GitHub Copilot section an H3 under Using AI Assistants, note that Copilot users use prompt files instead of skills, clarify the provider setup sentence, and name model selection in the workflow comment. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> Co-authored-by: MarkvanMents <mark.van.ments@mendix.com>
1 parent f00c39f commit f582c3d

4 files changed

Lines changed: 200 additions & 196 deletions

File tree

‎.claude/settings.json‎

Lines changed: 158 additions & 168 deletions
Original file line numberDiff line numberDiff line change
@@ -1,175 +1,165 @@
11
{
2-
"_comment": "DO NOT EDIT THIS FILE. To override these settings, use .claude/settings.local.json instead.",
2+
"_comment": "DO NOT EDIT THIS FILE. User-specific values (AWS profile, model selection, Bedrock) belong in .claude/settings.local.json, which is gitignored. Do not add environment or credential settings to this file. This is the shared Claude Code configuration for this repo: skills, hooks, permissions, and status line.",
33
"env": {
44
"CLAUDE_CODE_ENABLE_TELEMETRY": "0",
5-
"DISABLE_TELEMETRY": "1",
6-
"OTEL_METRICS_EXPORTER": "otlp",
7-
"AWS_PROFILE": "my-sandbox",
8-
"AWS_REGION": "eu-central-1",
9-
"CLAUDE_CODE_USE_BEDROCK": "1",
10-
"ANTHROPIC_MODEL": "eu.anthropic.claude-sonnet-4-6",
11-
"ANTHROPIC_SMALL_FAST_MODEL": "eu.anthropic.claude-haiku-4-5-20251001-v1:0",
12-
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "eu.anthropic.claude-haiku-4-5-20251001-v1:0",
13-
"ANTHROPIC_DEFAULT_OPUS_MODEL": "eu.anthropic.claude-opus-4-8",
14-
"ANTHROPIC_DEFAULT_SONNET_MODEL": "eu.anthropic.claude-sonnet-4-6",
15-
"DISABLE_PROMPT_CACHING": "0",
16-
"CLAUDE_CODE_MAX_OUTPUT_TOKENS": "10240",
17-
"MAX_THINKING_TOKENS": "1024"
5+
"DISABLE_TELEMETRY": "1"
6+
},
7+
"permissions": {
8+
"deny": [
9+
"Bash(aws * delete*)",
10+
"Bash(aws * remove*)",
11+
"Bash(aws * destroy*)",
12+
"Bash(aws * terminate*)",
13+
"Bash(aws * deregister*)",
14+
"Bash(aws * purge*)",
15+
"Bash(aws s3 rm *)",
16+
"Bash(aws s3 rb *)",
17+
"Bash(aws cloudformation delete-stack *)",
18+
"Bash(aws ec2 run-instances *)",
19+
"Bash(aws ec2 stop-instances *)",
20+
"Bash(aws autoscaling set-desired-capacity *)",
21+
"Bash(aws autoscaling update-auto-scaling-group *)",
22+
"Bash(aws application-autoscaling *)",
23+
"Bash(aws ecs update-service *)",
24+
"Bash(aws iam delete*)",
25+
"Bash(aws iam create*)",
26+
"Bash(aws iam put*)",
27+
"Bash(aws iam attach*)",
28+
"Bash(kubectl delete *)",
29+
"Bash(kubectl apply *)",
30+
"Bash(kubectl create *)",
31+
"Bash(kubectl patch *)",
32+
"Bash(kubectl scale *)",
33+
"Bash(kubectl rollout *)",
34+
"Bash(kubectl drain *)",
35+
"Bash(kubectl cordon *)",
36+
"Bash(kubectl exec *)",
37+
"Bash(kubectl edit *)",
38+
"Bash(terraform destroy *)",
39+
"Bash(terraform destroy)",
40+
"Bash(terraform apply *)",
41+
"Bash(terraform apply)",
42+
"Bash(terraform import *)",
43+
"Bash(terraform state rm *)",
44+
"Bash(terraform taint *)",
45+
"Bash(helm install *)",
46+
"Bash(helm upgrade *)",
47+
"Bash(helm delete *)",
48+
"Bash(helm uninstall *)",
49+
"Bash(helm rollback *)",
50+
"Bash(git push --force *)",
51+
"Bash(git push -f *)",
52+
"Bash(git push --force-with-lease *)",
53+
"Bash(git push origin main *)",
54+
"Bash(git push origin main)",
55+
"Bash(git push origin master *)",
56+
"Bash(git push origin master)",
57+
"Bash(git reset --hard *)",
58+
"Bash(git clean -f *)",
59+
"Bash(pnpm publish-packages)",
60+
"Bash(rm -rf /)",
61+
"Bash(rm -rf /*)",
62+
"Bash(rm -rf ~)",
63+
"Bash(rm -rf ~/*)",
64+
"Bash(rm -rf ..*)",
65+
"Bash(mkfs.*)",
66+
"Bash(dd if=*/dev/*)",
67+
"Bash(sudo *)",
68+
"Bash(sudo)",
69+
"Bash(chmod 777 *)",
70+
"Bash(chown root *)",
71+
"Bash(ssh *)",
72+
"Bash(scp *)",
73+
"Bash(curl * | sh)",
74+
"Bash(curl * | bash)",
75+
"Bash(wget * | sh)",
76+
"Bash(wget * | bash)",
77+
"Read(~/.aws/**)",
78+
"Read(~/.kube/**)",
79+
"Read(~/.ssh/**)",
80+
"Read(.env)",
81+
"Read(.env.*)",
82+
"Read(**/secrets/**)",
83+
"Read(**/*credentials*)",
84+
"mcp__datadog-mcp__create_datadog_notebook",
85+
"mcp__datadog-mcp__edit_datadog_notebook",
86+
"mcp__atlassian__jira_delete_issue",
87+
"mcp__atlassian__jira_remove_issue_link",
88+
"mcp__atlassian__confluence_delete_page",
89+
"mcp__atlassian__confluence_delete_attachment"
90+
],
91+
"allow": [
92+
"Bash(git log *)",
93+
"Bash(git status *)",
94+
"Bash(git status)",
95+
"Bash(git diff *)",
96+
"Bash(git diff)",
97+
"Bash(git branch *)",
98+
"Bash(git branch)",
99+
"Bash(git show *)",
100+
"Bash(git rev-parse *)",
101+
"Bash(git remote -v)",
102+
"Bash(ls *)",
103+
"Bash(ls)",
104+
"Bash(pwd)",
105+
"Bash(which *)",
106+
"Bash(npm test *)",
107+
"Bash(npm test)",
108+
"Bash(npm run test *)",
109+
"Bash(npm run lint *)",
110+
"Bash(npx jest *)",
111+
"Bash(npx tsc *)",
112+
"Bash(pnpm test:compile)",
113+
"Bash(pnpm test:browser)",
114+
"Bash(pnpm test)",
115+
"Bash(pnpm build)",
116+
"Bash(pnpm install)",
117+
"Bash(pnpm install:*)",
118+
"Bash(pnpm lint)",
119+
"Bash(pnpm lint:fix)",
120+
"Bash(pnpx tsc *)",
121+
"Bash(go test *)",
122+
"Bash(mvn test *)",
123+
"Bash(gradle test *)",
124+
"Bash(python -m pytest *)",
125+
"Bash(python3 -m pytest *)",
126+
"Bash(aws * describe* *)",
127+
"Bash(aws * list* *)",
128+
"Bash(aws * get* *)",
129+
"Bash(aws s3 ls *)",
130+
"Bash(aws sts get-caller-identity *)",
131+
"Bash(aws sts get-caller-identity)",
132+
"Bash(kubectl get *)",
133+
"Bash(kubectl describe *)",
134+
"Bash(kubectl logs *)",
135+
"Bash(terraform plan *)",
136+
"Bash(terraform plan)",
137+
"Bash(terraform validate *)",
138+
"Bash(terraform validate)",
139+
"Bash(terraform fmt *)",
140+
"Bash(terraform fmt)",
141+
"Read(./**)",
142+
"Edit(./**)",
143+
"mcp__datadog-mcp__analyze_datadog_logs",
144+
"mcp__datadog-mcp__get_datadog_incident",
145+
"mcp__datadog-mcp__get_datadog_metric",
146+
"mcp__datadog-mcp__get_datadog_metric_context",
147+
"mcp__datadog-mcp__get_datadog_notebook",
148+
"mcp__datadog-mcp__get_datadog_trace",
149+
"mcp__datadog-mcp__search_datadog_dashboards",
150+
"mcp__datadog-mcp__search_datadog_events",
151+
"mcp__datadog-mcp__search_datadog_hosts",
152+
"mcp__datadog-mcp__search_datadog_incidents",
153+
"mcp__datadog-mcp__search_datadog_logs",
154+
"mcp__datadog-mcp__search_datadog_metrics",
155+
"mcp__datadog-mcp__search_datadog_monitors",
156+
"mcp__datadog-mcp__search_datadog_notebooks",
157+
"mcp__datadog-mcp__search_datadog_rum_events",
158+
"mcp__datadog-mcp__search_datadog_service_dependencies",
159+
"mcp__datadog-mcp__search_datadog_services",
160+
"mcp__datadog-mcp__search_datadog_spans"
161+
]
18162
},
19-
"deny": [
20-
"Bash(aws * delete*)",
21-
"Bash(aws * remove*)",
22-
"Bash(aws * destroy*)",
23-
"Bash(aws * terminate*)",
24-
"Bash(aws * deregister*)",
25-
"Bash(aws * purge*)",
26-
"Bash(aws s3 rm *)",
27-
"Bash(aws s3 rb *)",
28-
"Bash(aws cloudformation delete-stack *)",
29-
"Bash(aws ec2 run-instances *)",
30-
"Bash(aws ec2 stop-instances *)",
31-
"Bash(aws autoscaling set-desired-capacity *)",
32-
"Bash(aws autoscaling update-auto-scaling-group *)",
33-
"Bash(aws application-autoscaling *)",
34-
"Bash(aws ecs update-service *)",
35-
"Bash(aws iam delete*)",
36-
"Bash(aws iam create*)",
37-
"Bash(aws iam put*)",
38-
"Bash(aws iam attach*)",
39-
"Bash(kubectl delete *)",
40-
"Bash(kubectl apply *)",
41-
"Bash(kubectl create *)",
42-
"Bash(kubectl patch *)",
43-
"Bash(kubectl scale *)",
44-
"Bash(kubectl rollout *)",
45-
"Bash(kubectl drain *)",
46-
"Bash(kubectl cordon *)",
47-
"Bash(kubectl exec *)",
48-
"Bash(kubectl edit *)",
49-
"Bash(terraform destroy *)",
50-
"Bash(terraform destroy)",
51-
"Bash(terraform apply *)",
52-
"Bash(terraform apply)",
53-
"Bash(terraform import *)",
54-
"Bash(terraform state rm *)",
55-
"Bash(terraform taint *)",
56-
"Bash(helm install *)",
57-
"Bash(helm upgrade *)",
58-
"Bash(helm delete *)",
59-
"Bash(helm uninstall *)",
60-
"Bash(helm rollback *)",
61-
"Bash(git push --force *)",
62-
"Bash(git push -f *)",
63-
"Bash(git push --force-with-lease *)",
64-
"Bash(git push origin main *)",
65-
"Bash(git push origin main)",
66-
"Bash(git push origin master *)",
67-
"Bash(git push origin master)",
68-
"Bash(git reset --hard *)",
69-
"Bash(git clean -f *)",
70-
"Bash(pnpm publish-packages)",
71-
"Bash(rm -rf /)",
72-
"Bash(rm -rf /*)",
73-
"Bash(rm -rf ~)",
74-
"Bash(rm -rf ~/*)",
75-
"Bash(rm -rf ..*)",
76-
"Bash(mkfs.*)",
77-
"Bash(dd if=*/dev/*)",
78-
"Bash(sudo *)",
79-
"Bash(sudo)",
80-
"Bash(chmod 777 *)",
81-
"Bash(chown root *)",
82-
"Bash(ssh *)",
83-
"Bash(scp *)",
84-
"Bash(curl * | sh)",
85-
"Bash(curl * | bash)",
86-
"Bash(wget * | sh)",
87-
"Bash(wget * | bash)",
88-
"Read(~/.aws/**)",
89-
"Read(~/.kube/**)",
90-
"Read(~/.ssh/**)",
91-
"Read(.env)",
92-
"Read(.env.*)",
93-
"Read(**/secrets/**)",
94-
"Read(**/*credentials*)",
95-
"mcp__datadog-mcp__create_datadog_notebook",
96-
"mcp__datadog-mcp__edit_datadog_notebook",
97-
"mcp__atlassian__jira_delete_issue",
98-
"mcp__atlassian__jira_remove_issue_link",
99-
"mcp__atlassian__confluence_delete_page",
100-
"mcp__atlassian__confluence_delete_attachment"
101-
],
102-
"allow": [
103-
"Bash(git log *)",
104-
"Bash(git status *)",
105-
"Bash(git status)",
106-
"Bash(git diff *)",
107-
"Bash(git diff)",
108-
"Bash(git branch *)",
109-
"Bash(git branch)",
110-
"Bash(git show *)",
111-
"Bash(git rev-parse *)",
112-
"Bash(git remote -v)",
113-
"Bash(ls *)",
114-
"Bash(ls)",
115-
"Bash(pwd)",
116-
"Bash(which *)",
117-
"Bash(npm test *)",
118-
"Bash(npm test)",
119-
"Bash(npm run test *)",
120-
"Bash(npm run lint *)",
121-
"Bash(npx jest *)",
122-
"Bash(npx tsc *)",
123-
"Bash(pnpm test:compile)",
124-
"Bash(pnpm test:browser)",
125-
"Bash(pnpm test)",
126-
"Bash(pnpm build)",
127-
"Bash(pnpm install)",
128-
"Bash(pnpm install:*)",
129-
"Bash(pnpm lint)",
130-
"Bash(pnpm lint:fix)",
131-
"Bash(pnpx tsc *)",
132-
"Bash(go test *)",
133-
"Bash(mvn test *)",
134-
"Bash(gradle test *)",
135-
"Bash(python -m pytest *)",
136-
"Bash(python3 -m pytest *)",
137-
"Bash(aws * describe* *)",
138-
"Bash(aws * list* *)",
139-
"Bash(aws * get* *)",
140-
"Bash(aws s3 ls *)",
141-
"Bash(aws sts get-caller-identity *)",
142-
"Bash(aws sts get-caller-identity)",
143-
"Bash(kubectl get *)",
144-
"Bash(kubectl describe *)",
145-
"Bash(kubectl logs *)",
146-
"Bash(terraform plan *)",
147-
"Bash(terraform plan)",
148-
"Bash(terraform validate *)",
149-
"Bash(terraform validate)",
150-
"Bash(terraform fmt *)",
151-
"Bash(terraform fmt)",
152-
"Read(./**)",
153-
"Edit(./**)",
154-
"mcp__datadog-mcp__analyze_datadog_logs",
155-
"mcp__datadog-mcp__get_datadog_incident",
156-
"mcp__datadog-mcp__get_datadog_metric",
157-
"mcp__datadog-mcp__get_datadog_metric_context",
158-
"mcp__datadog-mcp__get_datadog_notebook",
159-
"mcp__datadog-mcp__get_datadog_trace",
160-
"mcp__datadog-mcp__search_datadog_dashboards",
161-
"mcp__datadog-mcp__search_datadog_events",
162-
"mcp__datadog-mcp__search_datadog_hosts",
163-
"mcp__datadog-mcp__search_datadog_incidents",
164-
"mcp__datadog-mcp__search_datadog_logs",
165-
"mcp__datadog-mcp__search_datadog_metrics",
166-
"mcp__datadog-mcp__search_datadog_monitors",
167-
"mcp__datadog-mcp__search_datadog_notebooks",
168-
"mcp__datadog-mcp__search_datadog_rum_events",
169-
"mcp__datadog-mcp__search_datadog_service_dependencies",
170-
"mcp__datadog-mcp__search_datadog_services",
171-
"mcp__datadog-mcp__search_datadog_spans"
172-
],
173163
"hooks": {
174164
"PreToolUse": [
175165
{
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"_comment": "Copy this file to .claude/settings.local.json and edit the values to match your machine. That file is gitignored and overrides .claude/settings.json. Delete any key you do not need - every one of these is optional. The settings here are for using Bedrock, your configuration may be different.",
3+
"env": {
4+
"AWS_PROFILE": "my-sandbox-name",
5+
"AWS_REGION": "eu-central-1",
6+
"CLAUDE_CODE_USE_BEDROCK": "1",
7+
"ANTHROPIC_MODEL": "eu.anthropic.claude-sonnet-5-5",
8+
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "eu.anthropic.claude-haiku-4-5-20251001-v1:0",
9+
"ANTHROPIC_DEFAULT_OPUS_MODEL": "eu.anthropic.claude-opus-5-5",
10+
"ANTHROPIC_DEFAULT_SONNET_MODEL": "eu.anthropic.claude-sonnet-5-5",
11+
"DISABLE_PROMPT_CACHING": "0"
12+
}
13+
}

‎.github/workflows/check-claude-settings.yml‎

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,11 @@ jobs:
3838
3939
const comment = `⚠️ **Claude Configuration Warning**
4040
41-
You've modified Claude Code configuration files. These files contain the shared configuration for all contributors. Please revert this change if unintended. **ONLY modify these files if you need to change shared configurations that apply to everyone and have discussed this change with the TW team.**
41+
You have modified Claude Code configuration files. These files contain the shared configuration for all contributors. Please revert this change if unintended. **ONLY modify these files if you need to change shared configurations that apply to everyone and have discussed this change with the TW team.**
4242
4343
To override the Claude settings locally, use \`.claude/settings.local.json\` instead. This local file is gitignored and overrides the repo default.
4444
45-
**For example, if you're changing AWS_PROFILE:**
46-
The default profile name is \`my-sandbox\`. If your AWS profile has a different name, override it locally instead of changing the shared file.
47-
48-
Create or edit \`.claude/settings.local.json\` in the repo root and include the following lines:
49-
50-
\`\`\`json
51-
{
52-
"env": {
53-
"AWS_PROFILE": "your-sandbox-name"
54-
}
55-
}
56-
\`\`\`
45+
See [\`.claude/settings.local.json.example\`](https://github.com/mendix/docs/blob/development/.claude/settings.local.json.example) for available options you can override (AWS profile, region, Bedrock configuration, and model selection).
5746
`;
5847
5948
await github.rest.issues.createComment({

0 commit comments

Comments
 (0)