The Claude Code extension in VScode does not show OpenSpec commands.
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.
rename the file name to :openspec.apply.md
I got the same problem.
rename the file name to :openspec.apply.md
It still doesn't work after renaming.
rename the file name to :openspec.apply.md
It still doesn't work after renaming.
.claude/commands/openspec.apply.md works for me
rename the file name to :openspec.apply.md
It still doesn't work after renaming.
.claude/commands/openspec.apply.md works for me
right
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.
Two different projects. Left is the one that does not have the / commands in VS Code, the right does.
The two projects in VS Code
Looks like this is an issue with Claude Code https://github.com/anthropics/claude-code/issues/9926
@PwrBank Thanks for the help digging into this, much appreciated 💯
@TabishB , I just wish they would actually fix it lol. They closed that Issue without a fix.
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.
I moved them from the
.claude/commands/openspec/to just the commands folder, and they still didn't load. If I renamed them toos-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.
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
Closing as obsolete. Two things ended this issue's era:
- 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.
- The mechanism this was filed against no longer exists: OpenSpec stopped generating
.claude/commands/openspec/*.md—openspec updateactively 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.