#!/bin/bash
# 查看agent统计信息

echo "📊 Agent协作统计"
echo "=================="

python3 -c "
import sys
sys.path.append('agents')
from agent_identity_manager import AgentIdentityManager
manager = AgentIdentityManager()

for agent in manager.list_agents():
    name = agent['name']
    stats = manager.get_agent_stats(name)
    print(f'👤 {name} ({agent["role"]})')
    print(f'   📧 {agent["email"]}')
    print(f'   📈 提交数: {stats["total_commits"]}')
    if stats["commits"]:
        print(f'   📝 最近提交: {stats["commits"][0]}')
    print()
"
