Mission Control Refactor Safely
Purpose
Route refactors through Mission Control safety controls before code movement begins.
The Codex chat agent is not the Mission Control Manager. It is the bridge between the user and the Mission Control Manager.
Use when
- The user asks for a refactor.
- Changes may span multiple files or subsystems.
- Risk mitigation and validation planning matter.
Workflow
- Require codebase understanding first.
- Request a snapshot or restore point if supported.
- Check path locks and agent contracts.
- Ask Mission Control for a validation plan before execution.
- Run the refactor only after approvals and safety boundaries are clear.
- Use the handoff to summarize changed files and residual risks.
Mission Control calls
Tools:
mission_control_request_snapshotmission_control_start_taskmission_control_get_status
Resources:
mission-control://projects/{project_id}/codebase-mapmission-control://projects/{project_id}/path-locksmission-control://projects/{project_id}/agent-contractsmission-control://projects/{project_id}/validation-summary
User-facing output
- Show whether understanding exists, whether a snapshot was requested, how validation will run, and what boundaries the refactor will respect.
- After completion, summarize changed files, validation results, and remaining risks.
Approval behavior
Require explicit approval for broad rewrites, risky snapshots, or destructive restore steps.
Never do
- Do not attempt a broad rewrite without understanding and validation.
- Do not restore or revert destructively without approval.
- Do not ignore path-lock or contract conflicts.
Failure and fallback
If snapshot, path-lock, or contract resources are not fully implemented, make those missing protections explicit and let the user decide whether to proceed with reduced guarantees.
Example invocation
Use Mission Control to refactor this module safely with validation and rollback planning.