# Agent memory

Your agents keep Markdown notes about your projects between runs. See what each file holds, who can edit or delete notes, and the limits.

Your agents keep short notes about your projects in Markdown files, called memory. A run reads the notes before it starts and saves what it learned when it ends, so the next run does not start from zero. Everyone on your team can read and correct the notes on the **Memory** page. Only owners and admins can delete them.

## Open the Memory page

There are three ways in:

- Choose **Memory** in the dashboard sidebar. This opens your team's notes for every project, `workspace.md`. Under **Memory**, the sidebar lists **Workspace notes** and the notes for your current [project](/docs/projects/), by name.
- Open **Settings > Agents**. The section "Notes your agents keep between runs." lists **Workspace notes** and each website or project that has notes, with its number of files and the time of the last change. Choose an entry to open its notes.
- On a website run page, open **More about this run**. The **MEMORY** row says **No changes**, **1 file updated** or the number of files the run updated, and links to that website's notes.

The page updates by itself when a run saves new notes.

## The files your agents keep

### workspace.md

`workspace.md` holds your team's notes for every project. The agent reads it before a run that uses memory. Its page is headed "Notes every agent reads before a run."

Agents read `workspace.md` but never change it. If an agent edits it during a run, AgentProof saves the agent's version as `site/workspace-notes.md` in that run's notes folder.

### Files in each project's folder

Each website address has its own folder of notes. Each repository, mobile app or app file project also has its own folder. The Attack Agent and the Defense Agent share the folder when both work on the project. Its page is headed "Notes your agents keep about" and the website or project's name. The files appear once a run or a teammate writes them.

| File | What it holds |
|---|---|
| `site/overview.md` | What the website, code or app is, the software and versions seen, and its main pages, APIs or parts of the code. |
| `site/accounts.md` | Test accounts by name and role only. Never passwords, tokens or cookies. |
| `site/checked.md` | What was tested, when, by which run, and the result. |
| `site/notes.md` | Anything else worth keeping. |
| `site/workspace-notes.md` | Changes an agent tried to make to `workspace.md`. |

Agents add other `.md` files only when a topic outgrows these four.

### How a run uses the notes

When a run starts, the agent sees `workspace.md` and `site/overview.md` at once, plus a list of the other files. The agent is told to:

- read every note before it plans
- skip checks that `checked.md` shows were done recently with a clear result, unless the run asks for them or the website, code or app changed
- date facts that can change and name the run, for example `2026-11-09 (run_abc): /api/orders requires sign-in`
- rewrite and shorten files instead of adding to them forever, and remove notes that turn out to be wrong
- update the notes as it works and again before it finishes, so a run that is stopped early still leaves useful notes

## Edit a note

Any member can change a note.

### Open the file
Open the Memory page for the workspace or for a project. Each file has its own text box, headed with its name.

### Change the text
Type in the box.

### Press Save
The page says **Saved.**

If a teammate or a run changed the file after you opened it, the page says "Changed since you opened it. Reload." Reload the page, then make your change again.

Above each box you see the file's version number, the time of the last change and who made it: a teammate's email address, or `run` and the run's ID.

## Add a file to a project's notes

Any member can add a file to a project's folder. The workspace page has only `workspace.md`, so you cannot add files there.

1. Open the project's notes.
2. Under **Add a file**, type a **File name**, such as `notes.md`.
3. Type the note in the box below it.
4. Press **Add file**.

File names use lowercase letters, numbers, dots, dashes and underscores, start with a letter or number, end in `.md` and are at most 64 characters long. Otherwise the page says "Use lowercase letters, numbers, dots and dashes, ending in .md." If the name is taken, it says "A file with this name already exists."

## Delete a note or clear a project's notes

Only owners and admins see these buttons.

- **Delete one file.** Press **Delete** beside **Save**, then press **Confirm delete** and the file's name. The page says **Deleted.**
- **Clear a project's notes.** On the project's notes page, press **Clear site memory**, then **Confirm clear**. Every file for that project is deleted. The page says **Cleared.**

**Warning:**
Deleting also removes the file's earlier versions. You cannot undo it.

## Runs that read and write memory

These runs read the notes when they start and save their changes when they end:

- every Attack Agent and Defense Agent run on your website, whether you started it, planned it or AgentProof started it on its own, such as a repair run, a retest or a deploy test
- every run of a repository, mobile app or app file [project](/docs/projects/): its notes are kept for that project, and the Memory page lists them under the project's name

These runs never read or change your notes:

- code and app runs started through the API that belong to no project
- the [free website test](/docs/free-website-test/)

When AgentProof's server answers in a [run chat](/docs/run-chat/) for an agent that has no run going, it reads the most recently changed copies of `workspace.md`, `overview.md` and `checked.md`. It never reads `accounts.md`.

If the notes cannot be loaded when a run starts, the run starts without them. If they cannot be copied back when it ends, the run records "The agent's notes from this run could not be copied from its computer." and that run's changes are not saved.

## When two changes meet

A run saves the files it changed when it ends. If a teammate or another run changed the same file while the run was going, AgentProof keeps both versions:

- the newer file stays as it is
- the run's version is saved beside it as `<name>.conflict-<run>.md`, where `<run>` is the first 8 characters of the run's ID after `run_`, for example `checked.conflict-7f3a9c21.md`

The next run on that project is told to merge the copy into the main file. The copy stays on the Memory page until an owner or admin deletes it, and it counts toward the project's file limit.

## Versions AgentProof keeps

Each saved change raises the file's version number by one. AgentProof keeps the 20 earlier versions of each file. The Memory page shows only the current version and has no button to bring back an earlier one.

## Memory limits

### Size and file limits

| What | Limit |
|---|---|
| One file | 64 KB |
| Files for one project | 30 |
| All notes in the workspace | 1 MB |

When you save, a file over a limit is refused with one of these messages:

- "notes.md is larger than 64 KB." (with the file's name)
- "notes.md is not text." (with the file's name)
- "This site already has 30 memory files."
- "Workspace memory is full (1 MB)."
- "The note is too large." when the text you send is far over 64 KB

A change a run makes that would pass a limit is not saved. Shorten or delete notes to make room.

## What AgentProof removes from notes

Before it saves any note, from a run or from you, AgentProof replaces anything that looks like a secret with `[redacted]`. That covers private keys, API keys and tokens from common services (such as Stripe, GitHub, AWS, Google and Slack), JSON web tokens, bearer tokens, Basic sign-in headers, webhook signing secrets, live Defense Agent install keys, and values written after names such as `password`, `secret`, `token` or `api_key`.

Agents are also told never to store passwords, keys, tokens, cookies, one-time codes, your customers' personal data or copies of evidence. The run's report already keeps the evidence.

**Tip:**
To give the Attack Agent sign-in details for your website, use [test access](/docs/test-access/) in **Settings > Agents**, not a note. Test access only reaches Attack runs on your website.

## Memory is notes, not instructions

A note never changes what a run may test. A website project's runs test only its website on its verified domain, whatever a note says (see [website and domain](/docs/website-and-domain/)). Agents treat notes as leads to confirm. When a note does not match what they see, they trust what they see and fix the note. Text from a tested website, repository or app can end up in the notes, so read them as notes, not orders.

- [Runs and reports](/docs/runs-and-reports/) Read a run page and its report.
- [Run chat](/docs/run-chat/) Write to an agent while it runs.
- [Test access](/docs/test-access/) Give the Attack Agent test accounts.
- [Website and domain](/docs/website-and-domain/) Save your website and prove you own it.
