๐จClaude Code VSCode Extension Does Not Detect Custom Slash Commands From .claude/commands
๐จClaude Code VSCode Extension Does Not Detect Custom Slash Commands From .claude/commands
๐ฅ๏ธ Environment
```txt id="n6h4vq"
Extension: Claude Code
Identifier: anthropic.claude-code
Version: 2.1.153
VSCode: Latest
OS: Windows
---
# โ Problem
Custom slash commands inside:
```txt id="2fftxx"
.claude/commands/
are not being detected inside the Claude Code VSCode extension.
The same commands work correctly in terminal Claude Code.
Inside VSCode chat:
```txt id="sv16xv"
/handoff
returns:
```txt id="l4z16k"
Unknown command: /handoff
---
๐ Current Project Structure
```txt id="2c5v0r"
PROJECT_ROOT/
โโโ .claude/
โ โโโ commands/
โ โ โโโ handoff.md
โ โ โโโ handoffpass.md
โ โโโ handoff.md
โโโ CLAUDE.md
โโโ frontend/
โโโ backend/
---
# ๐ ๏ธ Commands Created
## `.claude/commands/handoff.md`
```md id="7pxyhk"
---
description: Save current session state into handoff file
---
Analyze the entire conversation and workspace.
Create a structured session snapshot.
Include:
# Current Goal
# Completed Work
# Modified Files
# Important Decisions
# Current Issues
# Attempted Fixes
# Backend Changes
# Frontend Changes
# Commands Run
# Next Step
Save output into:
.claude/handoff.md
Overwrite the file completely (do not append).
After saving, respond:
"Handoff saved. Use /handoffpass to continue in a new session."
---
.claude/commands/handoffpass.md
```md id="q5qq5l"
---
description: Restore previous session from handoff
---
Read the file:
.claude/handoff.md
Use it as full context of the previous session.
Then:
- Summarize key state internally
- Continue work from "Next Step"
- Do NOT ask the user to re-explain anything
Start directly from where the system left off.
---
# โ
Expected Behavior
The VSCode extension should automatically detect custom slash commands from:
```txt id="8x92q7"
.claude/commands/
and allow usage like:
```txt id="p8cxg5"
/handoff
/handoffpass
exactly like terminal Claude Code.
---
# โ Actual Behavior
VSCode extension returns:
```txt id="m3sh7n"
Unknown command: /handoff
even after:
- ๐ Reload Window
- ๐ Restart VSCode
- ๐ Restart Claude extension
- ๐ Reopen workspace
- ๐ Recreate command files
- โ Verify markdown frontmatter
- โ Verify commands work in terminal Claude Code
---
๐ Additional Observation
This appears to be specific to the VSCode extension because terminal Claude Code loads the exact same commands correctly.
Possibly the extension:
- is not scanning
.claude/commands - caches commands incorrectly
- only loads commands on startup
- or currently does not support project slash commands
---
๐งช Reproduction Steps
- Create:
```txt id="cnj8x0"
.claude/commands/handoff.md
2. Add valid command markdown with frontmatter
3. Open Claude Code extension chat in VSCode
4. Run:
```txt id="jvzcvi"
/handoff
- Observe:
```txt id="0sqfxk"
Unknown command: /handoff
while terminal Claude Code works correctly.
---
# ๐ Request
Please confirm whether:
* custom project slash commands are officially supported in VSCode
* there is an additional setup step required
* or this is currently a bug in the extension
Thanks ๐
This issue has 2 comments on GitHub. Read the full discussion on GitHub โ