Course contents

Windsurf rules are now Devin rules: setup guide for .devin/

beginner3 min readUpdated
  • Windsurf / Devin
On this page

What changed

On June 2, 2026, Windsurf became Devin Desktop through an over-the-air update (Devin Desktop FAQ). Your existing Windsurf rules keep working. What changed is the preferred folder: .devin/ is now primary, and .windsurf/ is the fallback.

Devin Desktop's local agent shares its harness with Devin CLI, so the same rules and skills work in both (Devin customizations).

Where rules go

PathWhat it is
AGENTS.md, AGENT.md, AGENTS.local.mdAlways-on rules, read from the workspace root down to the folder being worked on
.devin/rules/*.mdOne rule per file, with trigger frontmatter (preferred)
.devin/global_rules.mdOne always-on file for the project
~/.devin/rules/*.md, ~/.devin/global_rules.mdYour rules for every project
.windsurf/rules/*.md, .windsurf/global_rules.md, .windsurfrulesLegacy, still imported by default

Rule files in both .devin/rules/ and .windsurf/rules/ load. When both global_rules.md files exist, only .devin/global_rules.md loads.

The trigger field

Each file in .devin/rules/ declares when it applies:

triggerWhen it reaches the agent
always_onEvery session
globWhen the agent works with files matching globs
model_decisionWhen the agent decides the description is relevant
manualOnly when you invoke it

A glob rule:

.devin/rules/tests.md
---
trigger: glob
globs: "**/*.test.ts"
---

- Use `describe` and `it` blocks.
- Mock external HTTP calls with the helpers in `test/mocks/`.

A model-decision rule needs a description, because that's what the agent judges:

.devin/rules/migrations.md
---
trigger: model_decision
description: "How to add or change database tables and migrations"
---

- Create a new migration file. Never edit one that has been applied.
- Regenerate types with `pnpm db:types` after a schema change.

Devin's own advice is to keep rules short because always-on rules cost tokens on every message, and to use a rule to point the agent at the skills it should use.

Skills

ScopeLocation
Workspace.devin/skills/<name>/ (also reads .agents/skills/ and legacy .windsurf/skills/)
Global~/.config/devin/skills/<name>/ (also reads ~/.agents/skills/)

A skill is a folder with a SKILL.md that has name and description frontmatter. Only the name and description are shown up front; the rest loads when the agent invokes it or you type /skill-name.

Install a preset

npx presets-dev add nextjs --tool windsurf
created .devin/rules/nextjs-rules.md
created .devin/skills/nextjs-code-review/SKILL.md
2 file action(s), 0 skipped. https://presets.dev

The rule uses trigger: model_decision with a description of the stack. The CLI writes only to .devin/. It never also writes a copy to .windsurf/, because both folders load and you'd get the rule twice. If .agents/skills/nextjs-code-review/ already exists, the skill copy is skipped for the same reason.

Preview: Next.js rule for Windsurf and Next.js code review skill for Windsurf.

Moving from .windsurf/

You don't have to move anything. If you want a clean setup:

  1. Move .windsurf/rules/*.md to .devin/rules/ (same frontmatter).
  2. Move .windsurf/skills/ to .devin/skills/ or .agents/skills/.
  3. Delete the old copies so nothing loads twice.
  4. Leave .windsurfrules alone or fold it into AGENTS.md; there's no .devinrules equivalent.

Check that it loaded

Open Customize in the Agents window. The Rules and Skills tabs list what the agent has loaded for this workspace.

Common mistakes

  • The same rule in .devin/rules/ and .windsurf/rules/. Both load.
  • model_decision without a description. The agent has nothing to decide on.
  • Old character limits. Older Windsurf docs listed per-file limits; current Devin docs don't state one, but short rules still work better.

Recap

  • Windsurf is Devin Desktop as of June 2, 2026; .devin/ is the preferred folder.
  • Rules use trigger: always_on, glob, model_decision or manual.
  • Skills go in .devin/skills/ or .agents/skills/.
  • Don't keep copies in both .devin/ and .windsurf/.

Next step

Cline setup, or read the full Windsurf and Gemini CLI migration guide.