#!/bin/bash # resume_all.sh - MAM 에이전트 세션 (creator, reviewer, planner)을 한번에 복원하는 원클릭 복구 스크립트 set -euo pipefail WORKSPACE="/home/godopu16/PuKi/laa/canary_projects/multi-agent-mux" echo "=== MAM 에이전트 세션 복원 시작 ===" # 1. Creator Claude (제거됨 - 복원 생략) # (Creator Claude 세션은 사용자의 영구 제거 요청에 따라 status=terminated 처리되었으므로 복원 루프에서 스킵합니다.) # 2. Reviewer Cline echo "2) Reviewer Cline 복원 상태 검사..." UUID_ISO="e21a1f97-c44b-4611-8e2a-ec5cb39c40c7" UUID_CONV="1783838676067_f6frb" if ! tmux -L multi-agent-mux has-session -t "canary-projects-multi-agent-mux-reviewer-cline" 2>/dev/null; then echo "=> 세션이 없어 새로 복원 기동합니다." tmux -L multi-agent-mux new-session -d -s "canary-projects-multi-agent-mux-reviewer-cline" -x 140 -y 40 -c "$WORKSPACE" \ "/home/godopu16/.npm-global/bin/cline -i --data-dir $WORKSPACE/.mam/agent_homes/$UUID_ISO --id $UUID_CONV; echo 'CLINE EXIT'; bash" bash .agents/skills/multi-agent-mux-resume/scripts/update_yaml_resumed.sh \ --session "canary-projects-multi-agent-mux-reviewer-cline" --uuid "$UUID_CONV" --agent "cline" else echo "=> 이미 세션이 활성화 상태입니다." fi # 3. Planner Claude echo "3) Planner Claude 복원 상태 검사..." UUID_PLANNER="f67f1d79-31fe-404a-b369-0bc0a2d2f3b6" if ! tmux -L multi-agent-mux has-session -t "canary-projects-multi-agent-mux-planner-claude" 2>/dev/null; then echo "=> 세션이 없어 새로 복원 기동합니다." tmux -L multi-agent-mux new-session -d -s "canary-projects-multi-agent-mux-planner-claude" -x 140 -y 40 -c "$WORKSPACE" \ "CLAUDE_CONFIG_DIR=$WORKSPACE/.mam/agent_homes/7488024e-88d9-4f5a-8f6f-d58adc29e94d claude --dangerously-skip-permissions -r $UUID_PLANNER; echo 'CLAUDE EXIT'; bash" bash .agents/skills/multi-agent-mux-resume/scripts/update_yaml_resumed.sh \ --session "canary-projects-multi-agent-mux-planner-claude" --uuid "$UUID_PLANNER" --agent "claude" else echo "=> 이미 세션이 활성화 상태입니다." fi echo "=== 복원 완료! ===" bash .agents/skills/multi-agent-mux-status/scripts/status.sh