Skip to content
Mastering Claude

Home / Everyday moves

Everyday moves12 minApplication

Quick terminal moves

A handful of short moves cover most of a day to day session: resuming a specific session, going back to an earlier checkpoint, running a shell command without leaving the conversation, and asking for deeper reasoning for a single turn without changing the setting for the whole session.

A Claude Code session is steered as much by a handful of short moves as by long instructions. --continue resumes the most recent session in the current folder, --resume opens a picker to choose a specific one, ! at the start of a line switches to shell mode for an inline command, and /rewind opens a checkpoint menu to go back without losing the conversation.

Resuming a specific session

--continue picks up the most recent session open in the current folder and resumes it directly, with nothing to select. --resume opens a session picker, or accepts a specific identifier to jump straight to it. In non interactive mode:

claude -p "summarise what we have done" --continue

This move avoids having to retype the context of a conversation already held the day before, on the same project folder.

Going back to a checkpoint with /rewind

Claude Code keeps the hundred most recent checkpoints of a session, with a new checkpoint created on every message sent. /rewind, or two presses of Escape from an empty input, opens a six choice menu on the selected checkpoint: restore code and conversation, restore the conversation alone, restore the code alone, summarise from that point or up to that point to free up context, or cancel without changing anything. These checkpoints are automatically cleaned up after thirty days.

/rewind does not cover everything: files modified by a bash command such as rm, mv or cp escape this tracking and cannot be undone by this move, a sub-agent's edits are generally not restored either, a change made outside the session is not restored, and a symlinked or hardlinked path is ignored on restore. The lesson on undoing and recovering a change details these limits and the git move that covers them instead.

An inline shell command with !

Typing ! right at the start of the input switches to shell mode: the command that follows runs directly, its output is added to the conversation, and Claude takes it into account for the rest of its reasoning, without going through a request phrased in natural language.

! git status --short

Adjusting reasoning for a single turn

The keyword ultrathink, placed anywhere in a request, adds a one off instruction that asks for deeper reasoning for that specific turn, without changing the effort level set for the rest of the session. Phrases such as think or think hard are no longer recognised as special keywords, they are read as ordinary text. The session's effort level is set separately, with the /effort command.

Remembering a fact without a dedicated prefix

Adding a fact to remember no longer goes through a prefix typed on the keyboard: Claude feeds an automatic memory itself as the session goes along, and /memory opens the memory files to browse or correct them by hand.

To write text in an editor closer to terminal habits, vim mode is enabled from /config, under Editor mode, or by writing "editorMode": "vim" in a settings file. This mode combines with everything else in this list, it does not replace any of the previous moves. These moves sit on top of mechanisms already covered, notably interrupting and redirecting mid task, which distinguishes Escape from a full stop with Ctrl+C.

Figure 1

The short moves, their trigger and their effect

MoveTriggerEffect
--continueOption at claude launchDirectly resumes the most recent session in the current folder
--resumeOption at claude launchOpens a session picker or jumps to a specific identifier
!First character of the inputSwitches to shell mode and adds the output to the conversation
/rewindCommand, or double Escape on empty inputOpens a checkpoint menu for the code and the conversation
ultrathinkKeyword placed in the text of the requestAdds deeper reasoning for this turn only
vim mode/config then Editor modeChanges the input editor without touching the other moves
Each row pairs a move with its exact trigger and what it actually produces in the current session.
Figure 2

What a checkpoint retains

100checkpoints
maximum number kept per session before the oldest are cleaned up
code.claude.com/docs/en/checkpointing, 2026-09-02
30days
delay before the oldest checkpoints are automatically cleaned up
code.claude.com/docs/en/checkpointing, 2026-09-02
These two figures bound the useful lifespan of the checkpoints opened by /rewind in a Claude Code session.
Calibrate it yourself

A developer relaunches Claude Code the next morning on the same project folder with the --continue command. The session resumes directly, with the previous day's history visible in the conversation. He then types ! git log -1 to check the latest commit shown on screen.

Write, in one sentence, what this situation establishes, and in one sentence what it does not establish.

What to remember
  • --continue automatically resumes the most recent session in the current folder, --resume opens a picker or accepts a specific identifier.
  • /rewind, or two presses of Escape from an empty input, restores the code, the conversation, or both, but does not track files modified by a bash command, most of a sub-agent's edits, or a symlinked or hardlinked path.
  • The ! prefix runs a shell command directly and adds its output to the conversation, without going through a natural language request.
  • Only the keyword ultrathink adds a deeper reasoning instruction for a single turn, without changing the effort level set for the entire session.
  • A memory is now kept automatically as the session goes along, /memory is used to browse or correct it, without a dedicated prefix typed on the keyboard.
Do this now

Launch a Claude Code session, type ! followed by a simple shell command such as ! ls, watch its output get added to the conversation, then open /rewind to see the list of checkpoints available on that same session.

Check the source

Every datable claim in this lesson links here to the public text behind it. A source that does not open proves nothing.