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
Feature Specs
Bugfix Specs
Quick Spec
Plan mode
Analyze Requirements
Correctness
Best practices
Steering
Hooks
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. Specs
  4. Bugfix Specs

Bugfix Specs


The Bugfix Spec models how experienced developers approach bug fixes: identify the root cause, understand what should change, and explicitly preserve what shouldn't. Bugfix Specs provide a structured approach using that workflow, guiding you through root cause analysis, fix design, and regression prevention.

Key Benefits

Scoped fixes - Explicit constraints ensure only necessary changes are made

Regression prevention - Unchanged behavior is documented and tested

Documentation - Complete record of the bug, fix, and reasoning for future reference

Reliability - Structured workflow prevents common pitfalls of ad-hoc fixes

When to Use Bugfix Specs

Best for:

  • Complex bugs requiring root cause analysis
  • Bugs in critical code paths where regressions are costly
  • Bugs that need documentation for compliance or team knowledge
  • Situations where previous fix attempts caused regressions

How It Works

Bugfix Specs follow the same three-phase workflow as Feature Specs (Requirements → Design → Tasks), but with content tailored specifically for bug fixes:

Loading diagram...

1. Bugfix Analysis Phase

Instead of a requirements document, you create a bugfix.md that captures:

Current Behavior (Defect)

  • WHEN [condition] THEN the system [incorrect behavior]

Expected Behavior (Correct)

  • WHEN [condition] THEN the system SHALL [correct behavior]

Unchanged Behavior (Regression Prevention)

  • WHEN [condition] THEN the system SHALL CONTINUE TO [existing behavior]

This explicit structure ensures Kiro understands not just what's broken, but what must remain working.

2. Design Phase

Kiro explores the codebase to root cause the issue and generates a design.md with:

  • Root cause analysis
  • Proposed fix approach
  • Properties to test for:
    • Current implementation produces incorrect behavior (validates the bug exists)
    • Fixed implementation produces correct behavior (validates the fix works)
    • Unchanged implementation continues working (prevents regressions)

3. Tasks Phase

Implementation tasks are generated with property-based tests (PBTs) that validate:

  • The bug is reproducible
  • The bug is fixed
  • No regressions are introduced

Getting Started

  1. Choose Bug Fix from the workflow options on the "Let's build" screen when starting a new session. To switch mid-session, click the agent name in the bottom bar of the chat input and select Bug Fix from the agent picker.
  2. Describe the bug, including:
    • When the bug occurs (reproduction steps)
    • What should happen instead
    • Any constraints (code that shouldn't be modified)
  3. Follow the workflow through analysis, design, and implementation.

Learn More

Best Practices
Tips for effective bug fixing with Bugfix Specs
Page updated: August 4, 2026
Design-First
Quick Spec