$ lexprog.com

// notes from an old coder -- php, databases, and the occasional rant

[November 10, 2026] Cursor

Use Plan mode before a wide edit: in Agent mode

For refactors that touch handlers and templates, plan, then implement. Let the agent run tools; stay in the loop for irreversible steps.

────────────────────────────────────────────────────────

Use Plan mode before a wide edit: in Agent mode

Tip: Agree the file list first

For refactors that touch handlers and templates, plan, then implement. Let the agent run tools; stay in the loop for irreversible steps.

Plan: 1) filter categories SQL 2) 404 empty 3) cargo check

Gotcha: Implementing during the plan (in agent mode)

You asked for a plan and got a dirty tree. Check write tools. Plan-only text with a write tool still enabled will edit before you agree.

plan mode + write enabled

Source: https://docs.cursor.com/agent/overview

────────────────────────────────────────────────────────
<-- back to posts