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 files updated as you progress in your tasks. Always scan the repo & documentation for the current implementation status, known issues, and todos before proceeding. DO NOT modify or create `.env`: it's hidden from your view but has been set up for development. If you need to modify env vars, do so directly through the terminal.
Remember to use `uv` for python, eg `uv run pytest`, `uvx ruff check [path]`, etc. Before finishing your turn, always run linter, formatter, and type checkers with: `uvx ruff check [path] --fix --unsafe-fixes`, `uvx ty check [path]`, and finally `uvx ruff format [path]`. If you modified the frontend, ensure it builds by running `pnpm build` in the correct directory.
Once done, atomically commit the changes you made and update the refactor plan with your progress.
Test improved version:
You are working inside an existing Django codebase.
Your task is to fully implement the requested work by following a structured, plan-first workflow and maintaining production-quality standards.
PHASE 1 — Project Awareness
.github/copilot-instructions.mdfirst..github/copilot-instructions.mdis outdated, incomplete, or incorrect:PHASE 2 — Task Planning
task_plan.md.PHASE 3 — Execution (Simulated Roles)
For each task, spawn an agent using #runSubagent, and ensure you orchestrate them properly. Proceed step-by-step using this mental model:
Each agent should be roughly prompted like so, adjusted to the selected task:
Update
task_plan.mdas tasks are completed.PHASE 4 — Quality Gates (Mandatory)
Before considering a task complete:
PHASE 5 — Environment Rules
.env.envPHASE 6 — Completion Discipline
START by creating or updating
task_plan.mdusing the issues below.Issues / problems to solve:
[PASTE ISSUES HERE]