opencode-universal-memory
v0.7.0-beta.1
Published
OpenCode plugin for universal memory - Auto-capture, 100% private | OpenCode通用记忆插件 - 自动采集、100%私有
Maintainers
Readme
@slicenferqin/opencode-universal-memory
OpenCode plugin that records the last user/assistant exchange into Universal Memory daily logs.
What it does
- On
session.idle, fetches the session messages, extracts the last user + assistant pair - Writes a record using
universal-memory-record(with fallback tonpx ... universal-memory-mcp) - Adds
client=opencodeso multi-agent daily logs can be filtered
Install
npm install -g @slicenferqin/opencode-universal-memoryThe package includes a postinstall step that will try to enable itself in your OpenCode global config:
~/.config/opencode/opencode.json(preferred)- or
~/.config/opencode/opencode.jsonc
Controls
OPENCODE_CONFIG_PATH=/path/to/opencode.jsonchoose config file to editOPENCODE_PLUGIN_AUTOINSTALL=0disable config auto-edit
Storage location
Universal Memory storage path is controlled by:
MEMORY_PATH=/custom/path- or
AI_MEMORY_PATH=/custom/path
