Skip to content llms.txt

hook_scopes

Where hooks can be configured and the precedence model when multiple scopes define hooks for the same event. Common scopes: global/user, project, workspace, managed/enterprise.

Type: object Content type: hooks

ProviderSupportedMechanism
claude-codeSix scopes: user (~/.claude/settings.json), project (.claude/settings.json), local (.claude/settings.local.json), managed policy, plugin (hooks/hooks.json), component frontmatter
clineglobal_and_project_hooks: Cline supports global (user-wide) and project-level hook configuration
codexhook_scope: Codex hooks can be scoped to global/user or project configuration
cursorProject-scope hooks live under .cursor/hooks/ and are wired through .cursor/settings.json; user-global hooks live under ~/.cursor/ using the same shape.
windsurfthree_config_scopes: global (user-wide), workspace, and managed/enterprise hook configuration scopes
ampProject only: hooks live in a single 'amp.hooks' array inside '.amp/settings.json' (or user-scope settings); no multi-scope layering documented
copilot-cliCopilot CLI hooks are configured at a single scope level; no multi-scope configuration documented
crushnot documented
factory-droidFactory Droid hooks are project-scoped; no multi-scope configuration documented
gemini-cliGemini CLI hooks are project-scoped; no multi-scope configuration documented
kiroKiro hooks are project-scoped; no multi-scope configuration documented
opencodenot documented
piPi hooks are project-scoped; no multi-scope configuration documented
roo-codenot documented
zednot documented