Skip to content

Commit c04ab41

Browse files
Set Claude model to opus 4.6 1M in base role
Move model config from local-only key (preserved from existing settings) to base role so it's managed declaratively. All machines get opus[1m] by default when claudeconfig.sh runs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent df71e04 commit c04ab41

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

claude/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ When you run `./claudeconfig.sh`:
9797
2. **Active role** (`roles/$ROLE.jsonc`): settings deep-merged on top of base. Permissions and sandbox arrays concatenated (not deep-merged, which would replace arrays)
9898
3. **Stacks** (`stacks/*.jsonc`, sorted alphabetically): permissions and sandbox arrays concatenated
9999
4. **Deduplication**: all arrays sorted and deduplicated
100-
5. **Local keys**: `model`, `enabledPlugins`, `extraKnownMarketplaces` preserved from existing `~/.claude/settings.json`
100+
5. **Local keys**: `enabledPlugins`, `extraKnownMarketplaces` preserved from existing `~/.claude/settings.json`
101101
6. **Validation and write**
102102

103103
## Common Tasks
@@ -211,14 +211,13 @@ When you notice you're repeatedly approving the same permission across projects:
211211

212212
These keys in `~/.claude/settings.json` are preserved across regenerations:
213213

214-
- `model`: machine-specific model preference
215214
- `enabledPlugins`: plugin activation state (tracked in gt-1bil)
216215
- `extraKnownMarketplaces`: managed by `configure_marketplaces()` in claudeconfig.sh
217216

218217
## Files NOT to Edit
219218

220219
- `~/.claude/settings.json`: generated by `claudeconfig.sh`, will be overwritten
221-
- Exception: `model`, `enabledPlugins`, and `extraKnownMarketplaces` are preserved
220+
- Exception: `enabledPlugins` and `extraKnownMarketplaces` are preserved
222221

223222
## Debugging
224223

claude/roles/base.jsonc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
// Base settings
3+
"model": "opus[1m]",
34
"defaultMode": "acceptEdits",
45
"statusLine": {
56
"type": "command",
@@ -10,6 +11,7 @@
1011

1112
// Permissions: base safety rules
1213
"permissions": {
14+
"defaultMode": "acceptEdits"
1315
"allow": [
1416
"Bash(rm -rf .DS_Store)",
1517
"Bash(rm -rf .cache)",

claudeconfig.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ generate_settings() {
7575
local temp_file="$(mktemp)"
7676

7777
# Local-only keys preserved from existing settings across regenerations
78-
local local_keys=("model" "enabledPlugins" "extraKnownMarketplaces")
78+
local local_keys=("enabledPlugins" "extraKnownMarketplaces")
7979

8080
# Extract local-only settings from existing file
8181
local local_settings="{}"

0 commit comments

Comments
 (0)