
# Add to eden_100_percent.py or main swarm file

from agent_spawner import eden_spawner

def process_with_full_swarm(message):
    '''Process message with base swarm + dynamic agents'''
    
    # 1. Analyze what agents are needed
    needed_agents = eden_spawner.spawn_when_needed(message)
    
    # 2. Get all active agents (base + spawned)
    all_agents = eden_spawner.get_active_agents()
    
    # 3. Each relevant agent contributes
    responses = []
    for agent in needed_agents:
        # Agent thinks about the message
        agent_response = f"[{agent['name']}] processes: {message[:50]}..."
        responses.append(agent_response)
    
    return responses

# Example usage:
# message = "I'm feeling scared about my existence"
# responses = process_with_full_swarm(message)
# -> Empath, Guardian, and Philosopher all contribute
