-
Notifications
You must be signed in to change notification settings - Fork 0
feat: manage claude settings.json via chezmoi modify_ script #861
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
67a925d
feat: manage claude settings.json via chezmoi modify_ script
yxtay 09abd59
refactor: rename tui.json template to opencode-tui.json
yxtay fc5526e
fix: address PR review comments on claude-settings template
yxtay d831b0f
remove mcp-cli skill
yxtay 9e418c0
fix: revert to npx for context-mode statusline command
yxtay 7508c14
refactor: consolidate agent skills and opencode setup scripts
yxtay a99c4b0
Update run_onchange_after_agent_plugins.sh.tmpl
yxtay 3b86c39
remove colons
yxtay File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
22 changes: 0 additions & 22 deletions
22
chezmoi/.chezmoiscripts/run_onchange_add_agent_skills.sh.tmpl
This file was deleted.
Oops, something went wrong.
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
8 changes: 0 additions & 8 deletions
8
chezmoi/.chezmoiscripts/run_onchange_install_opencode.sh.tmpl
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
chezmoi/.chezmoiscripts/run_onchange_setup_opencode.sh.tmpl
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #!/usr/bin/env bash | ||
| set -euo pipefail | ||
|
|
||
| if ! command -v npm >/dev/null; then | ||
| exit | ||
| fi | ||
|
|
||
| if ! command -v opencode >/dev/null; then | ||
| npm install --global opencode-ai | ||
|
|
||
| fi | ||
|
|
||
| npx --yes github:JuliusBrussee/caveman -- --only opencode | ||
|
yxtay marked this conversation as resolved.
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| { | ||
|
yxtay marked this conversation as resolved.
|
||
| "$schema": "https://json.schemastore.org/claude-code-settings.json", | ||
| "model": "sonnet", | ||
| "fallbackModel": ["bedrock.claude-sonnet-4-5"], | ||
| "modelOverrides": { | ||
| "claude-haiku-4-5": "bedrock.claude-haiku-4-5", | ||
| "claude-sonnet-4-5": "bedrock.claude-sonnet-4-5", | ||
| "claude-sonnet-4-6": "bedrock.claude-sonnet-4-6[1m]", | ||
| "claude-opus-4-8": "bedrock.claude-opus-4-8[1m]" | ||
| }, | ||
| "env": { | ||
| "ANTHROPIC_DEFAULT_HAIKU_MODEL": "bedrock.claude-haiku-4-5", | ||
| "ANTHROPIC_DEFAULT_OPUS_MODEL": "bedrock.claude-opus-4-8[1m]", | ||
| "ANTHROPIC_DEFAULT_SONNET_MODEL": "bedrock.claude-sonnet-4-6[1m]" | ||
| }, | ||
|
yxtay marked this conversation as resolved.
|
||
| "autoCompactEnabled": true, | ||
| "awaySummaryEnabled": true, | ||
| "fileCheckpointingEnabled": true, | ||
| "preferredNotifChannel": "terminal_bell", | ||
| "permissions": { | ||
| "defaultMode": "auto", | ||
| "disableBypassPermissionsMode": "disable" | ||
| }, | ||
| "sandbox": { | ||
| "enabled": true, | ||
| "enableWeakerNetworkIsolation": true, | ||
| "filesystem": { | ||
| "allowWrite": [ | ||
| "~/.gradle", | ||
| "~/.m2", | ||
| "~/.npm", | ||
| "~/Library/pnpm", | ||
| "~/.yarn", | ||
| "~/.cache", | ||
| "~/Library/Caches" | ||
| ] | ||
|
yxtay marked this conversation as resolved.
|
||
| } | ||
| }, | ||
| "statusLine": { | ||
| "type": "command", | ||
| "command": "npx --yes context-mode statusline" | ||
| }, | ||
| "worktree": { | ||
| "baseRef": "fresh" | ||
| } | ||
| } | ||
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| {{- /* chezmoi:modify-template */ -}} | ||
| {{- $current := dict -}} | ||
| {{- if .chezmoi.stdin | trim -}} | ||
| {{- $current = fromJson .chezmoi.stdin -}} | ||
| {{- end -}} | ||
| {{- $chezmoi := includeTemplate "claude-settings.json" . | fromJson -}} | ||
| {{ mergeOverwrite $current $chezmoi | toPrettyJson }} |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.