Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
MemPalace lifetime memory integration for OpenCode AI terminal assistant
Jump to setup instructionsFetched from the repository for this visit.
A community open-source plugin that integrates MemPalace's "lifetime memory" (L0-L3 memory stack, AAAK compression, auto context saving) into the OpenCode terminal assistant.
This plugin ensures your AI assistant has a long-term memory across sessions by seamlessly hooking into OpenCode's lifecycle events to fetch, inject, and save contexts related to your specific workspace.
Ctrl+C), the plugin intercepts the exit signal and performs a synchronous emergency save.pip install mempalace or python3 -m pip install mempalace)Install the official MemPalace CLI on your system:
python3 -m pip install mempalace
Add this plugin to your OpenCode configuration. Open ~/.config/opencode/opencode.json (or your project's local opencode.json) and add the package name to the plugins array:
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-plugin-mempalace"]
}
You can pass configuration options to the plugin to customize its behavior. Currently supported options:
threshold (default: 15): The number of chat messages required before the plugin triggers a background auto-save (mining) of your conversation.{
"plugin": [["opencode-plugin-mempalace", { "threshold": 20 }]]
}
mempalace CLI via the execa package.experimental.chat.system.transform: Injects memory.experimental.session.compacting: Rescues memory from truncation.chat.message: Tracks conversation length and triggers background mining.event: Listens for session.idle and session.deleted for soft-exit saving.process.on('exit' | 'SIGINT' | 'SIGTERM'): Intercepts hard process exits for emergency synchronous saving./projects/my-app -> wing_my-app). Your memory stays isolated per project!This project is built with TypeScript (ESM) and relies on a strict TDD approach.
npm install
npm run lint
npm run test
npm run build
MIT
GitHub checked 159h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.