| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
OpenCode plugin that automatically syncs .opencode/memory/ from your main repository into git worktrees.
When you create a git worktree via OpenCode's /worktree command, the new worktree gets a fresh .opencode/memory/ directory with only empty frontmatter scaffolds. All your project memory (conventions, architecture notes, preferences) is lost.
This plugin runs on every session initialization. When it detects the current directory is a git worktree, it locates the main repository and copies the memory files over — but only if the destination memory is empty (so it never overwrites your changes).
Add to your opencode.json:
{
"plugin": ["opencode-worktree-memory-sync"]
}Restart OpenCode. That's it.
Non-worktree directories are silently ignored. Worktrees with existing memory content are skipped.
MIT
| Back | FazBrowse Home | New Git URL |