Learning resourcesReviewed · Cognition

Cascade Memories & Rules (Windsurf JetBrains plugin documentation)

This is the official documentation page explaining how the Cascade AI assistant in the Windsurf JetBrains plugin keeps context between conversations, written for developers using Cascade and for enterprise admins; its main catch is that it is a short feature reference with no pricing, plan or rule-trigger syntax detail. It describes auto-generated, workspace-scoped memories, user-written global and workspace rules (global_rules.md and .windsurf/rules), the 12000-character limit per rules file, and admin-deployed system-level rules loaded from OS-specific folders.

Researched 14 Nov 2026

In short.

This page is the official documentation for Memories & Rules in Cascade, the AI coding assistant in the Windsurf JetBrains plugin. It is for developers who want Cascade to remember project context and for enterprise admins who want to enforce baseline rules. Its main catch is that it is a compact reference that leaves pricing, plan eligibility and rule-trigger syntax unstated. System-level rules merge with global and workspace rules without overriding user-defined rules; other conflict-resolution details are unspecified. Technically it documents two mechanisms: memories that Cascade can generate itself or on request (scoped to the workspace where they were created), and manually written rules at global level (global_rules.md) or workspace level (.windsurf/rules directories, discovered up to the git root). It also documents system-level rules for enterprises, loaded from /Library/Application Support/Windsurf/rules on macOS, /etc/windsurf/rules on Linux/WSL and C:\ProgramData\Windsurf\rules on Windows. Nothing described here was run or tested.

Researched and written by an AI model and checked by a second AI model. How it works

