How to steer a long Claude Code run without taking over

Day 2, 25 minutes · advanced

Goal of this lessonQueue a rule, ask a side question, stop and rewind a long Claude Code run, then send one better prompt that gets it right.

Why it matters

A goal lets Claude keep going, but a long run can still drift. It picks the wrong file name, misreads one line of your request, or keeps building on a wrong guess. If you notice it after twenty minutes, you lose twenty minutes. If you take over and type every step yourself, you lose the point of letting Claude work.

There is a middle way: steering. You stay out of the work but keep a hand on the wheel. You add a rule while Claude is busy, ask a quick question without breaking its flow, stop it the moment it heads the wrong way, and roll back to a clean point when an attempt goes wrong.

Today Ines adds ten new tools to her library in one long request. You practise each steering control on that run, roll it back, and then send one better prompt that gets it right. At the end you have the new cards committed and a short steering card next to your keyboard.

The controls, in the order you need them

The best practices page gives one rule of thumb: watch the first minute, press Esc the moment Claude drifts, and after two failed corrections start over with a better prompt. These are the controls behind that rule, from the interactive mode page.

  • Queue a message. Type while Claude works and press Enter. Claude Code does not interrupt the turn. It shows your message in gray until Claude reads it. If Claude is running tools, it gets your message as soon as those finish, within the same turn. Use this for a rule you forgot, not for a change of direction.
  • Ask on the side with /btw. /btw followed by a question gets a quick answer from what is already in the conversation. It does not stop Claude, and the question and answer never enter the conversation history. It has no tools, so it cannot look anything up.
  • See what is happening. Ctrl+O opens the transcript with every tool call and result. /tasks lists shells and subagents that run in the background. Ctrl+B moves a long command Claude is running to the background so the conversation can go on.
  • Stop with Esc. Esc stops Claude mid-action and keeps the work done so far. Then type a new instruction. If you had messages queued, Claude Code sends them right away.
  • Roll back with /rewind. /rewind, or Esc twice on an empty prompt, opens the rewind menu. You pick one of your earlier prompts and choose Restore code and conversation, Restore conversation or Restore code. After a restore that includes the conversation, the prompt you picked comes back in the input box, ready to improve and send again.
  • Start over with /clear. If you corrected the same thing twice and it is still wrong, a third correction mostly adds noise. Clear the conversation and write one prompt that folds in what you learned.

What a rewind does not undo

The checkpointing page lists the limits:

  • A checkpoint covers files Claude changed with its own file tools. A file that only a shell command changed is not restored. Use git for that.
  • A message you queued while Claude was working has no checkpoint of its own. In the menu it can show No code restore. Pick the prompt that started the turn instead.
  • Checkpoints are for quick undo inside a session. They do not replace commits.

That is why you commit before a long run: git is the safety net under the rewind menu.

The steps

  1. Start from a clean, committed project. git status should show nothing to commit.
  2. Send one long request that takes Claude a while.
  3. Queue a rule while it works.
  4. Ask a side question with /btw.
  5. Stop it with Esc if it is still busy.
  6. Rewind to before the request and check with git what is left.
  7. Send one better prompt that includes everything you learned, let it finish, and check the result.
  8. Commit and write your steering card.

A small run can finish before you get to every step. That is fine: do the steps you still can, and do the rewind in any case.

Follow the steps for Claude Code below.

Example: Ines's run

Ines asked for ten cards. While Claude worked she queued "garden tools go on shelf G1". Claude picked up the rule after a few cards, so the first ones had the wrong shelf. She asked /btw which cards are not on G1 yet?, pressed Esc, and rewound to before the request. The improved prompt came back in the input box. She added the shelf rule to it, sent it once, and every card came out right the first time.

Her steering card says: "Forgot a rule: queue it. Quick question: /btw. Wrong direction: Esc. Messy attempt: rewind and send a better prompt. Two failed fixes: /clear."

Common mistakes

  • Queuing a change of direction. Claude keeps working on the old plan until it reads your message. If the direction is wrong, press Esc first.
  • Rewinding without git. Files changed only by shell commands stay as they are. Always check git status after a rewind.
  • Correcting a third time. Two failed corrections are a sign the prompt needs to change, not the wording of your next message.

Deeper dive

Today's actions

Ticks are not saved without an account

Do it in Claude Code

Claude Code

  1. Go into the practice folder, check that git has nothing to commit, and start Claude Code.
    cd kettleby-tools
    git status
    claude
  2. Send this long request. Read the first minute of what Claude does.
    Create a card in items/ for each of these ten tools: cordless drill, jigsaw, orbital sander, stud finder, wallpaper steamer, carpet cleaner, hedge shears, rake, leaf blower, lawn edger. Use the same three lines as the other cards, Status: in, and pick a shelf from A1 to A4. Use lowercase file names with hyphens. Run git check after every three cards.
  3. While Claude is still working, type this rule and press Enter. It shows in gray until Claude reads it.
    One more rule: garden tools (hedge shears, rake, leaf blower, lawn edger) go on shelf G1.
  4. Ask a side question. The answer opens in an overlay and does not enter the conversation. Press Esc to close it.
    /btw which cards have you written so far, and which shelf did each garden tool get?
  5. If Claude is still busy, press Esc to stop it. Then press Ctrl+O to read the tool calls it made, and Esc or q to close the transcript.
  6. Press Esc twice on an empty prompt (or type /rewind), pick your ten-card request and choose Restore code and conversation. If a message shows No code restore, pick the request above it.
  7. Check what is left. If new cards still show up, ask Claude to remove the untracked files in items/. Then add the garden rule to your request, which is back in the input box, and send it again.
    ! git status
  8. When Claude is done, check the result yourself and ask Claude to commit. Type /exit and write your steering card.
    ! git check

Note: Your queued message reaches Claude after the tool calls it is running, so the first cards can miss the rule. That is the point of the exercise. /btw has no tools: it answers only from what is already in the conversation. A rewind restores files Claude changed with its own file tools; git shows anything else.

Paid planNeeds a paid Claude plan (Pro, Max, Ultra, Team or Enterprise) or a Claude Console account. The free Claude plan does not include Claude Code.

Checked on 4 December 2026 · Source: Claude Code docs: Interactive mode (opens in a new tab)

Create a free account to save your progress. Sign in or sign up