Choose what to remember
Use memory for instructions that should hold across tasks in the same project: the test command, a compatibility constraint, or a review convention. Keep a one-off bug report or temporary investigation in its session instead. Enabling memory does not extract preferences from previous conversations; you write and approve the text yourself.
Only save instructions that apply to this project. Do not put API keys or passwords in a preference; enabled preferences are sent with model requests.
Save a project preference
With a verified account signed in, open Settings → Projects, select the folder, and turn on Memory in this project. Enter a preference, review it, and choose Approve and save. Each account and folder has its own preferences; separate worktrees also have separate memory. For a project with tests, a useful preference names the verification you expect:When fixing a bug, add a regression test that reproduces it. Run the relevant tests after the fix and report the command and result.Keep preferences specific to the project. A saved testing convention can guide future sessions, but you should still inspect the actual test output before accepting a change. To reuse the preference in a separate worktree, configure memory for that folder too.
An approved project preference asks for a regression test and the actual test result after each bug fix.
Set the default and project override
In Settings → Projects, select a listed folder or choose Add folder…. This settings selection can differ from the project currently open in Code, so check the folder before saving anything. Under All projects, Memory by default controls the initial setting for this account’s local projects. Each project’s Memory in this project has three choices:
The default shares an enablement setting, not preference text. A new project has its own empty list. Separate worktree directories also have separate lists.