Loading image...Kiro

Product

  • About Kiro
  • IDE
  • CLI
  • Web
  • Mobile
  • Crew
  • Pricing
  • Downloads

For

  • Enterprise
  • Startups
  • Students

Community

  • Overview
  • Ambassadors
  • Discord
  • Events
  • Powers
  • Shop
  • Showcase

Resources

  • Docs
  • Blog
  • Changelog
  • FAQs
  • Report a bug
  • Suggest an idea
  • Billing support

Social

Site TermsLicenseResponsible AI PolicyLegalPrivacy PolicyCookie Preferences
Loading image...Kiro
  • Enterprise
  • Pricing
  • Docs
SIGN INDOWNLOADS
Loading image...Kiro

Get Started

InstallationAuthenticationYour first project

Models

OverviewAvailable modelsReasoning effort

Features

How Kiro works
Specs
Steering
Hooks
Hook triggers
Hook actions
Examples
Management
Best practices
Troubleshooting
MCP
Permissions
Custom agents
Agent Skills
Powers
Cloud sessionsCompactionKiroignoreCheckpoints and rewind
Built-in tools
Configuration scopes

IDE 1.x

What's new in 1.0
Setup & First Run
Editor
Chat
Experimental
Troubleshooting0.x reference

CLI

What's new in 3.0
Setup & First Run
Terminal UI
Chat
Voice modeHeadless modeACPAuto complete
Experimental
2.x reference

Crew

Quick startInstallationRunning 24/7
Chat
Agent Capabilities
Features
Interfaces
Apps
ConfigurationSecurityTroubleshooting

Web - Preview

Setup & First RunIdentity Center
Connect your repositories
Working with the agent
Autonomous modeAutomationsMemory
Sandbox

Mobile - Preview

Overview

Commands and Reference

CLI commandsSlash commandsBuilt-in toolsExit codesSettings

Billing

OverviewManaging your subscriptionUpgrading your planDowngrading your planCancelling your planPurchasing add-on creditsManaging your paymentsManaging usage notificationsManaging your taxesContacting billing supportDeleting your accountRelated questions

Enterprise

ConceptsOnboarding quickstart
Connecting your identity provider
Subscribe your teamManage subscriptions
Governance
Monitor and track
SettingsManaged updatesBillingIAMSupported regions

Privacy and Security

OverviewData protectionCode referencesCompliance validationInfrastructure securityIAM permissionsFirewalls, proxies, and data perimetersVPC endpoints (AWS PrivateLink)

Guides

Overview
Language support
Learn by playing

Migration

Migrating from Q DeveloperMigrating from VSCodeUpgrading from Q CLI
  1. Docs
  2. Features
  3. Hooks
  4. Best practices
View as Markdown

Best practices

View as Markdown

Following these best practices will help you create reliable, efficient, and maintainable hooks that enhance your development workflow.

Hook design

Be specific and clear

  • When using an agent prompt action, write detailed, unambiguous instructions for the agent
  • Focus on one specific task per hook
  • Use numbered steps for complex operations

Test thoroughly

  • Test hooks with some sample scenarios before deploying
  • Verify hooks work with edge cases
  • For file-related hooks, start with limited file patterns before expanding

Monitor performance

  • Ensure hooks don't slow down your workflow
  • Consider the frequency of trigger events
  • Optimize prompts for efficiency

Security considerations

Validate inputs

  • Ensure hooks handle unexpected content gracefully
  • Consider potential edge cases
  • Test with malformed or unexpected input

Limit scope

  • For file-related hooks, target specific file types or directories when possible
  • Use precise file patterns to avoid unnecessary executions
  • Consider the impact of hooks on your entire codebase

Use specific file glob patterns (e.g., src/**/*.ts) rather than broad patterns that match everything.

Review regularly

  • Update hook logic as your project evolves
  • Remove hooks that are no longer needed
  • Refine prompts based on actual results

Team collaboration

Document hooks

  • Maintain clear documentation of hook purposes
  • Include examples of expected behavior
  • Document any limitations or edge cases

Share configurations

  • Use consistent hooks across team members
  • Store hook configurations in version control
  • Create standard hooks for common team workflows

Version control integration

  • Consider hooks that integrate with your version control system
  • Create hooks for code review workflows
  • Use hooks to enforce team standards

Performance tips

  • Use specific file patterns to reduce unnecessary hook executions
  • Keep agent prompt instructions concise to minimize response time
  • Set appropriate timeouts for shell command actions (default: 60 seconds)
  • Prefer shell command actions for deterministic tasks - they're faster and don't consume credits
Page updated: August 4, 2026
Management
Troubleshooting