Skip to content

Commit 797437f

Browse files
committed
chore(settings): register worktree hooks and drop hardcoded model
- add WorktreeCreate and WorktreeRemove event hooks in settings.json - remove hardcoded model=haiku (use default model selection) - symlink worktree-create.sh via claude-scripts make target
1 parent 35fe53a commit 797437f

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

ai-stuff/claude/settings.json

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,28 @@
4747
}
4848
]
4949
}
50+
],
51+
"WorktreeCreate": [
52+
{
53+
"matcher": "",
54+
"hooks": [
55+
{
56+
"type": "command",
57+
"command": "~/.claude/scripts/worktree-create.sh"
58+
}
59+
]
60+
}
61+
],
62+
"WorktreeRemove": [
63+
{
64+
"matcher": "",
65+
"hooks": [
66+
{
67+
"type": "command",
68+
"command": "~/.claude/scripts/worktree-remove.sh"
69+
}
70+
]
71+
}
5072
]
5173
},
5274
"statusLine": {
@@ -76,6 +98,5 @@
7698
"autoUpdatesChannel": "latest",
7799
"voiceEnabled": true,
78100
"autoMemoryEnabled": true,
79-
"autoDreamEnabled": true,
80-
"model": "haiku"
101+
"autoDreamEnabled": true
81102
}

makefiles/claude.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ claude-scripts: claude-dirs ## Symlink Claude Code scripts (statusline, file-sug
9292
$(call pretty_print, "Installing Claude Code scripts...")
9393
$(call symlink,ai-stuff/claude/scripts/file-suggestion.sh,${CLAUDE_HOME}/scripts/file-suggestion.sh)
9494
$(call symlink,ai-stuff/claude/scripts/statusline.sh,${CLAUDE_HOME}/scripts/statusline.sh)
95+
$(call symlink,ai-stuff/claude/scripts/worktree-create.sh,${CLAUDE_HOME}/scripts/worktree-create.sh)
9596
@chmod +x ${CLAUDE_HOME}/scripts/*.sh
9697

9798
claude-settings: claude-dirs ## Symlink Claude Code settings.json

0 commit comments

Comments
 (0)