+
button in the Rules tab. This will open a new file in your IDE which you can use to write your rule.
.clinerules/
directory in your project (if it’s a Workspace Rule)Operating System | Default Location | Notes |
---|---|---|
Windows | Documents\Cline\Rules | Uses system Documents folder |
macOS | ~/Documents/Cline/Rules | Uses user Documents folder |
Linux/WSL | ~/Documents/Cline/Rules | May fall back to ~/Cline/Rules on some systems |
Note for Linux/WSL users: If you don’t find your global rules inYou can also have Cline create a rule for you by using the~/Documents/Cline/Rules
, check~/Cline/Rules
as the location may vary depending on your system configuration and whether the Documents directory exists.
/newrule
slash command in the chat.
.clinerules
file becomes part of your project’s source code.clinerules
file in your project’s root directory:
.clinerules/
directory, combining them into a unified set of rules. The numeric prefixes (optional) help organize files in a logical sequence.
.clinerules/
folder while tracking the clinerules-bank/
.clinerules
files and the folder system even easier, Cline v3.13 introduces a dedicated popover UI directly accessible from the chat interface.
Located conveniently under the chat input field, this popover allows you to:
.clinerules
file or folder contents) are currently active..clinerules/
folder with a single click. This is perfect for activating context-specific rules (like react-rules.md
or memory-bank.md
) only when needed..clinerules
file or folder if one doesn’t exist, or add new rule files to an existing folder.