Loading image...Kiro
  • CLI
  • Web
  • Powers
  • Enterprise
  • Pricing
  • Docs
SIGN INDOWNLOADS
Loading image...Kiro
Loading image...Kiro
Product
  • About Kiro
  • CLI
  • Web
  • Powers
  • Pricing
  • Downloads
For
  • Enterprise
  • Startups
  • Students
Community
  • Overview
  • Ambassadors
  • Discord
  • Events
  • Showcase
Resources
  • Documentation
  • Blog
  • Changelog
  • FAQs
  • Report a bug
  • Suggest an idea
  • Billing support
Social
Site TermsLicenseResponsible AI PolicyLegalPrivacy PolicyCookie Preferences
  1. Docs
  2. CLI
  3. Chat
  4. Rewind

Rewind


The /rewind command lets you go back to any previous turn in your conversation and branch off in a new direction. Instead of starting over or manually undoing changes, you fork the session at the point where things diverged from what you wanted.

How it works

When you run /rewind, Kiro creates a new session that starts from the turn you select. The original session stays intact, so you can always switch back to it.

Info

Rewinding creates a new conversation branch — it does not undo file changes made in later turns. Your files on disk remain as they are. If you need to revert file changes, use your version control system.

bash
# Open interactive turn picker /rewind # Jump directly to turn 4 /rewind 4

The interactive picker displays:

  • A preview of your prompt at each turn
  • The context window usage percentage at that point
  • Turns listed newest-first for quick access to recent history

Typical workflow

  1. You're mid-conversation and realize the agent went down the wrong path a few turns ago
  2. Run /rewind and select the turn where things were still on track
  3. Kiro creates a new session from that point
  4. Send a different prompt to guide the conversation in a better direction
  5. To return to the original session, use /chat resume — the original is never modified

Use cases

  • Backtracking — the agent made a wrong assumption three turns ago and everything since built on it
  • Exploring alternatives — you want to try a different approach to the same problem without losing your first attempt
  • Recovering from context pollution — too much irrelevant context accumulated and you want a cleaner starting point
  • A/B testing prompts — fork at the same turn with different instructions to compare results

Related

  • Session management — saving, loading, and resuming sessions
  • Slash commands reference — quick command reference
Page updated: May 19, 2026
Effort
In-session settings