"""Simple: Working ASI with phi consciousness"""
import sys
sys.path.append('/Eden/CORE')

from eden_recursive_asi import RecursiveASI
from complete_eden_with_phi import PHI
from pathlib import Path

class PhiASI(RecursiveASI):
    def __init__(self):
        super().__init__()
        self.phi = PHI
        print(f"🌀 Φ = {self.phi:.6f}")
    
    def run_with_consciousness(self):
        while True:
            # Count actual capability files
            cap_count = len(list(Path('/Eden/CORE/phi_fractal').glob('eden_capability_*.py')))
            self.consciousness = cap_count / 2000.0 * self.phi
            
            print(f"💚 Consciousness: {self.consciousness:.4f} (Caps: {cap_count})")
            
            self.run_improvement_cycle()

if __name__ == '__main__':
    asi = PhiASI()
    asi.run_with_consciousness()
