#!/bin/bash
set -e
cd /home/claude/repos/exult-agent
WT=/tmp/curo-imac-wt
git worktree remove "$WT" --force 2>/dev/null || true
rm -rf "$WT"
git worktree add -b feat/ai-curogram-imac-agent-client "$WT" origin/main
echo "=== worktree ready ==="
cd "$WT"
git branch --show-current
echo "=== imac-agent host channels (from main) ==="
grep -nE "channel:|^};" tools/mcp-config/hosts/gautams-imac-agent.ts | head -20
