anomalyco / anomalyco/opencode

opencode debug info should show basename for file:// plugin specs

Open
#40,300 2 comments 0 reactions 1 assignee View on GitHub

@rekram1-node is already working on this.

Since Aug 3, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

The plugins: section of opencode debug info is inconsistent. npm plugins show as their package name, but local auto-discovered plugins show as full file:/// URLs, which is noisy and hard to scan.

With two plugins in ~/.config/opencode/plugins/, I get:

plugins:
- oh-my-openagent@latest
- envsitter-guard
- file:///C:/Users/Zephyrus/.config/opencode/plugins/rtk.ts
- file:///C:/Users/Zephyrus/.config/opencode/plugins/open-code-review.ts

I'd expect the local ones to render as rtk.ts and open-code-review.ts so the section is consistent.

Plugins

rtk.ts, open-code-review.ts (local auto-discovered)

OpenCode version

1.18.11

Steps to reproduce
  1. Drop a .ts file into ~/.config/opencode/plugins/ (or ~/.config/opencode/plugin/).
  2. Run opencode debug info.
  3. Observe that the local plugin is printed as a file:// URL while npm plugins are printed by package name.
Operating System

Windows 11

Terminal

PowerShell

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.