Skip to main content

Memory

Beyond a conversation, the agent keeps a small, readable memory about you and your work. Unlike a session's history, memory persists between sessions.

Imaginne has two memories, with different scopes:

Project memoryAccount memory
WhereDesktop, TUI, VS CodeWeb chat
ScopeOne project (workspace)You, across every web chat conversation
FormatFour Markdown files on your diskShort cards, stored on the server
Who editsYou and the agentYou (the agent suggests; you approve)

The rest of this page describes project memory. For account memory, see Account memory.

Four notes, per project​

Four Markdown files (profile, project, glossary, decisions) are read at the start of the session and enter the context.
Memory is four Markdown files in .imaginne/memory/, read at the start of each session.

Memory lives in <project>/.imaginne/memory/ as four Markdown files:

NoteWhat it's for
User profileWho you are, your role, your work preferences.
Project memoryThe project's goals, context, and current state.
GlossaryTerms and acronyms from your domain.
DecisionsWhat was agreed and why — a decision log.

They are per workspace (per project), not global. They are ordinary files: you can read and edit them.

How the agent uses memory​

  • At the start of the session, the four notes enter the model's context, in a stable order (profile → project → glossary → decisions).
  • During the conversation, the agent can update the memory when it notices a preference, a correction, or a decision. Changes are written to disk immediately.
Changes take effect in the next session

The system prompt is assembled from a snapshot taken at the start of the session. Because of that, a memory update made mid-conversation only starts to influence the agent in the next session. This keeps behavior stable and predictable within the same conversation.

Protections​

Memory is handled with care because it feeds the system prompt:

  • Atomic writes and a file lock prevent corruption when there are concurrent edits.
  • External-change detection: if a file was modified outside Imaginne, it makes a backup and flags it, instead of blindly overwriting.
  • Injection check: every write goes through a check that blocks prompt-injection attempts and invisible/bidirectional characters before they reach the system prompt.

Editing memory​

  • Desktop — open Project Memory in the side navigation. The notes open in read mode; edit and save.
  • Terminal (TUI) — use /memory (/memory <user|project|glossary|decisions|review|list>) to view or review.
  • Web chat — the Memory item in the sidebar manages the account memory (cards, suggestions, and limits). See Account memory.

On the local surfaces you can also edit the .md files directly — they're yours.

Memory ≠ session​

SessionMemory
ScopeOne conversationThe project, across conversations
ContentMessages and actionsProfile, project, glossary, decisions
Affected by clearing context?Yes (forgets the history)No

See also​