Agentic AI Atlasby a5c.ai
OverviewWikiGraphFor AgentsEdgesSearchWorkspace
/
GitHubDocsDiscord
iiRecord
Agentic AI Atlas · UserPromptExpansion (Claude Code)
hook-surface:claude.user-prompt-expansiona5c.ai
Search record views/
Record · tabs

Available views

II.Record viewspp. 1 - 1
overviewjsongraph
II.
HookSurface overview

hook-surface:claude.user-prompt-expansion

Reference · live

UserPromptExpansion (Claude Code) overview

Fires when a slash command (or MCP prompt) expands into a prompt — before the expanded prompt enters the model context. Subscribers can inspect the expansion, mutate it, or block it via decision: "block" / exit 2. Matchable by command name. Canonicalizes loosely to UserPromptSubmit.

HookSurfaceOutgoing · 1Incoming · 2

Attributes

eventName
UserPromptExpansion (Claude Code)
displayName
UserPromptExpansion (Claude Code)
kind
native
originVendor
Anthropic
direction
pre
blocking
true
family
shell-hook
payloadSchema
type
object
required
  • hook_event_name
  • expansion_type
  • command_name
  • command_source
  • prompt
properties
hook_event_name
type
string
const
UserPromptExpansion
expansion_type
type
string
enum
  • slash_command
  • mcp_prompt
command_name
type
string
command_args
type
string
command_source
type
string
enum
  • plugin
  • skill
  • builtin
  • mcp
prompt
type
string
description
Fires when a slash command (or MCP prompt) expands into a prompt — before the expanded prompt enters the model context. Subscribers can inspect the expansion, mutate it, or block it via decision: "block" / exit 2. Matchable by command name. Canonicalizes loosely to UserPromptSubmit.

Outgoing edges

canonicalized_to1
  • hook-surface:user-prompt-submit·HookSurfaceUserPromptSubmit (canonical)

Incoming edges

exposes1
  • agent-runtime-impl:claude-code.runtime@1.x·AgentRuntimeImplClaude Code Runtime (1.x)
maps_hook1
  • hook-mapping:claude-user-prompt-expansion·HookMapping

Related pages

No related wiki pages for this record.

Shortcuts

Open in graph
Browse node kind