diff options
| author | Craig Jennings <c@cjennings.net> | 2026-01-09 14:14:24 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-01-09 14:14:24 -0600 |
| commit | 173d3a70e32e3ce1c83cf98346ab9d007782c5b6 (patch) | |
| tree | 6458655314d3e56e4e63114ea3288c6fd583265e /dotfiles/system/.local | |
| parent | c4da6f74db13b677e041e1fafa6abb44a5e69098 (diff) | |
session: add ai-assistants tmux launcher script
Created script to launch tmux session with Claude assistants for multiple
projects. Synced dotfile changes including calibre, audacious, and shell configs.
Diffstat (limited to 'dotfiles/system/.local')
| -rwxr-xr-x | dotfiles/system/.local/bin/ai-assistants | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/dotfiles/system/.local/bin/ai-assistants b/dotfiles/system/.local/bin/ai-assistants new file mode 100755 index 0000000..764dfd7 --- /dev/null +++ b/dotfiles/system/.local/bin/ai-assistants @@ -0,0 +1,43 @@ +#!/bin/bash +# Launch tmux session with Claude AI assistants for multiple projects + +SESSION="ai-assistants" + +# If session exists, attach to it +if tmux has-session -t "$SESSION" 2>/dev/null; then + tmux attach-session -t "$SESSION" + exit 0 +fi + +# Define projects: name and directory +projects=( + "health:~/projects/health" + "finances:~/projects/finances" + "danneel:~/projects/danneel" + "jr-estate:~/projects/jr-estate" + "kit:~/projects/kit" + "homelab:~/projects/homelab" + "nextjob:~/projects/nextjob" +) + +# Claude command to run in each window +CLAUDE_CMD='claude "Please read ./docs/NOTES.org and begin the session start workflow"' + +# Create session with first project +first="${projects[0]}" +name="${first%%:*}" +dir="${first#*:}" +tmux new-session -d -s "$SESSION" -n "$name" -c "$dir" +tmux send-keys -t "$SESSION:$name" "$CLAUDE_CMD" Enter + +# Create remaining windows +for project in "${projects[@]:1}"; do + name="${project%%:*}" + dir="${project#*:}" + tmux new-window -t "$SESSION" -n "$name" -c "$dir" + tmux send-keys -t "$SESSION:$name" "$CLAUDE_CMD" Enter +done + +# Select first window and attach +tmux select-window -t "$SESSION:health" +tmux attach-session -t "$SESSION" |
