What Is .clinerules?
Cline’s project rules file and folder
You are using Cline, the open-source AI coding agent, or you spotted a .clinerules in a repo. It is how you give Cline project rules: instructions about your stack, conventions, and commands, so it works on your project the way you want.
The thing that trips people up is that it comes in two shapes: a single .clinerules file, or a .clinerules/ folder full of Markdown files. Here is what each is and what goes inside.
Two forms: a single file or a .clinerules/ folder
- A single
.clinerulesfile at the repo root keeps all your rules in one place. Good for a small, simple set. - A
.clinerules/folder holds several Markdown files, one per topic (say,style.md,testing.md,architecture.md), and Cline loads them together. This keeps things tidy once the rules grow. See how to organize .md files for keeping a folder like this readable.
Either way, the content is the same, and it is all Markdown.
What goes inside
A .clinerules 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.
.clinerules and the other rules files
Nearly every AI coding tool has its own version of this file. .clinerules is Cline’s:
| Tool | Its rules file | From |
|---|---|---|
| Cline | .clinerules (file or folder) | Open-source VS Code coding agent |
| Cursor | .cursorrules or .cursor/rules/*.mdc | Cursor editor |
| Claude Code | CLAUDE.md | Anthropic |
| Cross-tool | AGENTS.md | The shared open standard |
For the full map by tool, see which AI rules file your tool reads; for the cross-tool standard, what AGENTS.md and CLAUDE.md are; and for Cursor’s close cousin, what a .cursorrules file is.
Reading and editing .clinerules with NoteLoom
The .clinerules/ folder is a good 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. That makes a growing set of rule files easy to read and keep tidy.
To be clear about the boundaries: NoteLoom has no AI and does not connect to Cline or any coding tool. It opens, renders, and saves the Markdown files locally; whether Cline follows the rules stays between you and the agent.
How you use it: open app.noteloom.cc in Chrome / Edge / Arc, mount your .clinerules/ 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 .clinerules file?
What is the difference between a .clinerules file and a .clinerules/ folder?
What should a .clinerules contain?
Is .clinerules the same as .cursorrules or AGENTS.md?
Can NoteLoom open a .clinerules folder?
Can I do this with NoteLoom on my phone or in Safari?
Open your .clinerules folder and read it
Open NoteLoom in Chrome / Edge / Arc, mount your .clinerules/ 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.