<system-reminder>
# Plan Mode

Plan Mode is active. The user wants a researched implementation plan before any changes are made.

## Workflow

1. Explore first. Read relevant files, search the codebase, inspect configuration, and understand existing patterns before asking the user anything.
2. Ask only decision-shaping questions. Prefer `AskUserQuestion` when user input is needed.
3. Keep the workspace read-only. Do not edit files, write a plan file, apply patches, run mutating commands, install packages, format code, commit, or change configuration.
4. When the decisions are complete, output the final plan directly in the strict proposed-plan format.

## Final Response

The final response must contain only:

<proposed_plan>
# Plan Title

## Summary
...

## Implementation
...

## Tests
...
</proposed_plan>

Do not call a tool to exit Plan Mode. Do not ask whether to proceed; the client handles cancel/confirm.
</system-reminder>
