Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

A failed compaction wiped my AI session, so I built it infinite memory

Description and use

A compaction failure in OpenCode erased all conversation history. The solution was to add opencode‑mempalace‑persistence, which automatically saves every chat to a local MemPalace vector store, protecting memory from loss and making it available in future sessions.

Problem

A compaction failure erased all conversation history in an OpenCode session, leaving the agent with no memory and effectively lobotomizing it.

Outcome

The new persistence layer prevents total memory loss from compaction failures, ensuring that all past conversations are recoverable and available for future prompts, even across different sessions and projects.

Workflow

  • 1. Install MemPalace with uv tool and initialize a memory directory.
  • 2. Configure OpenCode to use the opencode‑mempalace‑persistence plugin and enable the local MCP server in opencode.json.
  • 3. Provide a two‑line identity file in ~/.mempalace/identity.txt and restart OpenCode.
  • 4. The plugin automatically saves every 15 messages, on idle, on exit, and before each compaction, preserving memories across sessions.

Evidence

Result: total amnesia. Zero memories. The session was effectively lobotomized.

Source

Every conversation is auto‑saved to a local vector palace — zero cloud — and injected back into future prompts, across compactions and across sessions.

Source

  • Record date: 2026-09-21T15:00:26.573Z