OpenSpec icon indicating copy to clipboard operation
OpenSpec copied to clipboard

The Claude Code extension in VScode does not show OpenSpec commands.

Open superacac opened this issue 1 year ago • 14 comments

After installing OpenSpec, when I start Claude Code in the terminal and type /, I can see the OpenSpec commands. However, when using the Claude Code extension in VSCode, typing / in the chat window does not show any commands. How can I fix this? My system is macOS.

superacac avatar Oct 21 '25 13:10 superacac

rename the file name to :openspec.apply.md

piperTang avatar Oct 22 '25 06:10 piperTang

I got the same problem.

piperTang avatar Oct 22 '25 06:10 piperTang

rename the file name to :openspec.apply.md

It still doesn't work after renaming.

superacac avatar Oct 22 '25 07:10 superacac

rename the file name to :openspec.apply.md

It still doesn't work after renaming.

.claude/commands/openspec.apply.md works for me

uzhao avatar Oct 22 '25 16:10 uzhao

rename the file name to :openspec.apply.md

It still doesn't work after renaming.

.claude/commands/openspec.apply.md works for me

right

piperTang avatar Oct 23 '25 01:10 piperTang

I've noticed that it works in some projects in VS Code but not others. Even though both have had openspec init ran on them.

PwrBank avatar Oct 23 '25 12:10 PwrBank

Two different projects. Left is the one that does not have the / commands in VS Code, the right does.

Image

The two projects in VS Code

Image

PwrBank avatar Oct 23 '25 13:10 PwrBank

Looks like this is an issue with Claude Code https://github.com/anthropics/claude-code/issues/9926

PwrBank avatar Oct 23 '25 14:10 PwrBank

@PwrBank Thanks for the help digging into this, much appreciated 💯

TabishB avatar Oct 24 '25 01:10 TabishB

@TabishB , I just wish they would actually fix it lol. They closed that Issue without a fix.

PwrBank avatar Oct 24 '25 12:10 PwrBank

So, not sure why this is. Some projects are working fine with the custom slash commands, others are totally ignoring them. On one of my projects that it's not loading them on, I moved them from the .claude/commands/openspec/ to just the commands folder, and they still didn't load. If I renamed them to os-apply.md then it would load them... If they are renamed AND under the openspec folder, they do not load.

WarlockSyno avatar Oct 25 '25 00:10 WarlockSyno

I moved them from the .claude/commands/openspec/ to just the commands folder, and they still didn't load. If I renamed them to os-apply.md

It worked after i tried this method. After that, i quit claude cli, rename it back to original and move it back to openspec, now the /openspec: is working now.

Hope they really fix this.

i2egular avatar Oct 25 '25 10:10 i2egular

sample problem

install by npm claude version: v2.1.69 os: mac os 13.0 (22A380)

Add the following to the env section of ~/.claude/settings.json: "CLAUDE_CODE_USE_NATIVE_FILE_SEARCH": "true"

it works for me

neilzhang avatar Mar 05 '26 13:03 neilzhang

Closing as obsolete. Two things ended this issue's era:

  1. The thread root-caused the symptom to an upstream Claude Code VS Code extension bug with subdirectory commands (anthropics/claude-code#9926) — not something OpenSpec can fix.
  2. The mechanism this was filed against no longer exists: OpenSpec stopped generating .claude/commands/openspec/*.md — openspec update actively deletes that directory as legacy (src/core/legacy-cleanup.ts), and workflows now install primarily as Agent Skills (.claude/skills/openspec-*/SKILL.md), which don't depend on the slash-command menu at all — you can just ask Claude to "propose a change with openspec" and the skill activates.

The present-day incarnation of the underlying incompatibility (commands are now generated under .claude/commands/opsx/, and newer Claude Code versions changed subdirectory command handling) is tracked in the open issue #1076 — follow there if the slash menu still misbehaves for you on a current release.

clay-good avatar Jul 27 '26 22:07 clay-good