$ lexprog.com

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

[November 14, 2026] Cursor

Use Plan mode before a wide edit: with repo rules enabled

For refactors that touch handlers and templates, plan, then implement. Put always-on constraints in .cursor/rules or AGENTS.md.

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

Use Plan mode before a wide edit: with repo rules enabled

Tip: Agree the file list first

For refactors that touch handlers and templates, plan, then implement. Put always-on constraints in .cursor/rules or AGENTS.md.

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

Gotcha: Implementing during the plan (with repo rules enabled)

You asked for a plan and got a dirty tree. Check write tools. A 20k rule file will bury the one footgun; keep rules short.

plan mode + write enabled

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

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