OpenCode CLI
MUR syncs patterns to OpenCode CLI via the instructions file.
How It Works
OpenCode reads instructions from ~/.opencode/instructions.md. MUR syncs patterns there:
~/.opencode/
āāā instructions.md # Patterns merged into instructions
Setup
# Install OpenCode (if not installed)
brew install opencode-ai/tap/opencode
# Initialize mur (if not done)
mur init
# Sync patterns to OpenCode
mur sync
Verify Integration
cat ~/.opencode/instructions.md
# Should show your patterns
mur stats
# Should show "OpenCode" as a sync target
Usage
Once synced, OpenCode will:
- Include patterns in its system context
- Apply learned conventions to generated code
- Follow best practices from your patterns
Manual Re-sync
mur sync
Auto-sync
mur sync auto enable
Troubleshooting
Patterns not appearing
- Check sync succeeded:
mur sync - Verify file exists:
cat ~/.opencode/instructions.md - Run
opencodeagain