Skip to content

HookMatcherConfig

Base classes

Name Children Inherits
dict
builtins
dict() -> new empty dictionary

⋔ Inheritance diagram

graph TD
  3949578852["hooks.HookMatcherConfig"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 3949578852
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

Declarative hook matcher for agent/skill/settings hook configuration.

See https://code.claude.com/docs/en/hooks#matcher-patterns

Source code in src/clawd_code_sdk/models/hooks.py
class HookMatcherConfig(TypedDict):
    """Declarative hook matcher for agent/skill/settings hook configuration.

    See https://code.claude.com/docs/en/hooks#matcher-patterns
    """

    matcher: NotRequired[str | None]
    hooks: list[HookHandler]

:fa-brands-github: Show source on GitHub