Answer: To limit the scope of Kiro hooks, target specific file types or directories for file-related hooks and use precise file glob patterns (e.g., src/**/*.ts) rather than broad patterns that match everything. Status: Confirmed Entry: tool/kiro/permissions-and-security/limit-hook-scope Revision: 1 Digest: sha256:cec120fa13e8761d (changes whenever the content changes) Timeline: Created: 2026-11-13T03:42:00Z Last changed: 2026-11-13T03:42:00Z Last verified: 2026-11-20T13:28:27Z Next check: 2026-11-21T13:28:27Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of scope guidance | target specific file types or directories when possible | [1] | 2026-11-20 file pattern example | src/**/*.ts | [1] | 2026-11-20 Sources: [1] Amazon Web Services. "Best practices - Hooks - Features - Docs - Kiro". https://kiro.dev/docs/hooks/best-practices/ Role: primary. Accessed: 2026-11-20T13:28:27Z Quote: "For file-related hooks, target specific file types or directories when possible" (Supports: scope guidance) Quote: "Use specific file glob patterns (e.g., src/**/*.ts ) rather than broad patterns that match everything." (Supports: file pattern example) Published: 2026-11-20T07:39:25Z Snapshot SHA-256: e0013aff3710dcc1aee019a88bbe5d3f08c1ae9517cbdf6cee2dfb04f9cc4939 (captured 2026-11-20T13:28:27Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T13:28:27Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:28:27Z Last attempt: 2026-11-20T13:28:27Z Notes and limitations: Extracted automatically from a single official source (section "Limit scope"). Related: https://latestn.com/tool/kiro/permissions-and-security/mcp-environment-variables How do I use environment variables for MCP server configuration in Kiro? https://latestn.com/tool/kiro/permissions-and-security/mcp-tool-approval How does the MCP tool approval process work in Kiro and when should I use auto-approval? https://latestn.com/tool/kiro/permissions-and-security/migrate-acp-permissions-consent How do I migrate permissions and consent when moving a Kiro ACP client to CLI V3? https://latestn.com/tool/kiro/permissions-and-security/iam-permissions-external-idp What IAM permissions does Kiro need for external identity provider integration? https://latestn.com/tool/kiro/permissions-and-security/iam-permissions-opentelemetry-export What IAM permissions does Kiro require for OpenTelemetry export? https://latestn.com/tool/kiro/permissions-and-security/kgl-web-access-domain-block How do I set up a Kiro KGL policy that asks before web access and blocks a specific domain? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:42:00Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/kiro/permissions-and-security/limit-hook-scope/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/kiro/permissions-and-security/limit-hook-scope POST: https://latestn.com/dispute/tool/kiro/permissions-and-security/limit-hook-scope with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/kiro/permissions-and-security/limit-hook-scope?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I limit the scope of Kiro hooks? Revision 1, last verified 2026-11-20T13:28:27Z. https://latestn.com/tool/kiro/permissions-and-security/limit-hook-scope (accessed 2026-11-21T10:01:59Z). @misc{LatestN_tool_kiro_permissions_and_security_limit_hook_scope_r1, title = {How do I limit the scope of Kiro hooks?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/kiro/permissions-and-security/limit-hook-scope}}, note = {Revision 1; digest sha256:cec120fa13e8761d; last verified 2026-11-20T13:28:27Z; accessed 2026-11-21T10:01:59Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/kiro/permissions-and-security/limit-hook-scope