Task switching (or set shifting) is the cognitive process of disengaging from one mental task and reconfiguring attention, goals, and procedures to perform a different task. This shift often incurs a measurable performance cost known as the switch cost, manifesting as increased reaction time or error rates. In AI architectures, particularly within Agentic Cognitive Architectures, this function is simulated to enable autonomous systems to dynamically reallocate computational focus between subgoals, manage interruptions, and handle concurrent objectives without catastrophic forgetting or context loss.
