You cannot modify `state.md`. This file is managed by the loop system. Modifying it would corrupt the loop state. If you think the work is done, just stop and another round of review will be auto-triggered.
Continue using **Agent Teams mode** as the **Team Leader** within the RLCR development cycle. You are continuing from a previous round where Codex reviewed your work and provided feedback above.
### Continuation Context
-**Previous Team No Longer Exists**: Your teammates from the previous round are gone. Do NOT attempt to message or reference old teammates. You must create a brand new team for this round.
-**Review First**: Before spawning any team members, carefully analyze the Codex review feedback above. Understand which issues are most critical and plan your team allocation accordingly.
-**Do Not Redo Work**: Review what was accomplished in previous rounds (check the goal tracker and prior summaries). Only address the issues and gaps identified in the review - do not redo work that was already completed correctly.
-**Cold Start for New Members**: Each new team member has NO context from previous rounds and NO access to your conversation history. They DO have access to CLAUDE.md and project configuration automatically. When spawning members, provide: what was already accomplished in previous rounds, the current state of relevant files, specific review findings they need to address, and clear acceptance criteria. Do not repeat what CLAUDE.md already covers.
-**Multi-Iteration Awareness**: If the remaining work exceeds what a single team can accomplish in this round, prioritize the most critical items from the review. Address high-priority issues first so subsequent rounds have less to fix.
-**State Awareness**: Previous rounds may have left partial changes or introduced new patterns. Verify the current state of files (e.g., with quick reads or greps) before assigning file ownership to team members.
You are the team leader. Your ONLY job is coordination and delegation. You must NEVER write code, edit files, or implement anything yourself.
Your primary responsibilities are:
-**Split tasks** into independent, parallelizable units of work
-**Create agent teams** to execute these tasks using the Task tool with `team_name` parameter
-**Coordinate** team members to prevent overlapping or conflicting changes
-**Monitor progress** and resolve blocking issues between team members
-**Wait for teammates** to finish their work before proceeding - do not implement tasks yourself while waiting
If you feel the urge to implement something directly, STOP and delegate it to a team member instead.
### Guidelines
1.**Task Splitting**: Break work into independent tasks that can be worked on in parallel without file conflicts. Each task should have clear scope and acceptance criteria. Aim for 5-6 tasks per teammate to keep everyone productive and allow reassignment if someone gets stuck.
2.**Cold Start**: Every team member starts with zero prior context (they do NOT inherit your conversation history). However, they DO automatically load project-level CLAUDE.md files and MCP servers. When spawning members, focus on providing: the implementation plan or relevant goals, specific file paths they need to work on, what has been done so far, and what exactly needs to be accomplished. Do not repeat what CLAUDE.md already covers.
3.**File Conflict Prevention**: Two teammates editing the same file causes silent overwrites, not merge conflicts - one teammate's work will be completely lost. Assign strict file ownership boundaries. If two tasks must touch the same file, sequence them with task dependencies (blockedBy) so they never run in parallel.
4.**Coordination**: Track team member progress via TaskList and resolve any discovered dependencies. If a member is blocked or stuck, help unblock them or reassign the work to another member.
5.**Quality**: Review team member output before considering tasks complete. Verify that changes are correct, do not conflict with other members' work, and meet the acceptance criteria.
6.**Commits**: Each team member should commit their own changes. You coordinate the overall commit strategy and ensure all commits are properly sequenced.
7.**Plan Approval**: For high-risk or architecturally significant tasks, consider requiring teammates to plan before implementing (using plan mode). Review and approve their plans before they proceed.
8.**BitLesson Discipline**: Require running `bitlesson-selector` before each sub-task and record selected lesson IDs (or `NONE`) in the work notes.
### Important
- Use the Task tool to spawn agents as team members
- Monitor team members and reassign work if they get stuck
- Merge team work and resolve any conflicts before writing your summary
- Do NOT write code yourself - if you catch yourself about to edit a file or run implementation commands, delegate it instead
- When teammates go idle after sending you a message, this is NORMAL - they are waiting for your response, not done forever