ACP v2 no longer exposes skills in available_commands_update (regression from v1)
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_updatereturns 195 entries, including skills such asaws-observability. - OpenCode v2.2.2 ACP:
available_commands_updatereturns 11 entries, commands only. No skills.
Reproduction
- Add a skill under
~/.agents/skills/<name>/SKILL.md. - Start
opencode acp. - Send
initialize, thensession/new. - Inspect the
session/updatenotification withsessionUpdate: "available_commands_update".
Or reproduce in Zed 1.26.2:
- Configure OpenCode 2.2.x as an ACP agent.
- Open a new thread and type
/. - Only commands appear; no skills.
- 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.tsmergessdk.app.skills()into the command list before sendingavailable_commands_update. - v2:
packages/cli/src/acp/catalog.tsonly callsclient.command.list; there is noskill.listin the ACP catalog. packages/schema/src/skill.tsin v2.2.2 still has noslashfield.
Related
- #51427 —
slashfrontmatter 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/
Screenshot
No response
Operating System
macOS arm64
Terminal
No response
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
/namecommands - #50638: open request to show skills in the Desktop
/list - #51753 / #52752: removal of the
slashfrontmatter field in v2 - #51427: earlier report that
slashhad no effect in v2