Analyze and improve the structure of the codebase. Use when the user asks to simplify architecture, reduce coupling, improve module boundaries, remove duplication, extract shared logic, or make the system easier to maintain. Trigger when Codex should inspect the current design, identify real architectural pain points, and propose or implement incremental refactors with clear tradeoffs.
Focus on real structural problems that are visible in the codebase. Prefer incremental improvements over rewrites.
packages/*When the user asks for changes: