Agent Memory

Agent Memory lets agents remember what happened in earlier sessions: the decisions you made, how you like to work, reusable procedures and a project wiki. It runs on your computer, keeps its data per folder, and works with every agent in chat.

What Agent Memory does#

Without memory, every new chat starts from zero. With Agent Memory, IZ Code records your conversations, distils them into short facts, and puts the relevant ones in front of your next prompt. Agents also get memory tools, so they can search what was said before, read a project wiki page, or follow a saved skill.

Memory is kept per workspace folder, in a SQLite database inside the folder's .izcode directory. Nothing is uploaded to build it. The only network calls are the ones your chosen Memory LLM makes (see below).

How memory is organised#

Memory is built in layers. Each layer is a shorter, more general summary of the one below it.

Turns are captured, distilled layer by layer, and recalled into later prompts
flowchart TD
  C([Your chat turns]) -->|record| L0[L0 Conversation]
  L0 -->|Memory LLM extracts| L1[L1 Atomic facts]
  L1 -->|grouped by topic| L2[L2 Scenes]
  L2 --> L3[L3 Persona]
  L3 --> L4[L4 Global persona]
  L0 -. many tool calls .-> SK[Skills]
  L1 -->|"recall, up to 5"| N([Your next prompt])
  L2 -->|"scene index at session start"| N
  L3 -->|"persona at session start"| N
LayerWhat it holdsHow it is made
L0 ConversationThe raw turns of each chat session, including tool calls.Recorded as you chat, for agents that have recording turned on.
L1 Atomic factsOne-line facts such as "uses pnpm, not npm" or "API errors return problem+json". New facts that repeat or contradict old ones are merged, not duplicated.Extracted from L0 by the Memory LLM in batches.
L2 ScenesFacts grouped by topic, so an agent can read one scene instead of hundreds of facts.Built from new L1 facts in the background.
L3 PersonaA short profile of how you work in this project.Written by the Memory LLM once enough scenes exist. You can edit it.
L4 Global personaThe parts of your persona that apply across projects.Kept alongside the per-project persona.

Two more stores sit next to the layers:

  • Skills. Reusable procedures, such as "how to add a migration in this repo". After a turn with many tool calls, the Memory LLM reviews the conversation and saves useful procedures as skills. Skills are versioned: you can view the history, restore an old version, archive a skill or export it as a .zip.
  • Wiki. Project knowledge pages built from documents you choose. Pages link to each other with [[links]], and the Graph tab shows those links.

What agents receive#

When a session starts, the agent receives the persona, a one-line index of scenes, a note about the wiki (only when it has pages) and a short guide to the memory tools. On every message, IZ Code searches memory for that message and puts the best matches (up to five) in front of it. Messages shorter than two characters skip this search.

Agents can also call memory tools themselves, for example memorySearch, conversationSearch, readScene, wikiSearch, wikiRead, skillSearch and skillView. Tools that create, change or delete skills go through the normal permission prompts. See Permissions.

Set it up#

  1. Check the master switch Agent Memory is on by default. Open Settings → Agent Memory and make sure Enable Agent Memory (master switch) is on.

  2. Choose a Memory LLM Facts, scenes, persona, skills and wiki pages are written by a model you choose. In Memory LLM Configuration, pick a Backend: LLM API (URL + key) with an API style, base URL, model and key, or Installed agent to reuse one of your agents with no separate key. An agent is slower, because every memory call becomes an agent turn.

  3. Turn on extraction Turn on Memory extraction (Memory LLM). It can only be turned on once the Memory LLM configuration is complete.

  4. Let your agents record and recall Recording is opt-in per agent. In Settings → Agents, under each installed agent, set Memory: record conversations and Memory: recall into prompts to On. Extension default keeps what the agent's extension chooses, which for most agents is off.

  5. Chat as usual Facts and scenes appear in the background. Open the Agent Memory panel from the title bar or activity bar to see them.

The Agent Memory panel#

The panel has four tabs for the folder you choose at the top.

TabWhat you can do
WikiBrowse and search pages, see the Graph, add sources, delete pages.
Chat MemoryBrowse sessions (L0), facts (L1), scenes (L2) and edit the persona (L3). Run Extract from L0 for messages that are not processed yet, or Re-extract all…. Delete a message, a session, a fact or a scene.
SkillsSearch, create, edit, archive and export skills. History shows past versions with Restore.
ContextType a message and press Preview to see exactly what would be added to the prompt: static context, per-turn recall and the final prompt. Nothing is sent or saved.

Build the project wiki#

You can feed the wiki in three ways:

  • In the Wiki tab, choose Add source, give it a name, paste text and choose Ingest.
  • In the Sources tab, choose Add file or Add folder.
  • In the Explorer, right-click a file or folder and choose Wiki: Ingest this file or Wiki: Ingest this folder.

File and folder sources can be Watched: when a file changes, IZ Code ingests it again. Only changed files are processed. Re-ingest now forces a full pass. Removing a source keeps the pages it already produced.

Settings#

All settings below are per workspace folder unless noted. The master switch can also be set in your user settings.

SettingValuesDefault
izcode.ame.enabledtrue, falsetrue
izcode.ame.nativeMemory.enabledtrue, false (Memory extraction)Off until set
izcode.ame.memoryLlm.backendAPI or agentAPI
izcode.ame.nativeMemory.agentsPer agent: capture, injectionExtension default
izcode.ame.semanticSearch.enabledtrue, falsefalse
izcode.ame.semanticSearch.providerlocal, remote-apilocal
izcode.ame.skillExtractionEnabledtrue, falsetrue
izcode.ame.skillToolCallThresholdTool calls per archive10
izcode.ame.skillArchiveBytesArchive size in bytes40960
izcode.ame.nativeMemory.l0l1RetentionDaysDays, 0 = keep forever0
izcode.ame.skillVersionTtlSecondsSeconds, 0 = keep forever0
izcode.ame.skillMaxVersionsOld versions per skill, 0 = no limit0

Enable semantic search adds vector search on top of keyword search for facts. The built-in embedding model runs locally with no network; a remote OpenAI-compatible API is also supported. Changing the provider or model re-embeds every stored fact in the background.

External memory providers#

You can also connect a memory service as an extension. OpenViking Memory runs a local OpenViking server and gives chat agents its memory tools. Install it from the Extensions view and turn on openVikingMemory.enabled. On first activation it downloads its own Python runtime, so you do not need to install Python. Its embedding and model settings are under openVikingMemory.*.

Turn it off#

Turn off Enable Agent Memory (master switch), or set izcode.ame.enabled to false. The Agent Memory panel and the memory tools disappear, nothing is recorded or recalled, and no memory database is opened. Turn it back on to pick up where you left off.

Share with your team#

In a team project, the Share to team button on a wiki page or skill proposes it to the project; a maintainer reviews it first. See Team memory.

Last updated: December 1, 2026Was this page helpful?