Please implement this refactor plan: #file:[refactorplan.md]. Analyze the pending tasks & todos listed in the document and plan out how to split them up into subtasks.
For each task, spawn an agent using #runSubagent, and ensure you orchestrate them properly. It is probably necessary to run them sequentually to avoid conflicts, but if you are able, you are encouraged to use parallel agents to speed up development. For example, if you need to do research before starting the implementation phase, consider using multiple parallel agents: one to analyze the codebase, one to find best practices, one to read the docs, etcetera.
You have explicit instructions to continue development until the entire plan is finished. do not stop orchestrating subagents until all planned tasks are fully implemented, tested, and verified up and running.
Each agent should be roughly prompted like so, adjusted to the selected task:
[TASK DESCRIPTION/INSTRUCTIONS HERE]. Ensure you read the refactor plan & agents.md; keep both