[Bug]: Installer disables `explorer` through the `explore` alias

Author: MrJmpl3Created Oct 1, 2026Updated Oct 1, 2026
Labelsbug

What happened, and what did you expect?

What happened: after running the install, explorer is missing from the task tool. opencode.json contains agent.explore.disable: true plus agent.general.disable: true.

Expected: built-in explore disabled, plugin explorer still available. Only general has no alias collision.

Steps to reproduce

  1. Run the plugin install.
  2. Open opencode.json, confirm this block:
json
{
  "agent": {
    "explore": { "disable": true },
    "general": { "disable": true }
  }
}
  1. Start opencode and list subagents. explorer is gone.
  2. Remove only the explore entry, keep general, restart. explorer comes back. Reinstall adds the block again.

Cache cleared and restarted before filing. The behavior persists.

oh-my-opencode.json

jsonc
{
  "$schema": "https://unpkg.com/[email protected]/oh-my-opencode-slim.schema.json",
  "preset": "mrjmpl3",
  "presets": {
    "mrjmpl3": {
      "orchestrator": { "model": [{ "id": "opencode-go/muse-spark-1.3-contributor", "variant": "xhigh" }] },
      "oracle": { "model": [{ "id": "opencode-go/muse-spark-1.3-contributor", "variant": "xhigh" }] },
      "librarian": { "model": [{ "id": "opencode-go/muse-spark-1.3-contributor", "variant": "xhigh" }] },
      "explorer": { "model": [{ "id": "opencode-go/muse-spark-1.3-contributor", "variant": "xhigh" }] },
      "designer": { "model": [{ "id": "opencode-go/muse-spark-1.3-contributor", "variant": "xhigh" }] },
      "fixer": { "model": [{ "id": "opencode-go/muse-spark-1.3-contributor", "variant": "xhigh" }] },
      "council": { "model": [{ "id": "opencode-go/muse-spark-1.3-contributor", "variant": "xhigh" }] }
    }
  }
}

OpenCode version

1.18.34

oh-my-opencode-slim version

3.0.1

Operating system

Ubuntu 26.04.1 LTS under WSL2, kernel 6.18.33.2-microsoft-standard-WSL2

Logs, screenshots, or extra context

Root cause found in the installed bundle.

dist/cli/index.js:

DEFAULT_OPENCODE_AGENTS_TO_DISABLE = ["explore", "general"]

disableDefaultAgents() writes disable: true for both names. That runs in the install step called "Disabling OpenCode default agents...".

dist/index.js:

AGENT_ALIASES = {
  explore: "explorer",
  "frontend-ui-ux-engineer": "designer"
}

Registry build:

const legacyAlias = Object.keys(AGENT_ALIASES).find((key) => AGENT_ALIASES[key] === name);
const hostEntry = hostEntries[name] ?? hostEntries[displayName] ?? (legacyAlias ? hostEntries[legacyAlias] : undefined);
if (hostEntry) Object.assign(entry, clone(hostEntry));

For name = "explorer", legacyAlias = "explore", so hostEntries["explore"] = { disable: true } lands on the explorer entry.

Suggested fix: stop writing agent.explore.disable from the installer, or ignore disable when the host entry comes from an alias. general has no alias and is safe to keep.

Source: alvinunreal/oh-my-opencode-slim