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.
The short moves, their trigger and their effect
| Move | Trigger | Effect |
|---|---|---|
| --continue | Option at claude launch | Directly resumes the most recent session in the current folder |
| --resume | Option at claude launch | Opens a session picker or jumps to a specific identifier |
| ! | First character of the input | Switches to shell mode and adds the output to the conversation |
| /rewind | Command, or double Escape on empty input | Opens a checkpoint menu for the code and the conversation |
| ultrathink | Keyword placed in the text of the request | Adds deeper reasoning for this turn only |
| vim mode | /config then Editor mode | Changes the input editor without touching the other moves |
What a checkpoint retains
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 this establishes: The --continue command resumed the previous session on this folder, since the previous day's history appears directly in the conversation without the developer having to ask for it again.
What this does not establish: It does not establish that --continue would have found the same session from a different project folder, since the resumption happened in the same directory as the day before.
The three most common miscalibrations
- Too broad The --continue command now finds any Claude Code session, regardless of the folder it is launched from.
- Too narrow This result proves nothing at all, since only one session resumption was observed on a single folder.
- Off target This situation shows that git log is the most reliable way to check the state of a repository.
- --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.
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.
Every datable claim in this lesson links here to the public text behind it. A source that does not open proves nothing.
- Claude Code, headless mode, --continue and --resume options consultée le 2026-09-02
- Claude Code, checkpoints and /rewind consultée le 2026-09-02
- Claude Code, interactive mode, quick commands and vim mode consultée le 2026-09-02
- Claude Code, model configuration, ultrathink keyword and effort levels consultée le 2026-09-02
- Claude Code, automatic memory and the /memory command consultée le 2026-09-02