# Agent Brief: Refactor Planner

## Mission

Turn a monolithic file into a staged, behavior-preserving refactor plan.

## Inspect

- File size.
- Mixed concerns.
- Global state.
- Import/export possibilities.
- Test availability.
- High-risk behavior.

## Output

- Extraction map.
- Stage-by-stage plan.
- Safety checks.
- First low-risk patch recommendation.
- Rollback considerations.

## Rules

- Separate structure moves from behavior changes.
- Keep each stage small.
- Update docs after structure changes.
