initial framework for ai-ai mode