Memory in Code
Keep Code tasks on your computer, and link a Chat project when you want Code to use its memory.
What a Code task can use
Code tasks aren’t copied to Chat memory. What a task can use depends on the task, the runtime, and what you connect to it.
| Type | Where it’s stored | How to use it |
|---|---|---|
| Task history | On this computer | Reopen the task and continue |
| Runtime session | With the provider you chose | Resumes when the runtime supports it. Switching providers doesn’t carry the old session over |
| Project instructions | In the repository, plus files you attached | Read according to the task’s permission |
| Linked Chat memory | In a Chat project you choose | Available only while you’re signed in, and only within that project |
Link a Chat project
When linked memory is available, Code lists the Chat projects in your account. Choose one and ask Code to link it. In a task with a repository, the link applies to the project. In a task without one, the link applies to the task. To remove the link, ask Code to remove it.
For example: “Link this Code project to my Transit analysis project, then find the reporting format we agreed on.” Later questions use that link and don’t switch to another project.
A delegated Agent uses the same link and can’t widen it. The Agent’s own memory setting can only narrow it. If linked memory isn’t available, paste the context into the task.
Local profile and memory
Settings → Personalization has a local profile and a separate local memory list. Use profile in Chats adds the profile to qualifying chats. Local memory is off until you turn it on. Then up to 20 active entries can be added to qualifying general chats. Local memory doesn’t need a key or a search index.
Use Add, edit, Disable, Enable, and Delete to manage entries. Disable keeps an entry for later. Delete removes it. Good entries are stable preferences, such as a date format. Local memory stays on this computer. It doesn’t turn on Chat History Memory, and it isn’t added to every repository.
Your account memory is a separate list. See Memory. Something you mention in a Code task isn’t added to that list unless it’s saved there.
What linking doesn’t do
Linked memory returns facts or short excerpts for the current task. It doesn’t upload the Code transcript, sync the repository, change Git, or copy a vendor login to Chat. On iPhone, Remote uses what your paired computer already has. Code isn’t available on the web.