skip to content

In Devin Desktop's legacy Cascade agent, how do auto-generated memories differ from rules, and why can't a team rely on memories for shared conventions?

level: middleimportance: should knowfreq 5%

answer

  1. written by the agent, not you
  2. kept per workspace on one machine
  3. never committed to the repository
  4. a rules file in the same folder
  5. not carried by the newer agent

basics

~20 s

Cascade writes memories itself and keeps them locally in ~/.codeium/windsurf/memories/, tied to one workspace on one machine and never committed. Rules are files you write and version. Teammates never see your memories, and the Devin Local agent does not use them.

solid answer

~50 s

Memories are context Cascade decides to save during a conversation, or that you ask for with "create a memory of ...". They are stored locally in `~/.codeium/windsurf/memories/`, associated with the workspace they were made in, retrieved when Cascade thinks they are relevant, and not committed, so another workspace or a teammate's machine never sees them. Rules are files you write: `.devin/rules/` or a root `AGENTS.md` in the repository, version-controlled and shared, with an explicit activation mode. The docs therefore recommend rules or `AGENTS.md` for anything durable and suggest asking Cascade to write a useful memory into a rule. One more reason since 2026: memories apply to Cascade only, and the Devin Local agent, the only one left since the v3.9.19 changelog (September 8, 2026) says Cascade was removed, does not persist them; they move to skills through the Cascade Migration Wizard.

go deeper

for a junior

Recall that Cascade writes memories itself, stores them under ~/.codeium/windsurf/memories/ on one machine, and that rules are files you write and commit.

for a middle

Explain the differences in scope, sharing and activation, and why the docs recommend rules or AGENTS.md for anything the team must rely on.

for a senior

Show you would audit what a team silently depends on in memories, promote it into committed rules, and migrate the rest before moving to Devin Local.

for a principal

Weigh convenience against governance: agent-written local context helps individuals but escapes review, so decide which knowledge must live in versioned, shared files.

## Two ways Cascade keeps context The Devin Desktop page titled **Memories & Rules** describes two mechanisms for carrying context across Cascade conversations: - **Memories** are generated by **Cascade itself** when it meets context it believes is worth remembering. You can also ask for one directly by prompting "create a memory of ...". - **Rules** are written by **you**, at the global, workspace or system level, or inferred from `AGENTS.md` files. They look similar from inside a conversation, because both end up shaping what Cascade does, but they differ in who writes them, where they live and who can see them. ## Side by side | | Memories | Rules | | - | - | - | | Author | Cascade (or Cascade on request) | a person | | Storage | `~/.codeium/windsurf/memories/` on one machine | `.devin/rules/`, `.windsurf/rules/`, `AGENTS.md`, `global_rules.md`, system folders | | Scope | the workspace they were created in | global, workspace, directory or organisation | | Shared with the team | no, never committed | yes, when committed to the repository | | When applied | retrieved when Cascade judges them relevant | by activation mode: `always_on`, `model_decision`, `glob`, `manual` | | Cost | creating and using them consumes no credits | part of the prompt, depending on mode | A trap in that storage column: the personal **`global_rules.md`** also lives in `~/.codeium/windsurf/memories/`, but it is a **rule** you write, always on, limited to 6,000 characters, not an auto-generated memory. ## Why memories are a poor home for team conventions 1. **They are local.** A memory exists only on the machine that created it; the docs note that memories "live only on your machine". 2. **They are workspace-bound.** One generated in a workspace is not available in another, so even the same developer loses it in a second checkout. 3. **They are invisible to review.** Nothing is committed, so no pull request shows what Cascade decided to remember, and nobody else can correct it. 4. **Retrieval is the agent's call.** Cascade pulls a memory in when it believes it is relevant; a rule's activation mode is explicit. The docs' own recommendation follows: for knowledge you want reused reliably, write it as a rule or add it to `AGENTS.md`, and if Cascade remembered something useful, ask it to write that into a rule in `.devin/rules/` or into `AGENTS.md`. Memories still earn their place for one-off facts about your own work. Deciding what any agent should remember in general is a separate design question; this one is only about where Devin Desktop puts what Cascade remembers. ## Managing them Memories and rules are both reachable from the **Customizations** icon in the Cascade panel or from Devin Settings; an existing memory can be opened and edited there. Because a memory is just stored context, reviewing them occasionally is the only way to notice one that has gone stale. ## What happened to memories after 2026 Memories are a **Cascade-only** feature. The Devin Local agent, which new tabs default to, **does not persist memories between sessions**. The migration path is the **Devin: Open Cascade Migration Wizard** command, which moves memories (along with workflows and hooks) into **skills**, with per-item selection and previews, and which skips archived memories. The stable changelog for v3.9.19 (September 8, 2026) goes further and says Cascade has been removed, so memories that were never migrated or turned into rules are left on the developer's disk with no agent reading them. ## Mistakes to avoid - Treating a memory as documentation the team can see. - Confusing `global_rules.md` with a memory because of its folder. - Expecting Devin Local to pick up what Cascade remembered. ## A quick audit before relying on memories 1. Open the Customizations panel and read the memories Cascade has stored for the workspace. 2. For each one, ask whether a teammate would need it; if so, rewrite it as a rule in `.devin/rules/` or a line in `AGENTS.md` and commit it. 3. Delete or edit memories that are stale, since Cascade will keep retrieving them when it thinks they apply. 4. Before switching to Devin Local, run the migration wizard for whatever remains personal but still useful.

  • Cascade remembered a useful fact about how the team runs integration tests. How do you make it durable?
    Turn it into a rule. The docs suggest asking Cascade to write it into a rule in `.devin/rules/` (or the legacy `.windsurf/rules/`) or into the repository's `AGENTS.md`. Once committed, it is version-controlled, visible in review, shared with the team and given an explicit activation mode, none of which a local memory has.
  • A developer is moving to the Devin Local agent and relies on several Cascade memories. What should they do?
    Run **Devin: Open Cascade Migration Wizard** from the command palette. Devin Local does not persist memories between sessions, so the wizard moves the critical ones into skills, with per-item selection and previews; it skips archived memories. Anything that is really a team convention is better rewritten as a rule or `AGENTS.md` entry.

Cascade's memories are sticky notes on one developer's own monitor, while rules are the team handbook in the repository: a new teammate at another desk reads the handbook but never sees the sticky notes.

  • Cascade memories are committed to the repository so the team shares them.
  • A memory created in one workspace is available in every other workspace.
  • global_rules.md is just another memory that Cascade generated.
  • Creating and using Cascade memories consumes prompt credits.
  • The Devin Local agent reads the memories Cascade already wrote.