Skip to content llms.txt

matcher_patterns

Whether hooks can filter which tools or events they respond to using name matching, regex patterns, or structured criteria.

Type: bool Content type: hooks

ProviderSupportedMechanism
ampAmp hooks filter firing via 'input.contains' — exact literal substring match against tool input
claude-codehook_matcher_patterns: exact string, pipe-separated list, or JavaScript regex; matches on tool_name or event-specific fields
codexhook_matcher: Codex hooks support pattern matching to filter which tools or events trigger the hook
cursorHook entries accept a matcher string that filters which tool or event fires the hook (for example a specific shell command or tool name).
gemini-clihook_matchers: Gemini CLI hooks support event and tool name matching to filter when hooks fire
clineCline hooks fire on configured lifecycle events; no per-tool pattern matching documented
copilot-cliCopilot CLI hooks fire on all events of their configured type; no per-tool filtering documented
crushnot documented
factory-droidFactory Droid hooks fire on configured lifecycle events; no per-tool pattern matching documented
kiroKiro hooks fire on configured lifecycle events; no per-tool filtering documented
opencodenot documented
piPi hooks fire on configured lifecycle events; no per-tool filtering documented
roo-codenot documented
windsurfWindsurf hooks fire on all events of their configured type; no per-tool or regex matching documented
zednot documented