Architecture Development Notes
Oct 16, 2026 · Backend Development
Why PreToolUse Misses Direct Slash Commands: The Prompt-Layer Fix
The article explains how Claude Code's slash commands bypass PreToolUse hooks, requiring UserPromptExpansion for interception, details skill rendering-phase command execution and permission checks, and covers the 2.1.299 change moving UserPromptSubmit before command expansion.
Claude CodePreToolUseUserPromptExpansion
0 likes · 12 min read
