Agent memory
This plugin shows what each agent CLI knows before a session starts. It lists the instruction files and the memory files in one view. You can read, change, and remove each file.
Which files the view shows
| Group | Files |
|---|---|
| Vault instructions | CLAUDE.md and AGENTS.md in the root folder of the vault |
| Claude Code, this vault | The memory files that Claude Code wrote for this vault: ~/.claude/projects/<vault>/memory/*.md |
| Claude Code, each project | ~/.claude/CLAUDE.md |
| Codex, each project | ~/.codex/AGENTS.md and ~/.codex/memories/*.md |
A group without a file does not show.
How to use it
- Select the brain icon in the icon bar.
- Select a file in the list. The file opens in the file panel at the right, as rendered text.
- Select Edit in the file panel, change the text, and select Save.
- Select the trash button of a row to remove one file. The app asks one more time.
- Select Remove … memory files in the header of a group to remove each memory file of that group. An instruction
file such as
CLAUDE.mdorAGENTS.mdstays.
Where a removed file goes
A removed file is not deleted. The plugin moves it into the folder ~/.opfold/trash/memory. The file name gets the
time of the removal in front. To restore a file, move it back by hand.
Limits
- The plugin reads and writes only the files of the list. It refuses each other path.
- The plugin does not create a new memory file. The agent CLI creates them.
- An agent reads its memory at the start of a session. A change does not reach a running session.