OpenCode Memory: Persistent Memory Across Sessions (2026)
Blog post from Supermemory
OpenCode Supermemory is an open-source plugin designed to give OpenCode persistent memory across sessions by automatically injecting relevant user, project, and prior-session context, selectively recalling memories, capturing completed conversations, recognizing custom “remember” prompts, and preserving knowledge during context compaction. Installed through Bun commands or by having OpenCode process its README, the plugin stores configuration in the user’s OpenCode settings and includes an initialization command that explores a codebase to record its architecture and conventions. Its central feature is repository-based shared memory: OpenCode, Claude Code, and Codex plugins can access the same memory container derived from a repository’s Git origin, while separating personal and shared project memories and preserving compatibility with legacy containers. Agents use a Supermemory tool to add, search, view, list, and delete categorized memories, with configurable retrieval thresholds, capture schedules, compaction behavior, and keyword triggers. The plugin supports privacy through redaction of content inside private tags and can run fully offline through a self-hosted, MIT-licensed Supermemory instance. Unlike the Supermemory MCP alone, which depends on an agent choosing to invoke memory tools, the plugin ensures automatic context injection, capture, and compaction integration.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| MCP | 5 | 2,241 | 148 | 72 | -74% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.