Skip to Content
DocumentationBuild with AIMemory and agent files

Memory and agent files

AI Copilot keeps what it should remember across sessions as agent files: your preferences, the project’s decisions and conventions, where external references live, and standing instructions every session follows. Each new session reads the AGENTS.md files (standing instructions) and sees a list of every file with a one-line description, then opens individual files when it needs them.

Open the agent files panel

The entry is the Agent files icon in the AI Copilot panel header. When AI Copilot writes or renames a file during a turn, a link such as wrote /project/… appears under that turn’s tool summary; select it to open the file.

You can also manage your own files without opening a project, on the AI Copilot page of your account center. Its Files tab lists only files in the Me (/user) scope; project and client app files stay in the editor. Its Skills tab lists, adds and imports your own skills, and Edit in Agent files in a skill’s details switches back to Files with that file open.

Scopes

The left column of the panel is organized by scope:

ScopePathWho sees it
Me/userOnly you, and it applies in every project you work on
This project/projectEvery collaborator on the project
Client app folder/project/app/<app ID>Every collaborator, and applies only to sessions on that client app

Each scope is split into four sections by purpose, plus a Deleted list where you can view and restore deleted files:

SectionWhat it holdsHow the AI uses it
RulesThe AGENTS.md at the scope’s rootRead at the start of every conversation and always followed
MemoryFiles under memory/, one memory per fileSees each file’s one-line description in the file list and reads the rest when it is useful
Skillsskills/<skill name>/ folders, each led by its SKILL.mdUsed when a task fits, or invoked with / in chat
DocsEverything else, such as design guides and API docsRead when needed

Create and edit

Select + on a section’s title to open a blank file in the right column; nothing is saved until you select Create. Memories and skills need only a name and description (plus a type for memories), and their paths are derived: memory/<type>_<name>.md for a memory and skills/<name>/SKILL.md for a skill, whose name may use only lowercase letters, digits and hyphens. For docs you enter the path yourself, and any folders in it are created with the file. To add a file inside a skill or docs folder, such as a script or reference for a skill, hover the folder and select its +.

The name and description of memories and skills appear as a form at the top, so you never edit YAML by hand; other files are edited as plain text. The description is what the AI uses to decide when to read a file, so the panel warns when it is empty.

Memory has four types: user (about the person), feedback (corrections and confirmed approaches), project (decisions and conventions), and reference (where external things are). The memory list is grouped by type, with any missing or unrecognized type under Other.

Files and folders can be renamed, moved and deleted. When a memory’s type no longer matches its file name prefix, the panel offers a one-click rename.

History and restore

The right column lists every version with a line-by-line diff and a Restore button. Restoring writes a new version, so the content it replaces stays in history. A file’s history follows it across renames and moves. Deleted files can be restored from the Deleted list.

Permissions and limits

  • You can always edit files under /user. /project needs edit access to the project, and a client app folder needs edit access to that app. Without it, the panel is read-only.
  • A file can be at most 256 KB. A project holds at most 500 files and 10 MB in total, and each person’s /user at most 200 files and 10 MB.
  • The last 10 versions of each path are kept.

Editing alongside the AI and collaborators

The panel updates live: when the AI or a collaborator changes a file, the list and the open file refresh. If someone changes a file while you have unsaved edits to it, the panel tells you and offers View changes, Reload (discard yours), and Keep mine (save over theirs; their version stays in history).

A running AI Copilot session is told about your changes on its next turn and treats them as your decision, so it does not change them back on its own.

Unsaved edits are kept in this browser, so closing the panel or reloading the page does not lose them. When you reopen the file and nobody has changed it, the panel shows Restored your unsaved changes with a Discard changes button; if it has changed, it is handled as above.

Last updated on