mirror of
https://github.com/sdwolf4103/opencode-working-memory.git
synced 2026-07-17 12:56:42 +02:00
1.9 KiB
1.9 KiB
Installation Guide
Quick Install
Add to your ~/.config/opencode/opencode.json:
{
"plugin": ["opencode-working-memory"]
}
Restart OpenCode. The plugin is downloaded and installed automatically — no npm install needed.
Note
: The correct key is
plugin(singular), notplugins.
For LLM Agents
- Edit
~/.config/opencode/opencode.json - Add
"opencode-working-memory"to thepluginarray - Verify the config file was saved correctly
Verification
After restarting OpenCode, ask your agent:
Use core_memory_read to show me what you remember
If the tool responds, the plugin is active.
Troubleshooting
Plugin Not Loading
Symptom: No core_memory_update tool available
Solution:
- Check
~/.config/opencode/opencode.jsonuses"plugin"(not"plugins") - Restart OpenCode to trigger automatic installation
- Check OpenCode logs for any download errors
Memory Files Not Created
Symptom: No .opencode/memory-core/ or .opencode/memory-working/ directories
Solution:
- Ensure OpenCode has write permissions in project directory
- Trigger memory operations (e.g., use
core_memory_updatetool)
Type Errors During Development
Symptom: TypeScript errors when modifying the plugin source
Solution:
- Run
npm installto install dev dependencies - Run
npm run typecheckto check for errors - See AGENTS.md for code style guidelines
Uninstallation
Remove "opencode-working-memory" from the plugin array in ~/.config/opencode/opencode.json.
Memory files in .opencode/memory-* will persist unless manually deleted.
Next Steps
- Read Architecture Documentation to understand how memory tiers work
- See Configuration Guide for customization options
- Check AGENTS.md for development guidelines