Follow Discord
Sweep 22 Oct 2026 · 20:42Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.308 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
Reading a new release v2.1.309 Analysing changes · 3/6 Sorting the findings · 1/1 steps 472 findings $10.69 so far
HomeDocsSearch
Search the documentation

4 pages for userpromptexpansion.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

Intercept and control agent behavior with hooks Claude Code CLI · in the page agent-sdk/hooks …Code starts on its own | Inject additional context into prompts | | [`UserPromptExpansion`](/docs/en/hooks#userpromptexpansion) | No | Yes | A user-typed command, or an MCP prompt, expands into a prom… Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …e" | "PostToolBatch" | "Notification" | "UserPromptSubmit" | "UserPromptExpansion" | "SessionStart" | "SessionEnd" | "Stop" | "StopFailure" | "SubagentStart" | "SubagentStop" | "… Hooks reference Claude Code CLI · in the page hooks …into SessionStart, then a per-turn loop containing UserPromptSubmit, UserPromptExpansion for slash commands, the nested agentic loop (PreToolUse, PermissionRequest, PostToolUse, PostToolUseFailure, P… Automate actions with hooks Claude Code CLI · in the page hooks-guide …aude Code starts on its own](/docs/en/hooks.md#userpromptsubmit) | | `UserPromptExpansion` | When a user-typed command expands into a prompt, before it reaches Claude. Can block the expansion | | `Pre…
Feedback