# Claude Code Interactive Mode: Shortcuts and Prompt Tricks

> The prompt box does more than send text. Here are the sigils, the queue, side questions and the shortcuts worth learning first.

URL: https://www.matthewswong.com/en/blog/claude-code-interactive-mode-shortcuts/

- Author: Matthews Wong (https://www.matthewswong.com/en/about/)
- Published: 2026-08-27
- Updated: 2026-08-27
- Category: Software Development

> **Key takeaway:** The Claude Code prompt is not just a text box. Five leading characters change what it does, a message typed mid-turn is queued rather than dropped, a side question can be asked without touching the conversation history, and about ten key combinations cover almost everything else you will reach for.

For two months I interrupted Claude every time I thought of something, because I assumed pressing Enter mid-turn would either be ignored or cut the work short. It queues. The message goes in as soon as the current tool calls finish, the turn keeps its momentum, and the thing I had to say lands anyway. That one fact changed how I work more than any setting.

The interactive surface is full of small things like that, and almost none of them announce themselves. This post covers the characters that change what the prompt does, why shell mode is worth more than a keystroke saved, queuing against interrupting, side questions that stay out of the history, the shortcuts worth memorising, one setting that makes editing behave like your shell, and what happens when you hit a usage limit.

## Five characters that change what the prompt is

Leading characters switch the input into different modes, and only two of them are widely known. The command slash and the file-path at-sign get used constantly; shell mode, emoji shortcodes, and the help panel on an empty input rarely do — which is a shame, because the first of those is the most useful thing in the list.

## Shell mode does more than save a keystroke

Running a command with the bang prefix does not just spare you a second terminal. The command and its output join the conversation, and Claude responds to that output on its own — so running your test suite gets you an explanation of the failures without a second prompt. That is a genuinely different workflow from switching windows, running the tests, and pasting the output back.

It also behaves like a shell in the ways that matter. Tab completes from your previous commands in this project, a token containing a slash opens file-path completion, and a long-running command can be backgrounded with the same key as any other. You leave the mode with escape, backspace, or a clearing keystroke on an empty prompt.

> Reverse search is the shortcut most worth building a habit around. It scans your full prompt history newest first with duplicates collapsed, and — unlike the up arrow, which recalls prompts for the current project — the inline search reaches prompts from every project. Tab or escape accepts the match for editing; Enter accepts and runs it immediately.

## Queue instead of interrupting

Type while Claude is working and press Enter: the message is queued, listed above the input box, and delivered rather than discarded. What differs is when. This is worth knowing precisely, because the difference between a message and a command is the difference between landing inside the current turn and waiting for the next one.

| What you queued | When it is sent |
| --- | --- |
| A plain message, during tool calls | As soon as those tool calls finish, inside the same turn |
| A command or a shell command | Held until the turn ends, then run one at a time |
| Anything, when you press escape | The turn is interrupted and what you queued is sent right away |
| Anything, when you change your mind | Press up from the first line of the input box to take it back into the prompt, one entry per line |

## Side questions that stay out of the history

The side-question command answers from what is already in the conversation — your messages, Claude's replies, the tool results it has gathered — and nothing it produces enters the history. It is the exact inverse of a subagent: full context, no tools, where a subagent has tools and no context. Three properties make it more useful than it sounds:

- It works while Claude is still working. The side question runs independently and does not interrupt the turn.
- It cannot read files, run commands or search, which is what keeps it cheap and instant while the conversation's cache is warm.
- It answers once — there is no follow-up turn in the overlay. Ask another, or press the fork key to continue the thread as a subagent that inherits the question and answer.

## The shortcuts worth memorising

Ten or so cover nearly everything. The transcript viewer and the task list are the two people most often do not know exist, and the stash key is the one you will wish you had known the first time a permission dialog appeared over a half-written prompt.

> Two footnotes on backgrounding. Inside tmux the background key has to be pressed twice, because tmux takes the first press as its own prefix. And background tasks are not immortal: they are terminated if output passes 5 GB, cleaned up when Claude Code exits, and on macOS and Linux they can be killed when the operating system signals memory pressure, provided the session has been idle for at least half an hour.

## Make editing behave like your shell

One setting fixes the most irritating difference between the prompt and a normal shell. By default, deleting the previous word stops at a path separator; the readline flavour deletes back to whitespace the way bash does. If you have ever pressed the delete-word key four times to remove one file path, this is the fix.

## When you hit a usage limit

On a claude.ai plan, hitting a limit mid-task does not end the session. A line at the bottom shows when work will continue, Claude Code waits, and at the reset it sends a prompt to pick the task back up. Escape at an empty prompt cancels the wait, and the options command lets you choose the behaviour deliberately. It is off in background and non-interactive runs, and irrelevant on metered billing where there is no reset to wait for.

> Prompt suggestions are worth knowing about because they are off by default in interactive mode and the toggle is sometimes hidden. When they are on, Claude Code proposes your next prompt after a response; tab or the right arrow places it in the input. They reuse the conversation's prompt cache, so the extra cost is small — but they are skipped on a cold cache, in plan mode, and when you are near your usage limit.

Learn queueing first, because it removes the choice between interrupting and forgetting. Then shell mode, because getting an explanation of a failing test without pasting anything is the single biggest time saving in this list. Everything else you can pick up as you meet it — press the question mark on an empty prompt and the panel will tell you what is available in the version you are actually running.

## Sources & further reading

- Claude Code docs — Interactive mode
- Claude Code docs — Keybindings
- Claude Code docs — Terminal configuration
- Claude Code docs — Fullscreen rendering
- Claude Code docs — Settings reference
- Claude Code docs — Subagents
- Claude Code docs — Checkpointing
- Claude Code docs — Environment variables

## Source links

- https://code.claude.com/docs/en/interactive-mode
- https://code.claude.com/docs/en/keybindings
- https://code.claude.com/docs/en/terminal-config
- https://code.claude.com/docs/en/fullscreen
- https://code.claude.com/docs/en/settings-reference
- https://code.claude.com/docs/en/sub-agents
- https://code.claude.com/docs/en/checkpointing
- https://code.claude.com/docs/en/env-vars

## FAQ

### What happens if I type while Claude Code is working?

The message is queued rather than dropped or treated as an interrupt. A plain message queued during tool calls reaches Claude as soon as those calls finish, inside the same turn. Commands and shell commands are held until the turn ends and then run one at a time. Press escape if you want to interrupt instead.

### What does the exclamation mark do in the Claude Code prompt?

It runs the rest of the line as a shell command without going through Claude. The command and its output are added to the conversation, and Claude responds to that output automatically, so running your tests gets you an explanation of the failures without a second prompt. Tab completes from your previous shell-mode commands in the project.

### How do I enter a multiline prompt in Claude Code?

A control sequence works in any terminal without configuration, and a trailing backslash followed by Enter works everywhere too. Shift and Enter is native in iTerm2, WezTerm, Ghostty, Kitty, Warp, Apple Terminal and Windows Terminal. On macOS, the Option and Enter combination works once you configure Option as Meta.

### What is the btw command in Claude Code?

It asks a side question that never enters the conversation history. It answers only from what is already in context — your messages, Claude's replies and the tool results gathered so far — and has no tool access, so it cannot read files or run commands. It also works while Claude is still processing a response.

### How do I make Claude Code delete words like bash does?

Set the keybinding flavour to readline in your settings file. The default treats a path separator as part of a word, so deleting the previous word removes only the last path segment. Under readline, punctuation such as underscore, dot and slash separates words, so one keystroke removes a whole file path.

---

- HTML version: https://www.matthewswong.com/en/blog/claude-code-interactive-mode-shortcuts/
- Bahasa Indonesia: https://www.matthewswong.com/id/blog/claude-code-interactive-mode-shortcuts/
- Site index for agents: https://www.matthewswong.com/llms.txt
- Sitemap: https://www.matthewswong.com/sitemap.xml
- API description (OpenAPI): https://www.matthewswong.com/openapi.json
