Giving an OpenCode Coding Agent Persistent, Editable Memory

Developer @ghilteras has introduced an experimental plugin for the OpenCode editor designed to provide AI coding agents with persistent, editable memory. Unlike opaque remote services, this plugin treats memory as structured Markdown files stored locally, allowing agents to maintain project-specific context and global preferences across sessions. The system utilizes 'memory blocks' with YAML frontmatter to define scope, size limits, and usage descriptions. Additionally, the plugin features an optional, append-only journal for tracking decisions and discoveries, supported by local semantic search powered by Transformers.js. By keeping state on disk, developers can manually inspect and edit the agent's knowledge, addressing common issues where AI models struggle to retain context after restarts or context compaction. The project is open-source and available on GitHub, offering a transparent approach to improving long-term agent reliability in software development workflows.
This is a summary. Read the full article at the original source:
Dev.toRelated stories
In his recent blog post, Colin Breck addresses the growing trend of using Large Language Models (LLMs) to generate technical content. Breck argues tha…
The creator of the 'Giga Pisar' application, built on Sber's GigaAM speech recognition technology, has summarized the first week following their debut…
This Habr article explores the computer as a fundamental mathematical structure, inviting readers to view computational processes through the lens of…


