What Is .windsurfrules?
Windsurf’s rules file and folder
You are using Windsurf, the AI IDE, or you saw a .windsurfrules in a repo. It is how you give Windsurf project rules: instructions about your stack, conventions, and commands, so its agent works on your project the way you want.
Like Cursor, Windsurf has an older and a newer form of this: a single .windsurfrules file, or a .windsurf/rules/ folder of Markdown files. Here is what each is and what goes inside.
Two forms: the legacy file or the .windsurf/rules/ folder
- A single
.windsurfrulesfile at the repo root is the older way, all your rules in one place. - A
.windsurf/rules/folder is the newer form, holding several Markdown files that Windsurf loads together, one per topic. It keeps things tidy once the rules grow. See how to organize .md files for keeping such a folder readable.
Either way, the content is the same, and it is all Markdown.
What goes inside
A .windsurfrules holds the same kind of thing every AI rules file holds: your stack and architecture, code conventions and style, the commands to run, and boundaries for what the agent should and should not touch. It is plain Markdown, so it is just headings and lists describing your project. If you are writing one, how to write Markdown covers the syntax.
.windsurfrules and the other rules files
Nearly every AI coding tool has its own version of this file. .windsurfrules is Windsurf’s:
| Tool | Its rules file | From |
|---|---|---|
| Windsurf | .windsurfrules or .windsurf/rules/*.md | Codeium’s AI IDE |
| Cursor | .cursorrules or .cursor/rules/*.mdc | Cursor editor |
| Cline | .clinerules (file or folder) | VS Code coding agent |
| Cross-tool | AGENTS.md | The shared open standard |
For the full map by tool, see which AI rules file your tool reads; for the closest cousin, what a .cursorrules file is and what .clinerules is; and for the cross-tool standard, what AGENTS.md and CLAUDE.md are.
Reading and editing .windsurfrules with NoteLoom
The .windsurf/rules/ folder is a natural fit for NoteLoom, because a folder of Markdown files is exactly what it is built to open. Mount the folder in the browser and NoteLoom renders each .md in a clean reading view, with a file tree to move between them, and a source view to edit and save back to disk. A growing set of rule files stays easy to read and keep tidy.
To be clear about the boundaries: NoteLoom has no AI and does not connect to Windsurf or any coding tool. It opens, renders, and saves the Markdown files locally; whether the agent follows the rules stays between you and Windsurf.
How you use it: open app.noteloom.cc in Chrome / Edge / Arc, mount your .windsurf/rules/ folder itself (pick that folder as the root, not a parent), and read or edit the .md files inside. Saved straight to your disk, no cloud, no account.
FAQ
What is a .windsurfrules file?
What is the difference between .windsurfrules and .windsurf/rules/?
What should a .windsurfrules contain?
Is .windsurfrules the same as .cursorrules or AGENTS.md?
Can NoteLoom open a .windsurf/rules/ folder?
Can I do this with NoteLoom on my phone or in Safari?
Open your .windsurf/rules folder and read it
Open NoteLoom in Chrome / Edge / Arc, mount your .windsurf/rules/ folder, and read or edit the Markdown rule files inside, all in a clean view. Saved straight back to your disk, no software to install and no account to sign up for.