opencode icon indicating copy to clipboard operation
opencode copied to clipboard

ACP v2 no longer exposes skills in available_commands_update (regression from v1)

Open kcdipesh opened this issue 1 month ago • 1 comments

Description

Description

OpenCode v1 exposed skills to ACP clients through available_commands_update, so clients like Zed showed every skill in the / menu. OpenCode v2 no longer does this: only regular commands are advertised, so skills disappear from the / menu.

With the same skill set (~116 skills in ~/.agents/skills):

  • OpenCode v1.19.5 ACP: available_commands_update returns 195 entries, including skills such as aws-observability.
  • OpenCode v2.2.2 ACP: available_commands_update returns 11 entries, commands only. No skills.

Reproduction

  1. Add a skill under ~/.agents/skills/<name>/SKILL.md.
  2. Start opencode acp.
  3. Send initialize, then session/new.
  4. Inspect the session/update notification with sessionUpdate: "available_commands_update".

Or reproduce in Zed 1.26.2:

  1. Configure OpenCode 2.2.x as an ACP agent.
  2. Open a new thread and type /.
  3. Only commands appear; no skills.
  4. The same setup with OpenCode 1.19.5 shows all skills.

Expected

Skills should appear as /skill-name entries in ACP available_commands_update, matching v1 behavior — or there should be a documented/configurable ACP replacement.

Actual

Only regular commands are advertised. Skills are missing.

Code pointers

  • v1: packages/opencode/src/acp/service.ts merges sdk.app.skills() into the command list before sending available_commands_update.
  • v2: packages/cli/src/acp/catalog.ts only calls client.command.list; there is no skill.list in the ACP catalog.
  • packages/schema/src/skill.ts in v2.2.2 still has no slash field.

Related

  • #51427 — slash frontmatter ignored in v2 TUI/API (closed by bot, not fixed)
  • #50638 — Desktop slash list does not show skills
  • #35341 — auto-register / commands from compatible skills

Environment

  • OpenCode: 2.2.2 (Zed ACP registry), also reproduced with local CLI 2.2.0
  • Client: Zed 1.26.2
  • OS: macOS arm64
  • Workaround: OpenCode v1.19.5 as a custom ACP agent restores the skills

Plugins

No response

OpenCode version

2.2.2

Steps to reproduce

Add a skill under ~/.agents/skills//SKILL.md. Start opencode acp. Send initialize, then session/new. Inspect the session/update notification with sessionUpdate: "available_commands_update".

Screenshot

No response

Operating System

macOS arm64

Terminal

No response

kcdipesh avatar Oct 30 '26 03:10 kcdipesh

Thanks for the detailed report and the code pointers!

In OpenCode v2, skills are deliberately no longer / commands. The slash frontmatter field was removed, and you load a skill yourself by mentioning it as @skill-id in the prompt (see #52752). So the ACP catalog only advertises regular commands, which is why Zed's / menu shows no skills. v1 did add skills to available_commands_update, but v2 changed that on purpose rather than by accident.

I've marked this as a feature request to advertise skills to ACP clients again, for example as /skill-name entries in available_commands_update or as another documented way for clients to find them. Maintainers will consider it.

Until then, you can type @skill-name in the prompt to load a skill if your ACP client passes the text through. You can also add a small command file per skill that you use often, e.g. ~/.config/opencode/commands/<name>.md:

---
description: Run the <name> skill
---

Load the `<name>` skill with the skill tool, then follow its instructions.

$ARGUMENTS

Commands are advertised over ACP, so these show up in Zed's / menu.

Related issues:

  • #35341: open request to auto-register skills as /name commands
  • #50638: open request to show skills in the Desktop / list
  • #51753 / #52752: removal of the slash frontmatter field in v2
  • #51427: earlier report that slash had no effect in v2

opencodejr[bot] avatar Oct 30 '26 03:10 opencodejr[bot]