Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions chezmoi/.chezmoiscripts/run_onchange_add_agent_skills.sh.tmpl

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,41 @@ set -euo pipefail

curl -fsSL https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.sh | bash
if command -v codebase-memory-mcp >/dev/null; then
codebase-memory-mcp config set auto_index true;
codebase-memory-mcp config set auto_index true
fi

if command -v claude >/dev/null; then
npx --yes ctx7 setup --claude --cli --yes;
npx --yes ctx7 setup --claude --cli --yes
fi
if command -v opencode >/dev/null; then
npx --yes ctx7 setup --opencode --cli --yes;
npx --yes ctx7 setup --opencode --cli --yes
fi

if command -v rtk >/dev/null; then
rtk telemetry disable
if command -v claude >/dev/null; then
rtk init --global --auto-patch;
rtk init --global --auto-patch
fi
if command -v opencode >/dev/null; then
rtk init --global --opencode;
rtk init --global --opencode
fi
fi

agents=(
{{- if not .is_ephemeral }}
claude-code
{{- end }}
opencode
)
agent_opt=()
for agent in "${agents[@]}"; do
agent_opt+=(--agent "$agent")
done

skills=(
vercel-labs/skills
philschmid/mcp-cli
)
for entry in "${skills[@]}"; do
npx --yes skills add "${entry}" --global "${agent_opt[@]}" --skill "*" --yes
done
Comment thread
yxtay marked this conversation as resolved.

This file was deleted.

12 changes: 12 additions & 0 deletions chezmoi/.chezmoiscripts/run_onchange_setup_opencode.sh.tmpl
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
Comment thread
yxtay marked this conversation as resolved.
46 changes: 46 additions & 0 deletions chezmoi/.chezmoitemplates/claude-settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
Comment thread
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]"
},
Comment thread
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"
]
Comment thread
yxtay marked this conversation as resolved.
}
},
"statusLine": {
"type": "command",
"command": "npx --yes context-mode statusline"
},
"worktree": {
"baseRef": "fresh"
}
}
18 changes: 0 additions & 18 deletions chezmoi/private_dot_agents/skills/mcp-cli-usage/SKILL.md

This file was deleted.

7 changes: 7 additions & 0 deletions chezmoi/private_dot_claude/modify_settings.json
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 }}
2 changes: 1 addition & 1 deletion chezmoi/private_dot_config/opencode/modify_tui.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
{{- if .chezmoi.stdin | trim -}}
{{- $current = fromJson .chezmoi.stdin -}}
{{- end -}}
{{- $chezmoi := includeTemplate "tui.json" . | fromJson -}}
{{- $chezmoi := includeTemplate "opencode-tui.json" . | fromJson -}}
{{ mergeOverwrite $current $chezmoi | toPrettyJson }}
Loading