mirror of
https://github.com/sdwolf4103/opencode-working-memory.git
synced 2026-07-17 12:56:42 +02:00
5c7dd0f421
- Updated package.json repository URLs - Updated README.md installation and support links - Updated docs/installation.md clone URL - Updated AGENTS.md clone URL
2.7 KiB
2.7 KiB
Installation Guide
Prerequisites
- OpenCode 1.0.0 or higher
- Node.js 18+ (for development only)
Quick Install (For Users)
Option 1: Install from npm (Recommended)
npm install opencode-working-memory
Then add to your .opencode/package.json:
{
"plugins": [
"opencode-working-memory"
]
}
Option 2: Install from GitHub
Add to your .opencode/package.json:
{
"dependencies": {
"opencode-working-memory": "github:sdwolf4103/opencode-working-memory"
},
"plugins": [
"opencode-working-memory"
]
}
Then run:
cd .opencode
npm install
Option 3: Local Development Install
Clone the repository:
git clone https://github.com/sdwolf4103/opencode-working-memory.git
cd opencode-working-memory
npm install
Link to your OpenCode project:
cd /path/to/your/project/.opencode
npm link /path/to/opencode-working-memory
Add to .opencode/package.json:
{
"plugins": [
"opencode-working-memory"
]
}
Verification
After installation, start an OpenCode session and run:
core_memory_update goal "Test installation"
You should see a success message. Check .opencode/memory-core/ for the session file.
Configuration
The plugin works out-of-the-box with sensible defaults. For advanced configuration, see configuration.md.
Troubleshooting
Plugin Not Loading
Symptom: No core_memory_update tool available
Solution:
- Check
.opencode/package.jsonincludes plugin in"plugins": []array - Verify
npm installcompleted successfully - Restart OpenCode session
Memory Files Not Created
Symptom: No .opencode/memory-core/ or .opencode/memory-working/ directories
Solution:
- Ensure OpenCode has write permissions in project directory
- Check plugin hooks are registered (look for "Working Memory Plugin" in session logs)
- Trigger memory operations (e.g., use
core_memory_updatetool)
Type Errors During Development
Symptom: TypeScript errors when modifying plugin
Solution:
- Ensure
@opencode-ai/pluginis installed:npm install @opencode-ai/plugin - Run type checking:
npx tsc --noEmit - See AGENTS.md for code style guidelines
Uninstallation
cd .opencode
npm uninstall opencode-working-memory
Remove from .opencode/package.json plugins array. 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