Add Claude Agent workspace configuration and utility scripts: - CLAUDE.md: Agent documentation and instructions - SETUP-COMPLETE.md: Setup completion notes - start-agent.sh: Script to start tmux session - new-task.sh: Script for new task workflow - finish-task.sh: Script to finish tasks - work.sh: Main work script 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
18 lines
456 B
Bash
Executable File
18 lines
456 B
Bash
Executable File
#!/bin/bash
|
|
# Start or attach to Claude agent tmux session
|
|
|
|
SESSION_NAME="agent"
|
|
|
|
# Load nvm
|
|
export NVM_DIR="$HOME/.nvm"
|
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
|
|
|
# Check if session exists
|
|
if tmux has-session -t $SESSION_NAME 2>/dev/null; then
|
|
echo "Attaching to existing session: $SESSION_NAME"
|
|
tmux attach-session -t $SESSION_NAME
|
|
else
|
|
echo "Creating new session: $SESSION_NAME"
|
|
tmux new-session -s $SESSION_NAME -c /workspace
|
|
fi
|