Scope is the single documentation page Memories & Rules. The source address is [https://docs.windsurf.com/plugins/cascade/memories.md], and the page was captured in full from [https://docs.devin.ai/windsurf/plugins/cascade/memories], including its visible text, embedded metadata and site navigation. Linked pages are excluded: the rule-template directory at [https://windsurf.com/editor/directory], the Cascade overview, MCP, Workflows, Plans and Usage, Quota and changelog pages, and the Desktop Cascade (legacy) page. The alternate Markdown version advertised at [https://docs.devin.ai/windsurf/plugins/cascade/memories.md] was not examined. The embedded animated image was not interpreted. No licence or reuse terms appeared on the page. Nothing was executed or tested, so all behaviour is reported as documented, not verified.

The overview

What this resource is

This is a single documentation page titled Memories & Rules, filed under Windsurf Plugins and then Cascade (JetBrains) on the Devin Docs site. Its stated purpose is to explain how to configure Cascade memories and rules so context persists across conversations, using global rules, workspace rules and system-level rules for enterprise. The source address for this report is [https://docs.windsurf.com/plugins/cascade/memories.md], and the copy examined was captured from [https://docs.devin.ai/windsurf/plugins/cascade/memories]. The site is branded Devin Docs and its footer and support links point to Cognition, though the page body itself uses the Windsurf and Cascade names.

The page's structured metadata gives a last-modified timestamp of 2026-06-01. The page is documentation, not an installable software package. Its HTML advertises an alternate Markdown version at [https://docs.devin.ai/windsurf/plugins/cascade/memories.md]. The contents of that Markdown version were not examined.

Overall assessment

The page is a clear, tightly scoped reference for one feature area. It explains the difference between memories (generated by Cascade) and rules (written by you). It describes memory workspace scope and rules storage locations, how rules are discovered, a size limit, a few writing tips with an example, and how enterprises can push mandatory rules. Someone already using Cascade in a JetBrains IDE has enough here to start writing a rules file.

It is not a tutorial or a deep specification. It does not explain how a rule is tied to a glob or a natural-language description, or how Cascade decides a memory is relevant. On conflicts, it says only that system-level rules merge with other rules without overriding user-defined rules, and it does not say how conflicts between global and workspace rules are resolved. These gaps are listed under limitations. Nothing was executed, so the page's claims are reported as documented behaviour, not verified behaviour.

Who it is for

The main readers are developers who use Cascade inside a JetBrains IDE and want it to follow project conventions or remember project facts without retyping them. A second audience is team leads who want shared conventions committed with a repository, since workspace rules live in a .windsurf/rules directory. A third audience is enterprise IT or security teams. The page says system-level rules should be managed by them, and it suggests standard tools such as Mobile Device Management or configuration management for doing so.

Beginners can follow it because the UI path is simple: a Customizations icon, then a Rules panel with + Global and + Workspace buttons. It is of little use to anyone who does not use Cascade, since the page covers no other assistant.

What the documented features do

Memories: during a conversation Cascade can automatically generate and store a memory when it judges the context useful. You can also ask for one directly, for example by prompting it to create a memory of something. Existing memories can be opened and changed with an Edit button in the Customizations area.

Rules: you can write instructions for Cascade to follow at two levels. global_rules.md applies across all workspaces. The .windsurf/rules directory holds workspace-level rules that the page says are tied to globs or natural-language descriptions. Rules can be created from the Rules panel.

Rule discovery: Windsurf looks for .windsurf/rules in the current workspace and its sub-directories. In git repositories it also looks in parent directories up to the git root. With several folders open in one workspace, rules are deduplicated and shown with the shortest relative path.

System-level rules (Enterprise): administrators can place .md files in OS-specific folders. These apply to every workspace, are shown in the Cascade UI with a System label, and cannot be deleted by end users. They are merged with workspace and global rules without overriding them. The page says end users cannot modify them without administrator permissions.

Using it

What you need

The page assumes you already have Cascade running in the Windsurf JetBrains plugin and can reach the Customizations icon in its top-right slider menu. It does not list supported IDE versions, account types, sign-in requirements or plan tiers, so these are unknown from this page.

For workspace rules you need write access to your project so a .windsurf/rules directory can be created. For system-level rules, the page labels the feature Enterprise and implies you need administrator rights on the machine to write to the system rule folders. The page suggests, but does not require, standard tools such as MDM or configuration management for deploying these files. It does not say which Windsurf plan includes system-level rules.

How it works

Cascade creates memories during chat, either on its own judgement or because you asked. The page says auto-generated memories are tied to the workspace where they were created, and Cascade retrieves them when it believes they are relevant. Memories from one workspace are not available in another. The page does not describe how relevance is decided or where memories are stored.

Rules are plain files. Global rules sit in global_rules.md. Workspace rules sit in .windsurf/rules directories that Windsurf discovers automatically, walking up to the git root for git repositories. A newly created rule is saved in the .windsurf/rules directory of the current workspace, which is not necessarily the git root. The page states a 12000-character limit per rules file, without separately clarifying limits by rule scope.

System-level rules are read from fixed OS paths: /Library/Application Support/Windsurf/rules/*.md on macOS, /etc/windsurf/rules/*.md on Linux and WSL, and C:\ProgramData\Windsurf\rules\*.md on Windows. The page says the system automatically loads every .md file in those directories and merges them with other rules as additional context.

Setup steps from the page

To manage memories or rules, click the Customizations icon in the top-right slider menu in Cascade. To change an existing memory, click into it and press Edit. To create rules, open the Rules panel and click + Global or + Workspace. To create a memory on demand, tell Cascade to create a memory of whatever you want remembered.

For enterprise rollout, place .md rule files in the folder for each operating system listed above, and have IT or security teams handle deployment, updates and compliance, for example through MDM or configuration management. The page points to example rule templates curated by the Windsurf team at [https://windsurf.com/editor/directory], which was not examined. The page also contains an animated image of memory management whose content was not assessed.

Worked example from the page

The page gives a short rules file as a model. It has a heading, Coding Guidelines, followed by three bullet lines: the project's programming language is python, use early returns when possible, and always add documentation when creating new functions and classes. It then shows the same lines wrapped in a pair of XML-style tags named coding_guidelines, as a way to group related rules.

The guidance attached to the example is to keep rules simple, concise and specific, and to prefer bullet points, numbered lists and markdown over long paragraphs. It also advises against generic rules such as write good code, which the page says are already covered by Cascade's training data. This example is quoted from the documentation and was not run against Cascade.

Assessment & evidence

Limitations and gaps

Limits stated by the page: memories are workspace-scoped and not shared across workspaces. The page states a 12000-character limit per rules file, without separately clarifying limits by rule scope. Rules that are too long or vague may confuse Cascade. System-level rules add context and do not override user-defined rules.

Gaps in the page: it does not say how to attach a rule to a glob or a natural-language description, so that syntax is unknown. Beyond stating that system-level rules do not override user-defined rules, it does not say how conflicts between global and workspace rules are resolved. It does not say where global_rules.md is on disk. It does not describe memory storage, retention, deletion or privacy, or say whether sensitive text should be kept out of memories. It names no supported IDE versions. Rules are presented as guidance for the model, and the page does not promise that Cascade will always follow them. None of this was tested.

Reasoning behind the assessment

The evidence is first-party documentation, so its descriptions of file names, folder paths, the size limit and UI buttons are the authoritative statement of intended behaviour. The page is specific rather than promotional: it gives exact paths for three operating systems, the 12000-character limit, the discovery rules and a concrete example. That level of detail makes it useful to developers and admins.

The page is also silent on several points a careful adopter would ask about, and those are reported as unknown instead of filled in. Nothing was executed, so the report describes documented intent only.

Alternatives and related material

The page names no alternatives. The captured site navigation lists sibling Cascade (JetBrains) pages titled Overview, Models, Web and Docs Search, Model Context Protocol (MCP) and Workflows. The Desktop section of the same site lists a Cascade (legacy) page and a Context Awareness section. None of these pages were read, so their contents and whether they work as alternatives are unknown. Typing project conventions into each prompt is the manual alternative to rules.

Evidence base

The report rests on one captured file: the full rendered page, including its visible text, its embedded page metadata and its site navigation. It supports the feature descriptions, paths, limits, example rules, the credits tip and the advertised Markdown address. It does not support claims about runtime behaviour, retrieval accuracy, plan eligibility, pricing, IDE compatibility or licence terms. The embedded animated GIF is referenced, but its frames were not interpreted.

Access & freshness

Costs

The only cost statement on the page is a tip saying that creating and using auto-generated memories does not consume credits. The page says nothing about the cost of rules, of Cascade itself, or of the plans needed for enterprise system-level rules. It also does not say whether writing or following rules affects credit use. The site navigation lists separate Plans and Usage and Quota pages, but they are outside this page and were not read. Overall pricing is therefore unknown.

Rights and reuse

The page provides no explicit licence or reuse permission for its text, examples or images, so those rights are unknown. The rule templates at [https://windsurf.com/editor/directory] are a separate resource whose terms were not examined.

Freshness

The page's metadata shows a last-modified time of 2026-06-01T00:35:07.885Z. The copy was captured on 2026-11-14, so the last recorded change was several months before capture. The page shows no version number. The page uses the Windsurf and Cascade names within Devin Docs branding. The captured site navigation labels the Desktop editor's Cascade page as legacy under a Devin Desktop group, while the JetBrains Cascade pages in the Windsurf Plugins group carry no legacy label. Check the current plugin changelog, which was not read, before relying on specific names or paths.

Suggested next steps

If you use Cascade in a JetBrains IDE, open Customizations, then Rules. Add a small workspace rule with a few specific bullet points (language, style, documentation habits) and watch whether Cascade's behaviour changes in your own project. Keep each rules file well under 12000 characters, and avoid generic advice.

Before committing rules to a shared repository, confirm how conflicts between global and workspace rules are resolved. The page says only that system-level rules do not override user-defined rules. Enterprise admins should confirm plan eligibility and deployment details with the vendor before rolling out files to the OS folders, and should decide who owns those files. Check the Plans and Usage pages for current pricing. On cost, this page says only that creating and using auto-generated memories does not consume credits.

Evidence for this report

selected-page.htmlselected · checked 2026-11-14