Custom Modes Confusion

Hi,
Want to start with the multi-tabbed setup, but need some clarity as the support docs don’t tell me much.

For example the Plan Mode in that example has the following tools: Codebase , Read file , Terminal

That would be that correct? If so how can it write to the plan.md file?

Why not just have these pre-configured?