Course contents
Windsurf rules are now Devin rules: setup guide for .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
| Path | What it is |
|---|---|
AGENTS.md, AGENT.md, AGENTS.local.md | Always-on rules, read from the workspace root down to the folder being worked on |
.devin/rules/*.md | One rule per file, with trigger frontmatter (preferred) |
.devin/global_rules.md | One always-on file for the project |
~/.devin/rules/*.md, ~/.devin/global_rules.md | Your rules for every project |
.windsurf/rules/*.md, .windsurf/global_rules.md, .windsurfrules | Legacy, 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:
trigger | When it reaches the agent |
|---|---|
always_on | Every session |
glob | When the agent works with files matching globs |
model_decision | When the agent decides the description is relevant |
manual | Only when you invoke it |
A glob rule:
---
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:
---
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
| Scope | Location |
|---|---|
| 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 windsurfcreated .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:
- Move
.windsurf/rules/*.mdto.devin/rules/(same frontmatter). - Move
.windsurf/skills/to.devin/skills/or.agents/skills/. - Delete the old copies so nothing loads twice.
- Leave
.windsurfrulesalone or fold it intoAGENTS.md; there's no.devinrulesequivalent.
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_decisionwithout adescription. 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_decisionormanual. - 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.