This document tracks migration from codemem naming to CodeMem package names.
- GitHub repo:
kunickiaj/codemem - npm plugin package:
@codemem/opencode-plugin - PyPI package:
codemem
- Keep
codememCLI command compatibility for two releases after the firstcodememrelease. - Keep git-based install commands as fallback during migration; move them to advanced docs.
- Keep old references in release notes with explicit replacement commands.
Old:
{
"plugin": ["@kunickiaj/codemem"]
}New:
{
"plugin": ["@codemem/opencode-plugin"]
}- Back up the legacy DB file:
cp ~/.opencode-mem.sqlite ~/.opencode-mem.sqlite.bak- Update OpenCode plugin config to
@codemem/opencode-plugin. - Update OpenCode MCP command to
codemem(if configured):
{
"mcp": {
"codemem": {
"type": "local",
"command": ["codemem", "mcp"],
"enabled": true
}
}
}- Migrate runtime config file (if present):
mkdir -p ~/.config/codemem
cp ~/.config/opencode-mem/config.json ~/.config/codemem/config.json- Restart OpenCode.
- Verify codemem health:
codemem stats
codemem db raw-events-status- Confirm migrated default DB exists:
ls ~/.codemem/mem.sqlite- Remove legacy tool only after successful verification:
uv tool uninstall opencode-memExpected DB behavior:
- First codemem run migrates
~/.opencode-mem.sqliteto~/.codemem/mem.sqlite. - Migration includes SQLite sidecars (
-wal,-shm). - If the new default DB already exists, legacy DB is left untouched.
- If migration is skipped because a new DB already exists, move/copy legacy DB manually.
- Prefer published package installs (
codemem) over git-baseduvx --from git+.... - If runtime is older than supported minimum, plugin warns and provides upgrade command.
- Keep
opencode-meminstalled until one successful codemem run is confirmed, then uninstall it. - Remove
runner_fromfrom~/.config/codemem/config.jsonfor normal installed behavior.
- Inside the codemem repo, use the workspace/local plugin test flow for validation.
- Outside the repo, OpenCode uses configured plugin package (
@codemem/opencode-plugin). - For realistic migration validation on a dev machine, run at least one session outside the repo.
- Viewer auto-start now occurs on plugin initialization and is idempotent.
Use this snippet in release notes for migration releases:
CodeMem rename update:
- Repo moved to github.com/kunickiaj/codemem
- Plugin package: @codemem/opencode-plugin
- Python package: codemem
- Existing codemem command remains supported during transition window
- Docs updated to show new names first
- Release notes include migration snippet
- Fallback paths documented and tested
- Transition window end date announced before alias removal
- Migration checklist includes backup, verification, and legacy uninstall order