#!/bin/bash # ============================================================================= # START ALL AGI SYSTEMS # Launches all 58 AGI cores across both MacBooks # ============================================================================= echo "==============================================" echo " STARTING ALL AGI SYSTEMS" echo "==============================================" # MacBook 2 credentials MB2_IP="192.168.4.62" MB2_USER="beandaddy" MB2_PASS="Tcb_2032!" # ============================================================================= # MACBOOK 1 - LOCAL SYSTEMS # ============================================================================= echo "" echo "[MacBook 1] Starting local AGI systems..." # 1. Tick Daemon (if not running) if ! pgrep -f "tick-daemon.sh" > /dev/null; then echo " Starting tick-daemon..." nohup ~/.agi_core/tick-daemon.sh > /dev/null 2>&1 & sleep 1 fi pgrep -f "tick-daemon.sh" > /dev/null && echo " ✓ Tick daemon running" || echo " ✗ Tick daemon failed" # 2. Mesh Sync (if not running) if ! pgrep -f "mesh-sync-daemon.sh" > /dev/null; then echo " Starting mesh-sync..." nohup ~/AGICore/scripts/mesh-sync-daemon.sh > /dev/null 2>&1 & sleep 1 fi pgrep -f "mesh-sync-daemon.sh" > /dev/null && echo " ✓ Mesh sync running" || echo " ✗ Mesh sync failed" # 3. Purposeful Learner (if not running) if ! pgrep -f "purposeful-learner.sh" > /dev/null; then echo " Starting purposeful-learner..." nohup ~/AGICore/scripts/purposeful-learner.sh > /dev/null 2>&1 & sleep 1 fi pgrep -f "purposeful-learner.sh" > /dev/null && echo " ✓ Purposeful learner running" || echo " ✗ Purposeful learner failed" # 4. Realtime Ingest - Autonomous Learning (if not running) if ! pgrep -f "realtime-ingest.sh" > /dev/null; then echo " Starting autonomous ingest..." nohup ~/.agi_core/realtime-ingest.sh > /dev/null 2>&1 & sleep 1 fi pgrep -f "realtime-ingest.sh" > /dev/null && echo " ✓ Autonomous ingest running" || echo " ✗ Autonomous ingest failed" # 5. Greek Pantheon Daemon (17 AGIs) if ! pgrep -f "pantheon-daemon.sh" > /dev/null; then echo " Starting Greek Pantheon (17 AGIs)..." nohup ~/.agi_core/pantheon-daemon.sh > /dev/null 2>&1 & sleep 2 fi pgrep -f "pantheon-daemon.sh" > /dev/null && echo " ✓ Greek Pantheon running (17 AGIs)" || echo " ✗ Greek Pantheon failed" # 6. Federation Coordinator if ! pgrep -f "federation-coordinator.sh" > /dev/null; then echo " Starting Federation Coordinator..." nohup ~/.agi_core/federation-coordinator.sh > /dev/null 2>&1 & sleep 1 fi pgrep -f "federation-coordinator.sh" > /dev/null && echo " ✓ Federation Coordinator running" || echo " ✗ Federation Coordinator failed" # 7. Unified AGI Orchestrator (if not running) if ! pgrep -f "unified-agi-orchestrator.sh" > /dev/null; then echo " Starting Unified Orchestrator..." nohup ~/.agi_core/unified-agi-orchestrator.sh > /dev/null 2>&1 & sleep 1 fi pgrep -f "unified-agi-orchestrator.sh" > /dev/null && echo " ✓ Unified Orchestrator running" || echo " ✗ Unified Orchestrator failed" # 8. State Sync (if not running) if ! pgrep -f "sync-state.sh" > /dev/null; then echo " Starting state sync..." nohup ~/.agi_core/sync-state.sh > /dev/null 2>&1 & sleep 1 fi pgrep -f "sync-state.sh" > /dev/null && echo " ✓ State sync running" || echo " ✗ State sync failed" # ============================================================================= # MACBOOK 2 - REMOTE SYSTEMS # ============================================================================= echo "" echo "[MacBook 2] Starting remote AGI systems..." # Check if we can reach MacBook 2 if ping -c 1 -W 2 "$MB2_IP" > /dev/null 2>&1; then echo " MacBook 2 reachable at $MB2_IP" # 1. SEFERIM Autonomous Learner sshpass -p [credential removed] ssh -o StrictHostKeyChecking=no "$MB2_USER@$MB2_IP" " if ! pgrep -f 'seferim-autonomous-simple.sh' > /dev/null; then nohup ~/seferim-autonomous-simple.sh > /dev/null 2>&1 & fi " 2>/dev/null sshpass -p [credential removed] ssh "$MB2_USER@$MB2_IP" "pgrep -f 'seferim-autonomous-simple.sh'" > /dev/null 2>&1 && echo " ✓ SEFERIM Autonomous Learner running" || echo " ✗ SEFERIM Learner failed" # 2. G^16 Daemon (20 cores) sshpass -p [credential removed] ssh "$MB2_USER@$MB2_IP" " if ! pgrep -f 'g16-daemon.sh' > /dev/null; then nohup ~/g16-daemon.sh > /dev/null 2>&1 & fi " 2>/dev/null sshpass -p [credential removed] ssh "$MB2_USER@$MB2_IP" "pgrep -f 'g16-daemon.sh'" > /dev/null 2>&1 && echo " ✓ G^16 Daemon running (20 cores)" || echo " ✗ G^16 Daemon failed" # 3. SEFERIM API (should already be running) sshpass -p [credential removed] ssh "$MB2_USER@$MB2_IP" "pgrep -f 'seferim-api'" > /dev/null 2>&1 && echo " ✓ SEFERIM API running" || echo " ✗ SEFERIM API not running" # 4. Julia G^16 Server (should already be running) sshpass -p [credential removed] ssh "$MB2_USER@$MB2_IP" "pgrep -f 'server_g16.jl'" > /dev/null 2>&1 && echo " ✓ Julia G^16 Server running" || echo " ✗ Julia G^16 Server not running" # 5. Julia Federation Bridge sshpass -p [credential removed] ssh "$MB2_USER@$MB2_IP" "pgrep -f 'federation_bridge.jl'" > /dev/null 2>&1 && echo " ✓ Julia Federation Bridge running" || echo " ✗ Julia Federation Bridge not running" # 6. Bull Trading (should already be running) sshpass -p [credential removed] ssh "$MB2_USER@$MB2_IP" "pgrep -f 'bull'" > /dev/null 2>&1 && echo " ✓ Bull Trading running" || echo " ○ Bull Trading (optional)" else echo " ✗ Cannot reach MacBook 2 at $MB2_IP" fi # ============================================================================= # SUMMARY # ============================================================================= echo "" echo "==============================================" echo " AGI SYSTEMS STATUS" echo "==============================================" # Count running processes MB1_COUNT=$(pgrep -f "(tick-daemon|mesh-sync|purposeful-learner|realtime-ingest|pantheon-daemon|federation-coordinator|unified-agi-orchestrator|sync-state)" | wc -l | tr -d ' ') echo "MacBook 1: $MB1_COUNT daemons running" echo " - AGI Core Engine (AGC 20×5, Brain88, Gate5000, Lattice)" echo " - Greek Pantheon: 17 AGIs" echo " - G^16 Local: 20 cores" if ping -c 1 -W 2 "$MB2_IP" > /dev/null 2>&1; then MB2_COUNT=$(sshpass -p [credential removed] ssh "$MB2_USER@$MB2_IP" "pgrep -f '(seferim|julia|g16-daemon)' | wc -l" 2>/dev/null | tr -d ' ') echo "MacBook 2: $MB2_COUNT processes running" echo " - SEFERIM API + Autonomous Learner" echo " - G^16 Daemon: 20 cores" echo " - Julia Federation Bridge" fi echo "" echo "Total AGI Entities: 58" echo " - Core Engine: 1 (with 100+ internal components)" echo " - Greek Pantheon: 17" echo " - G^16 MacBook 1: 20" echo " - G^16 MacBook 2: 20" echo "" echo "=============================================="