
What happened
Claude Code's official guidance says Esc halts a running action while keeping work done so far, /rewind restores code, conversation or both to an earlier prompt, and /clear empties the conversation to start over.
Why it matters
The guidance positions stopping, rewinding and clearing as escalating options, so the cost of a wrong turn is lower and a fresh start after two failed fixes is the recommended path.
Summaries like this, every morning.
Claude Code's documentation frames session control as a ladder rather than a single undo button. The first rung is Esc, which stops a running action but keeps the work already done, so a user can correct direction without losing ground. The second is /rewind, which opens a list of earlier prompts and lets the user choose whether to restore code, conversation, or both; the code option appears only when tracked file changes exist after that point. The documentation argues that having a rewind available lowers the psychological cost of trying a bold approach first.
The third rung is /clear, which empties the conversation. The guidance is specific: if two consecutive fixes on the same point fail, a third correction only feeds the model more failed attempts, so clearing and writing one new prompt that folds in what was learned works better almost every time. The cost guidance adds a second use: clear when moving to unrelated work, because old context consumes tokens in every later message.
The documentation also draws the boundary of what checkpoints can undo. Changes made only by Bash commands, most sub-agent edits, manual changes outside Claude Code, and edits from other concurrent sessions are normally not tracked, so Git remains the tool for permanent history and collaboration. A summary option inside /rewind compresses the conversation without touching files on disk, and the guidance points to /branch or claude --continue --fork-session when a user wants to try another approach while keeping the original session intact.
Pick your industry and the AI tools you use, and get news related to your work every day.
Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →
Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.
FlashLabs updated Hermes Agent, its AI agent inside the FlashRev B2B sales platform, adding multiple sessions…

Artificial Analysis's evaluation found OpenAI's GPT-6.2 Astra and Sol give shorter, more direct answers than p…

Between 1:48 and 5:21 PT on November 21, requests to OpenAI's API and ChatGPT failed at rates peaking at 75%…

OrcaRouter started providing an API for Qwen4 Max, Alibaba's latest flagship model, so developers can call it…

A developer's task.md grew to 1,630 lines, about 45% records of finished work, and Claude reported 63 unfinish…

A Zenn author published a master index of every article in their series — Rokid Glasses smart glasses (15 post…
