Skip to content

docs: fix OpenCode plugin paths to MiMoCode in plugins.mdx#1246

Open
0xSkybreaker wants to merge 1 commit into
XiaomiMiMo:mainfrom
0xSkybreaker:docs/issue-1151-fix-opencode-plugin-paths-to-mimocode
Open

docs: fix OpenCode plugin paths to MiMoCode in plugins.mdx#1246
0xSkybreaker wants to merge 1 commit into
XiaomiMiMo:mainfrom
0xSkybreaker:docs/issue-1151-fix-opencode-plugin-paths-to-mimocode

Conversation

@0xSkybreaker

Copy link
Copy Markdown

Problem

The plugin docs (packages/web/src/content/docs/plugins.mdx) still reference .opencode/plugins/ directories. MiMoCode's plugin loader only scans .mimocode/ directories — users who follow the docs create plugins in directories that are silently ignored.

Verified against current main:

  • packages/opencode/src/config/plugin.ts:33 — scans Glob.scan("{plugin,plugins}/*.{ts,js}", { cwd: dir }) on dirs from paths.ts
  • packages/opencode/src/config/paths.ts:25directories() looks for .mimocode (not .opencode)
  • packages/shared/src/global.ts:6const APP = "mimocode"
  • The repo's own sample plugins live in .mimocode/plugins/

Changes

All references to directory paths, config files, and "OpenCode"/"opencode" prose updated to MiMoCode equivalents:

  • .opencode/plugins/.mimocode/plugins/
  • ~/.config/opencode/~/.config/mimocode/
  • All .opencode/ code block titles → .mimocode/
  • "OpenCode"/"opencode" prose → "MiMo Code"

Schema URLs (opencode.ai/config.json) and npm package names left unchanged — those are real external references.

Closes: #1151

The plugin docs still referenced `.opencode/plugins/` directories and
other OpenCode paths/config files. MiMoCode's plugin loader only scans
`.mimocode/` directories (see Global.APP = "mimocode" in global.ts and
Glob.scan in plugin.ts). Users following the old docs created plugins
in directories that were silently ignored.

- Replace all `.opencode/plugins/` → `.mimocode/plugins/`
- Replace `~/.config/opencode/` → `~/.config/mimocode/`
- Replace all `.opencode/` config file paths (package.json, etc.)
- Update "OpenCode"/"opencode" prose references to "MiMo Code"
- Update osascript notification title example

Closes: XiaomiMiMo#1151
@0xSkybreaker 0xSkybreaker force-pushed the docs/issue-1151-fix-opencode-plugin-paths-to-mimocode branch from 888fccb to dceb682 Compare June 23, 2026 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: plugins.mdx documents .opencode/plugins/ directories that MiMoCode never scans (loader only reads .mimocode)

1 participant