Events¶
Event types for tools and lifecycle hooks.
Base Event¶
BaseEvent ¶
Bases: BaseModel
Base model for all Claude Code hook events.
All events share these common fields from the hook input.
extra="allow": every event keeps the fields Claude Code sends, even
ones with no typed accessor. The typed attributes are a convenience layer
over the raw payload, which stays fully reachable via :attr:data. This
means upstream schema additions (new fields on existing events) are usable
immediately — fasthooks never silently drops what it doesn't model.