1. Determine if the task requires sub-agents, task planning, or human approval.
2. If using sub-agents, create or select appropriate sub-agents with necessary skills.
3. If using task planning, create a todo list with detailed steps.
4. If using human-in-the-loop, configure which tools require approval.
5. Execute the task, delegating to sub-agents, updating the todo list, or pausing for human approval as needed.
6. Handle human approval requests (approve, reject, edit).
7. Resume execution after approval or adjust the plan based on rejection feedback.
8. Finalize the task and report the results.