Docs The agent
Memory and automations
Let the agent remember facts between sessions in plain Markdown files, and schedule saved prompts that run alone and tell you only when it matters.
Memory
Each session starts fresh, apart from its instruction files. Memory lets the agent keep small facts between sessions: how this project is tested, a decision you made, a preference of yours.
Where memories live
A memory is a small Markdown file with a name, a one-line description, a type and a body. There are two places:
| Scope | Folder | Meant for |
|---|---|---|
| Project | <workspace>/.quad/memory/ |
Facts about this codebase |
| Global | memory/ in the app’s data folder |
Facts about you, for every project |
Each folder has a generated MEMORY.md index that lists its memories. The agent’s system prompt carries the index, so the agent knows what it has remembered without searching. It reads a full memory when one looks relevant.
A memory’s type is one of user, feedback, project or reference.
How the agent uses memory
The agent has three tools:
memory_writesaves a memory. In Standard mode this asks first, like any change.memory_readreads one.memory_searchsearches them.
Ask in plain words:
Remember that the parser tests need the fixtures in tests/data to be regenerated with `cargo xtask fixtures` first.
The Memory window
Open Memory from the dock. It lists what Quad keeps for the current project in .quad/memory. You can:
- Read each memory and choose Use this memory to bring it into the conversation.
- Type into Tell Quad something to remember… to add one yourself.
- Forget a memory you no longer want.
Because memories are plain files in the project, you can also read, edit, commit or delete them in your editor. There is a limit of 300 memories per scope and 20,000 characters per memory.
To switch memory off entirely, turn off Memory in Settings → Features. The window then says Quad keeps nothing between sessions.
Automations
An automation is a saved prompt that runs on its own, on a schedule, in a project. It works through the task and tells you only when there is something worth reporting.
Note. Automations run while the app is open. A run that was missed while the app was closed is caught up once when it opens, never replayed as a burst.
Create one
- Open Settings → Automations and choose New automation.
- Fill in:
| Field | What to put |
|---|---|
| Name | For example Morning CI check |
| Repeat | Every so often, Once, at a time or Calendar rule |
| What to do on each run | The task, for example Check whether the nightly build passed and say what broke. |
| How often | For Every so often: 30m, 2h or 1d. At least 5m. |
| When (local time) | For Once, at a time: for example 2026-03-14 15:30 |
| Rule | For Calendar rule: an iCalendar rule, for example FREQ=WEEKLY;BYDAY=MO;BYHOUR=9 (every Monday at 9) |
| Access | Read-only (plan) or Can change files (unrestricted) |
- Optionally tick:
- Work in its own git worktree, so the project stays untouched.
- Keep the conversation even when there is nothing to report.
- Choose Save automation.
The agent can also create automations with its schedule tool when you ask, for example “Every weekday at 9, check for outdated dependencies and tell me if any have security fixes.” Creating one asks first in Standard mode.
Rules that keep them safe
- Nobody is there to answer, so an automation’s access must be read-only or unrestricted. Standard (ask) is refused.
- A rule that fires more often than every five minutes is refused.
- Only one run of an automation at a time. A run that is due while the previous one is still going is skipped.
- A run that fails the check made before it starts (anything that could not run safely unattended) is skipped and recorded.
How a run reports: the heartbeat
Each run starts from a short header that tells the agent which automation it is, when it was scheduled, and that nobody is watching so it must not ask questions. Then comes your saved task.
The agent must end its last message with exactly one of two blocks:
<NOTIFY>one sentence you should read now</NOTIFY>
<DONT_NOTIFY>one sentence on what it checked and found nothing worth reporting</DONT_NOTIFY>
- NOTIFY: you get a notification with that sentence, and the run’s session is kept.
- DONT_NOTIFY: nothing interrupts you. The session is removed, unless you ticked Keep the conversation even when there is nothing to report.
A run that ends without either block is treated as worth a look.
Managing automations
Each automation in Settings → Automations has:
- Run now: run it straight away, outside its schedule.
- Pause and Resume.
- A delete button.
Recent runs lists what happened, with one of these outcomes:
| Outcome | Meaning |
|---|---|
| Notified you | The run reported something |
| Nothing to report | The run found nothing worth saying |
| Unclear | The run ended without a NOTIFY or DONT_NOTIFY block |
| Failed | The run stopped with an error |
| Skipped | The run could not start |
The Background runs window also lists your automations and what is running now.
Worktrees
Settings → Automations also lists the git worktrees the app has made, and lets you create one by name. An automation set to work in its own worktree works in a fresh checkout of the project on a branch named quad/<name>, so your own checkout is untouched. When the run is over, a worktree with nothing changed and nothing committed is removed with its branch. One with work in it is kept so you can look.
If you switch Automations off in Settings → Features, automations stop waking up. Their schedules are kept, so nothing is lost when you switch it back on.