A failed compaction wiped my AI session, so I built it infinite memory
Описание и применение
Сбой компаксации в OpenCode удалил всю историю диалога. Решением стало подключение opencode‑mempalace‑persistence, которое автоматически сохраняет каждую беседу в локальном векторном хранилище MemPalace, защищая память от потерь и обеспечивая доступ к ней в новых сессиях.
Задача
A compaction failure erased all conversation history in an OpenCode session, leaving the agent with no memory and effectively lobotomizing it.
Результат
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.
Рабочий процесс
- 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.
Доказательства
Result: total amnesia. Zero memories. The session was effectively lobotomized.
Every conversation is auto‑saved to a local vector palace — zero cloud — and injected back into future prompts, across compactions and across sessions.
- Дата записи: 2026-09-21T15:00:26.573Z