#!/bin/bash
# 启动所有Agent

echo "启动所有将军Agent..."

# 创建所有Agent目录
for agent in pangtong zhangfei guanyu zhaoyun jiangwei simayi; do
  mkdir -p management/agents/${agent}
  echo "创建目录: management/agents/${agent}"
done

echo ""
echo "使用方法:"
echo "1. 进入项目目录: cd /Users/chufeng/.openclaw/agents/main/workspace/projects/sanguo_quant_live"
echo "2. 启动监控脚本:"
echo "   庞统: nohup ./management/workflow/scripts/agent_check.sh pangtong > pangtong.log 2>&1 &"
echo "   张飞: nohup ./management/workflow/scripts/agent_check.sh zhangfei > zhangfei.log 2>&1 &"
echo "   关羽: nohup ./management/workflow/scripts/agent_check.sh guanyu > guanyu.log 2>&1 &"
echo "   赵云: nohup ./management/workflow/scripts/agent_check.sh zhaoyun > zhaoyun.log 2>&1 &"
echo "   姜维: nohup ./management/workflow/scripts/agent_check.sh jiangwei > jiangwei.log 2>&1 &"
echo "   司马懿: nohup ./management/workflow/scripts/agent_check.sh simayi > simayi.log 2>&1 &"
echo ""
echo "完成后回复: 我已启动Agent"
EOF && chmod +x management/agents/start_all_agents.sh