Cognitive flexibility is the mental ability to switch between different concepts, tasks, or mental sets, and to adapt thinking and behavior in response to new information, shifting goals, or altered environmental rules. In agentic cognitive architectures, this is simulated through mechanisms that enable an AI system to disengage from a failing plan, reconfigure its task decomposition, and select a new course of action without human intervention. It is a core component of executive function simulation, allowing autonomous agents to handle non-routine problems.
