github mem0ai/mem0 opencode-v0.1.2
Mem0 OpenCode Plugin (v0.1.2)

6 hours ago

Mem0 OpenCode Plugin (v0.1.2)

Automatic Coding Categories

Categories are now configured automatically in the background when the plugin starts — no manual setup needed.

  • 17 development-focused categories installed on the Mem0 project at startup (architecture_decisions, api_design, security, debugging_notes, etc.)
  • Fully idempotent: SHA-256 fingerprints of the category list and API key gate re-application (~/.mem0/categories_setup.json)
  • Never blocks session initialization — runs as a background promise
  • /mem0:onboard Step 5 now verifies categories exist rather than prompting the user to install them (#5300)

Global Search Mode

New global_search toggle for cross-user, cross-project memory access.

  • Set global_search: true in ~/.mem0/settings.json to search all memories across all users and projects
  • Searches use {"OR": [{"user_id": "*"}]} filters; writes still scope to the current user_id and app_id
  • Applies to all plugin search paths: initial load, per-message recall, resume detection, error-pattern lookup, and compaction context
  • MEM0_GLOBAL_SEARCH env var exported to child shells via the shell.env hook (#5300)

/mem0:switch-project Expanded

  • Added --global flag to enable global search (/mem0:switch-project --global)
  • Added --no-global flag to disable it and return to per-project scoping
  • Persists to ~/.mem0/settings.json — no manual config editing needed (#5300)

Search Filter Changes

  • All search paths now dynamically construct filters based on the global_search setting
  • Resume and error-pattern searches no longer include metadata.type sub-filters (session_state, decision, anti_pattern, bug_fix), broadening recall
  • System context message updated to inform the model when global search is active (#5300)

Don't miss a new mem0 release

NewReleases is sending notifications on new releases.