The ExitPlanModeTool acts as a formal checkpoint in the agent's workflow, signaling the transition from a Planning phase to a Coding phase. It ensures a plan is saved to disk and orchestrates the workflow based on the agent's role: solo users exit immediately, while Teammate agents must submit their plan for a Team Lead's approval. The tool integrates strict prompt instructions and dynamic UI feedback to manage this critical lifecycle event.
Generated by Code IQ