Developer Builds Lightweight Memory Plugin to Persist Lessons Across OpenCode Sessions
A developer grew frustrated with repeatedly explaining the same project-specific conventions and preferences to each new OpenCode AI coding session. To solve this, they created opencode-plugin-memory, a small plugin that gives the active OpenCode agent four tools to save, update, delete, and retrieve project-relevant lessons. Knowledge is stored as local Markdown files within the project and a compact index is automatically injected into future session prompts. Unlike AGENTS.md, which holds mandatory team-wide rules, this memory layer is designed for narrower, session-earned insights that are worth preserving but not formalizing. The plugin deliberately avoids cloud services, vector databases, or background pipelines, keeping all state visible and local to the repository.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in