Windsurf Cascade ignores your rules. Fix the path and trigger first
If Cascade ignores your coding rules, put them in `.devin/rules/*.md` (or legacy `.windsurf/rules/*.md`) with a correct `trigger`, not only in chat. Then match the activation mode to how you work—`always_on`, `glob`, `model_decision`, or `@mention` for `manual`. Short answer: 5 steps. 1) Confirm where Cascade loads rules from; 2) Set the trigger that matches how you expect the rule to fire; 3) Use AGENTS.md when you want location-based rules without frontmatter; 4) Stay under the character limits and keep rules specific; 5) Don’t rely on auto Memories for durable team rules.
Last updated: · This page is the decision checklist; the tools list for “Make Windsurf / Devin Cascade rules apply” is a separate URL.
How do I fix this: Windsurf Cascade ignores your rules?
Confirm where Cascade loads rules from
Workspace rules live as one markdown file per rule under `.devin/rules/` (preferred) or `.windsurf/rules/` (fallback). Global rules are the single always-on file at `~/.codeium/windsurf/memories/global_rules.md`. The legacy root `.windsurfrules` is still read, but directory rules with frontmatter are the format Devin Desktop documents for new work. Docs: https://docs.devin.ai/desktop/cascade/memories
Set the trigger that matches how you expect the rule to fire
Each workspace rule needs YAML frontmatter with `trigger`. `always_on` puts the full rule in every message. `glob` needs a `globs` pattern and applies when Cascade reads or edits matching files. `model_decision` only shows a `description` until Cascade decides the rule is relevant. `manual` stays out of the prompt until you type `@rule-name` (filename without `.md`). A wrong trigger looks like a broken rule.
Use AGENTS.md when you want location-based rules without frontmatter
A root `AGENTS.md` is treated as always-on. An `AGENTS.md` in a subdirectory is treated like a glob for that directory. That is enough for folder conventions; keep cross-cutting style rules in `.devin/rules/` when you need `always_on` or `manual` control. https://docs.devin.ai/desktop/cascade/agents-md
Stay under the character limits and keep rules specific
Workspace rule files are capped at 12,000 characters each; the global rules file at 6,000. Devin’s docs recommend short, specific bullets over vague essays, and note that generic “write good code” rules add little. If a long rule never seems to land, split it or shorten it, then reopen Cascade Customizations → Rules to confirm it appears.
Don’t rely on auto Memories for durable team rules
Cascade can auto-generate Memories for the legacy Cascade agent, but Devin docs say the default Devin Local agent does not persist Memories. For durable, shareable guidance, write a Rule or `AGENTS.md` in the repo instead of asking Cascade to “remember” in chat. FAQ: https://docs.devin.ai/desktop/devin-desktop-faq
Which tools are best to make Windsurf / Devin Cascade rules apply?
Memories & Rules
Official paths, triggers (always_on, glob, model_decision, manual), and character limits.
AGENTS.md
Location-scoped rules without frontmatter: root always-on, subdirectory auto-glob.
Devin Desktop FAQ
Confirms Windsurf rules still work and `.devin/rules/` is preferred over `.windsurf/rules/`.
Windsurf / Devin Desktop
Editor and Cascade agent where you open Customizations → Rules to verify loaded rules.
Open: 1 spot per week
One labeled sponsor for this topic each week; this week's spot is open. See open weeks →
All tools for “Make Windsurf / Devin Cascade rules apply” →
Related fixes
- Stop a Cursor agent loopHow to fix a Cursor agent loop (same edit, or work after Stop)Fix →
- Claude Code vs Codex vs Cursor ~$20 plansClaude Code vs Codex vs Cursor $20 plan limits: how to pick without burning the weekFix →
- Scan a vibe-coded app for leaked API keysCheck a vibe-coded app for leaked API keys before you share itFix →
- Add an MCP server to Claude Code, Cursor, or CodexHow to add an MCP server to Claude Code, Cursor, or CodexFix →
See also AI tools launched today on the daily board.
NewAIToolsToday Daily
Top 3 AI launches, one model or news item that matters, and one simple fix. A 5-minute read, every weekday.