GameCatalyst’s five-layer architecture ensures your AI sessions survive Unity recompilation without losing context or requiring reconnection. By running critical services as external Python processes (Layers 1-4) and only placing the execution layer inside Unity (Layer 5), GameCatalyst maintains your AI connection even when Unity pauses to recompile code. This section explains how the five layers work together, why external processes survive recompilation, how Layer 5 reconnects automatically, and why you never experience lost context or interrupted sessions.