Keyboard shortcuts
Keyboard shortcuts may vary by platform and terminal. In fullscreen rendering, press
? in the transcript viewer to see available shortcuts there.macOS users: Option/Alt key shortcuts (Alt+B, Alt+F, Alt+D, Alt+Y, Alt+P) require configuring Option as Meta in your terminal. See Enable Option key shortcuts on macOS for the setting in each terminal.General controls
Text editing
Word boundaries in editing shortcuts
The word shortcutsAlt+B, Alt+F, Alt+D, Option+Delete, and Ctrl+Backspace treat a word as a run of letters and digits, so punctuation such as _, ., and / separates words. With src/utils/foo.ts in the prompt, repeated presses of Alt+B stop at the start of ts, foo, utils, and src.
Ctrl+W is different: it ignores punctuation and deletes back to the previous whitespace, so one press removes all of src/utils/foo.ts.
In text written without spaces, such as Chinese or Japanese, the word shortcuts still move or delete one word at a time.
These readline conventions apply in Claude Code v2.1.261 and later. The keybindingFlavor setting that turned them on in earlier versions is deprecated and has no effect.
You can’t remap these shortcuts in the keybindings configuration file, which has no actions for them.
Theme and display
Multiline input
Quick commands
Transcript viewer
When the transcript viewer is open (toggled withCtrl+O), these shortcuts are available. Run /tui with no argument to check which renderer is active. Ctrl+E can be rebound via transcript:toggleShowAll.
Voice input
Commands
Type/ in Claude Code to see the commands available to you, or type / followed by any letters to filter. The / menu lists built-in commands, bundled and user-authored skills, and commands contributed by plugins and MCP servers. Not all built-in commands are visible to every user since some depend on your platform or plan, and a few available commands are hidden from the menu by design and run when you type their full name.
In fullscreen rendering, the / command and @ file suggestion lists also respond to the mouse: hovering highlights a row and clicking accepts it.
See the commands reference for the full list of commands included in Claude Code.
Complete a command mid-prompt
Command completion also works partway through a prompt: type/ after a space, then the first letters of a name, as in run the tests, then /com. Only commands whose names start with those letters match, so a file path such as /tmp/notes.md doesn’t keep a list open. Claude Code runs a command itself only when the command starts your message.
- In fullscreen rendering: the matches open as a list while you type, with no row highlighted, so
Enterstill sends your prompt as typed. PressTabto insert the top match, or pick a row with the arrow keys andEnter. - Outside fullscreen: the rest of the top match appears as ghost text at your cursor, with a count such as
+2when more commands match. PressTabto insert the only match, or to open the list when several match, then pick a row with the arrow keys andEnter.
Tab on a bare mid-prompt / to list every command.
A plugin skill matches on its bare name too, so /deploy finds a skill named myplugin:deploy-app. When you insert the match, Claude Code writes the full /myplugin:deploy-app.
Vim editor mode
Enable vim-style editing via/config → Editor mode.
Claude Code keeps your vim mode and cursor position when you toggle the transcript viewer with Ctrl+O or open and close a panel such as /config. If you leave the prompt in NORMAL mode, it’s still in NORMAL mode when you return, with the cursor where you left it.
Mode switching
Remap INSERT-mode key sequences
ThevimInsertModeRemaps setting maps a two-key INSERT-mode sequence to Escape, so a mapping like jj returns you to NORMAL mode. Requires Claude Code v2.1.208 or later.
The following ~/.claude/settings.json example turns on vim mode and maps jj to Escape:
"<Esc>" is the only supported target. Entries with a different length or target are ignored.
Typing the first character of a sequence inserts it normally. Pressing the second character within one second removes that pending character and switches to NORMAL mode, leaving neither character in your input. After the one-second window, or if a different key follows, both characters stay as literal text, so you can still type a word containing the sequence by pausing between the two keys.
Claude Code reads this setting from your user settings file, the --settings flag, and managed settings only. Entries in a project’s .claude/settings.json or .claude/settings.local.json are ignored, so a checked-out repository can’t remap your keystrokes.
Navigation (NORMAL mode)
In vim NORMAL mode, if the cursor is at the beginning or end of input and can’t move further,
j/k and ↑/↓ navigate command history instead. ← on an empty prompt opens agent view from NORMAL mode as well as INSERT; before v2.1.219, ← on an empty prompt did nothing in NORMAL mode.Editing (NORMAL mode)
Text objects (NORMAL mode)
Text objects work with operators liked, c, and y:
Visual mode
Pressv for character-wise selection or V for line-wise selection. Motions extend the selection, and operators act on it directly.
Block-wise visual mode with
Ctrl+V is not supported.
Command history
Claude Code keeps a history of the prompts you type, and Up-arrow recall reaches prompts from past sessions of the same project:- Input history is stored per working directory
- Running
/clearstarts a new session: recall then lists the new session’s prompts first, with earlier sessions’ prompts after them. The previous session’s conversation is preserved and can be resumed. - Submitting the same prompt twice in a row records one history entry, so pressing Up steps to the previous distinct prompt
- When you recall a prompt that included pasted text, Claude Code sends the full pasted content again when you resubmit. If the content has since been cleaned up, Claude Code doesn’t send the literal
[Pasted text #N]string; see Paste large content for what happens to the prompt - History expansion with
!is disabled by default
Reverse search with Ctrl+R
PressCtrl+R to interactively search through your command history. In fullscreen rendering, Ctrl+R opens a search dialog instead: type to filter, press Up and Down to move through matches, and press Ctrl+S to cycle the scope through this session, this project, and all projects. Press Enter or Tab to place a match in the prompt input, or Esc to cancel. The steps below describe the classic renderer’s inline search:
- Start search: press
Ctrl+Rto activate reverse history search - Type query: enter text to search for in previous commands. The search term is highlighted in matching results
- Navigate matches: press
Ctrl+Ragain to cycle through older matches - Search scope: the inline search always searches prompts from all projects
- Accept match:
- Press
TaborEscto accept the current match and continue editing - Press
Enterto accept and execute the command immediately
- Press
- Cancel search:
- Press
Ctrl+Cto cancel and restore your original input - Press
Backspaceon empty search to cancel
- Press
Background Bash commands
Claude Code supports running Bash commands in the background, allowing you to continue working while long-running processes execute.How backgrounding works
When Claude Code runs a command in the background, it runs the command asynchronously and immediately returns a background task ID. Claude Code can respond to new prompts while the command continues executing in the background. To run commands in the background, you can either:- Prompt Claude Code to run a command in the background
- Press
Ctrl+Bto move a regular Bash tool invocation to the background. Tmux users must pressCtrl+Btwice due to tmux’s prefix key.
- Output is written to a file and Claude can retrieve it using the Read tool
- Background tasks have unique IDs for tracking and output retrieval
- Background tasks are automatically cleaned up when Claude Code exits. On macOS and Linux, when you stop a background task from
/tasksor Claude Code stops it at exit, processes that detached from the task’s shell, such as ones started undersetsidortimeout, stop too - If you background the session instead of exiting it, your background tasks keep running in the background session. See background a running session
- Background tasks are automatically terminated if output exceeds 5GB, with a note in stderr explaining why
- On macOS and Linux, Claude Code terminates running background tasks when the operating system signals memory pressure, provided the session has been idle for at least 30 minutes and no turn or subagent is running. Set
CLAUDE_CODE_DISABLE_BG_SHELL_PRESSURE_REAPto1to turn this off. Requires Claude Code v2.1.193 or later - Background commands owned by a subagent have no time limit, except that a command owned by a subagent running in the foreground ends when that subagent gives its final response; see Background commands in the tools reference. Before v2.1.218, neither the memory-pressure reap nor the former 60-minute limit on subagent commands covered commands moved to the background with
Ctrl+B
CLAUDE_CODE_DISABLE_BACKGROUND_TASKS environment variable to 1. See Environment variables for details.
Common backgrounded commands:
- Build tools (webpack, vite, make)
- Package managers (npm, yarn, pnpm)
- Test runners (jest, pytest)
- Development servers
- Long-running processes (docker, terraform)
Shell mode with ! prefix
Run shell commands directly without going through Claude by prefixing your input with !:
- Adds the command and its output to the conversation context
- Shows real-time progress and output
- Supports the same
Ctrl+Bbackgrounding for long-running commands - Doesn’t require Claude to interpret or approve the command
- Supports history-based autocomplete: type a partial command and press
Tabto complete from previous!commands in the current project - Supports live file path autocomplete as of v2.1.193 on all platforms: type a token containing a forward slash, such as
./src/or~/, to see a dropdown of matching files and directories, then pressTabto accept. Use forward slashes on Windows too; the dropdown is triggered by/, not\ - Exit with
Escape,Backspace, orCtrl+Uon an empty prompt - Pasting text that starts with
!into an empty prompt enters shell mode automatically, matching typed!behavior
! npm test and get an explanation of the failures without a second prompt. The response costs the same as sending a normal prompt. To restore the earlier behavior where the output is added to context without a response, set respondToBashCommands to false in settings.json. Before v2.1.186, shell mode always added output to context without a response.
Queue messages while Claude works
Type a message and pressEnter while Claude is working. Claude Code queues the message instead of interrupting the turn, and lists the queued entries above the input box until it sends them. You can queue ! shell commands and most commands the same way, apart from the commands, such as /status, that Claude Code runs as soon as you send them.
When Claude Code sends what you queued
When a queued entry reaches Claude depends on what you queued.- Messages: if you queue a message while Claude is running tool calls, Claude Code passes it to Claude as soon as those tool calls finish, within the same turn. When the turn ends with messages still queued, Claude Code sends only the oldest as the next turn. The rest stay queued and follow the same rule: Claude Code passes them to Claude when that turn’s tool calls finish, or sends the next oldest as the turn after
- Commands and shell commands: Claude Code holds them until the turn ends, then runs them one at a time
Esc to interrupt the turn instead. Claude Code keeps what you queued and sends it right away.
Claude Code runs some commands as soon as you send them instead of queueing them, among them /model, /effort, and /fast. Each of the three changes a setting: the model, the effort level, or fast mode. Whether Claude Code applies the new setting to the turn Claude is already working on, or only from your next turn, differs by command:
/model: once you confirm the cache warning, if Claude Code shows one, Claude Code applies your change to the next request it makes in that turn/effort: once you confirm the cache warning, if Claude Code shows one, Claude Code applies your change to the next request it makes in that turn/fast: Claude Code keeps the fast mode setting that was active when the turn started, so your speed change applies from your next turn. If your current model doesn’t support fast mode, turning it on also switches your model, and Claude Code uses the new model from its next request in that turn
Take back what you queued
PressUp from the first line of the input box to take back the queued messages and commands. Claude Code removes them from the queue and puts them in the input box, one per line, ahead of any text you had typed. Edit the text and press Enter to queue it again as one entry, or clear the input box to drop it.
Claude Code takes back queued shell commands only when the input box is empty and you have nothing else queued, and it switches the input box to shell mode when it does. Otherwise it leaves them in the queue, listed with their ! prefix, and runs them after the turn ends.
Prompt suggestions
When you first open a session, Claude Code shows a grayed-out example command in the prompt input to help you get started. It picks this from your project’s git history, so the example reflects files you’ve been working on recently. After Claude responds, Claude Code can suggest your next prompt based on your conversation history, such as a follow-up step from a multi-part request or a natural continuation of your workflow.- Press
TaborRight arrowto place the suggestion in the prompt input, thenEnterto submit - Start typing to dismiss it
When Claude Code skips suggestions
In interactive mode, Claude Code leaves prompt suggestions off by default and hides the Prompt suggestions toggle in/config in a session that doesn’t fetch feature flags, such as one on a third-party provider or through a Claude apps gateway, and in a first session after an install or upgrade whose flags haven’t arrived yet.
Claude Code also skips individual suggestions in several situations, including:
- The prompt cache is cold, to avoid unnecessary cost
- After the first turn of a conversation, in some sessions
- The previous response ended in an error
- While you’re in plan mode
- Your account is close to or at its usage limit. To keep suggestions on until you reach the limit, set
CLAUDE_CODE_ENABLE_PROMPT_SUGGESTIONtotrue. Before v2.1.238, Claude Code skipped them near the limit even with the variable set totrue - In an agent team, in teammates’ sessions by default. The lead’s session shows suggestions
--prompt-suggestions with -p "<prompt>" --output-format stream-json --verbose to have Claude Code emit a prompt_suggestion message after each turn that generates one. The generator skips very short conversations and cold prompt caches here too, so a single short -p query can emit none.
Turn prompt suggestions off
To disable prompt suggestions entirely, use any of the following:- Turn off Prompt suggestions in
/config - Set
promptSuggestionEnabledtofalsein your settings file - Set the
CLAUDE_CODE_ENABLE_PROMPT_SUGGESTIONenvironment variable tofalse, which takes precedence over the setting:
promptSuggestionEnabled to false in managed settings. Also set CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION to false under the managed env key so that users can’t re-enable them with their own environment variable.
Emoji shortcodes
Type a: followed by an emoji shortcode in the prompt input to insert the emoji. Requires Claude Code v2.1.217 or later.
- Type a complete shortcode such as
:heart:and Claude Code replaces it with ❤️ as soon as you type the closing: - Type
:plus at least two characters of a name, such as:hea, to open a suggestion popup, then pressTaborEnterto insert the highlighted emoji
: inside a word or URL doesn’t open suggestions.
To turn the feature off, set emojiCompletionEnabled to false in settings.json. This disables both the suggestion popup and the inline replacement.
Check spelling as you type
Claude Code can underline misspelled words in the prompt input while you type. It checks only the text in the input box, never Claude’s replies or your files. It also checks nothing while the input box is in shell mode,Ctrl+R history search, or voice dictation.
Spell checking is off by default, and Claude Code checks nothing in screen reader mode. Requires Claude Code v2.1.235 or later.
Prerequisites
- Install aspell, hunspell, or ispell and make sure it’s on your
PATH. Claude Code runs the first of the three it finds, in that order, on every platform, including a.cmdshim a package manager installs on Windows. - To check that the program is on your
PATH, runaspell --version,hunspell --version, orispell -vin your terminal. A “command not found” error means it isn’t on yourPATHyet.
Turn spell checking on or off
Claude Code reads thespellcheck setting from three places, and ignores it in a project’s .claude/settings.json and .claude/settings.local.json. Turn it on from whichever one you use:
- User settings
- Command line
- Managed settings
Add
spellcheck to ~/.claude/settings.json. It applies in every project you open, like the rest of your user settings:enabled to false in the same place, or remove spellcheck.
To choose which of the three programs Claude Code runs, which dictionary it uses, or the underline color, add any of these fields next to enabled, in the same place:
checker:aspell,hunspell, orispell. Claude Code doesn’t fall back from a checker you name, and treats any other value asauto.language: a dictionary name in your checker’s form, such asen_GB. Claude Code ignores any value that isn’t a plain dictionary name, such as a path or a name with spaces, and the checker uses its default dictionary.color: a color name such asyellow, or a#rrggbb,#rgb,rgb(r,g,b),ansi256(n), oransi:<name>value. Claude Code uses your theme’s error color by default and for any value it doesn’t recognize.
spellcheck setting runs hunspell with its en_GB dictionary and underlines words in yellow. It works the same in ~/.claude/settings.json, in the file you pass to --settings, and in managed settings:
spellcheck setting, Claude Code uses only one of them: managed settings first, then --settings, then user settings. It doesn’t combine fields from two places. For example, when --settings sets spellcheck, a language in your user settings has no effect.
What Claude Code underlines
Shortly after you pause typing, Claude Code underlines the words the dictionary doesn’t know. It leaves the word you’re still typing alone until you move past it, and it never changes your text. It also skips text that looks like code:- Commands such as
/help,@mentions, URLs, file paths, and flags such as--verbose - Words with digits, underscores, or a capital letter after the first, and text in backticks
When Claude Code underlines nothing
Claude Code underlines nothing when it can’t keep a checker running:- No checker is installed, or the one you named in
checkeris missing - The checker fails twice in a row, at startup or later in the session. Claude Code restarts it after the first failure and stops checking after the second, until you restart Claude Code
- The checker takes more than 15 seconds to answer, three times. Each time, Claude Code leaves the words it was waiting on unmarked; after the third, it stops checking until you restart Claude Code
claude --debug with spell checking on and type a word. Then look for the [spellcheck] lines in the debug log at ~/.claude/debug/<session-id>.txt. One line names the program Claude Code started, or lists the ones it looked for and didn’t find. Later lines say why it stopped. A missing-dictionary error there means the checker has no dictionary for your language value, or no default one when language is unset. Install one, or set language to a dictionary you have.
Review changes with /diff
Run/diff to look over the changes in your working tree without leaving Claude Code. You see the edits Claude has made so far alongside anything else you haven’t committed.
In the changes /diff reads from git, a submodule appears as a single entry, and only when the commit it points to changes; edits to files inside the submodule don’t appear there.
In fullscreen rendering, /diff opens the diff panel beside the conversation, which stays open and updates while you keep working. In the classic renderer, /diff opens the diff viewer in place of the prompt, and you close it when you’re done reading.
Diff panel
The diff panel lists the changed files with their added and removed line counts, and shows each file’s diff under the list. Claude Code refreshes it each time Claude edits a file or runs a shell command. To close it, run/diff again or click the ✕ in its header.
To use the panel you need:
- Fullscreen rendering
- A git repository
- A terminal at least 110 columns wide
- Claude Code v2.1.260 or later
/diff opens the diff viewer instead or tells you why.
The panel also opens on its own once Claude starts editing files, if your terminal is at least 144 columns wide. After you’ve opened it yourself with /diff, later sessions open it as soon as Claude edits a file in any terminal wide enough to fit it. Close the panel and it stays closed, in this session and later ones, until you run /diff again.
While the panel is open, you can:
- Jump to a file: click its row in the list. Scroll the panel with the mouse wheel. When the file list itself is too long to fit, scroll it with
Alt+UpandAlt+Down, orCtrl+UpandCtrl+Down. - Ask Claude about specific lines: select them in the panel with the mouse. Claude Code attaches the selection to your next prompt and shows a line count next to the input until you send it.
- Show the files the panel leaves out: the list skips test files and generated files, and collapses changes from before this session into one line at the bottom. Click either count line to expand it.
- Change what the panel compares against: press
Ctrl+X Bto cycle from this session’s changes, to your uncommitted changes as one list, to everything since your branch split from the default branch. Claude Code remembers the choice for each project.
Diff viewer
The diff viewer takes the place of the prompt until you close it. Its Current view shows your uncommitted changes from git, or, when there are none, what your branch adds on top of the default branch. The viewer also has a turn view for each prompt after which Claude edited files, showing just those edits. Claude Code builds the turn views from Claude’s file edits rather than from git, so a change Claude makes through a shell command appears only under Current. Use these keys in the viewer:- Left and Right: move between Current and the turn views.
- Up and Down: select a file.
- Enter: open the selected file’s diff. Scroll it with Up and Down, or PageUp and PageDown.
- Esc: return from a file’s diff to the list, or close the viewer from the list.
Side questions with /btw
Use/btw to ask a question about your current work without adding to the conversation history.
x to clear the earlier exchanges, and it’s gone when you exit Claude Code.
In the VS Code extension’s chat panel, /btw opens a panel rather than the overlay this section describes, and you ask follow-up questions right in the panel. The panel’s thread survives window reloads, on the retention schedule that page describes. You need the extension at v2.1.227 or later. Earlier extension versions don’t offer /btw.
- Available while Claude is working: you can run
/btweven while Claude is processing a response. The side question runs independently and doesn’t interrupt the main turn. It sees everything in the conversation so far, except the reply Claude is still writing. - No tool access: side questions answer only from what is already in context. Claude can’t read files, run commands, or search when answering a side question.
- Single response: there are no follow-up turns in the overlay. To continue the thread, ask another
/btwquestion. To continue with full tool access in a local session, pressfto fork this question and answer into a background subagent. - Low cost: while the conversation’s prompt cache is warm, a side question costs little beyond the answer itself.
/btw with no question. The overlay reopens on your most recent exchange. Before v2.1.212, /btw without a question printed a usage message instead.
Once the answer appears, the overlay accepts these keys.
In an attached background session,
Left detaches and returns you to agent view, even while the answer is still arriving. The side question keeps running while you’re away. The next time you attach to the session, the overlay reopens with the side question, or with its answer. Before v2.1.257, Left didn’t detach there.
/btw sees your full conversation but has no tools. A subagent has tools and starts from the prompt it receives, or, for a fork, from a copy of this conversation. Use /btw to ask about what Claude already knows from this session; use a subagent to go find out something new.
Task list
The task list is Claude’s to-do checklist: items Claude created to plan multi-step work, with indicators showing what’s pending, in progress, or complete. It’s separate from the background-task view. To see running shells and subagents, use/tasks instead.
On Opus 4.8, Sonnet 5, Fable 5, Mythos 5, and later versions of those families, Claude keeps track of multi-step work without a written checklist, and Claude Code doesn’t provide the tools that fill this list, so it stays empty. If you’d like the task list on those models anyway, opt in with CLAUDE_CODE_ENABLE_TODO_TOOLS=1 or one of the other ways under Task tool availability. On earlier models such as Opus 4.7, and after you opt in, the task list works as follows:
- Press
Ctrl+Tto toggle the task list view. The display shows up to five tasks at a time. When Claude hasn’t created any checklist items yet, the toggle has no visible effect because there’s nothing to display - If you leave the list expanded, Claude Code restores the expanded view the next time you launch into a session that still has tasks, such as with
--resumeor--continue. When the task list is empty, Claude Code starts it collapsed - To see all tasks or clear them, ask Claude directly: “show me all tasks” or “clear all tasks”
- Tasks persist across context compactions, helping Claude stay organized on larger projects
- To share a task list across sessions, set
CLAUDE_CODE_TASK_LIST_IDto use a named directory in~/.claude/tasks/:CLAUDE_CODE_TASK_LIST_ID=my-project claude
Session recap
When you return to the terminal after stepping away, Claude Code shows a one-line recap of what happened in the session so far. The recap generates in the background once at least three minutes have passed since the last completed turn and the terminal is unfocused, so it’s ready when you switch back. Recaps only appear once the session has at least three turns, and never twice in a row. Run/recap to generate a summary on demand. Claude Code caps both automatic recaps and /recap output at 400 characters. To turn automatic recaps off, open /config and turn off Session recap.
Session recap is on by default for every plan and provider. The recap is always skipped in non-interactive mode.
Wait for a usage limit to reset
When a claude.ai usage limit stops Claude mid-task, Claude Code waits in the open session and continues the task on its own after the limit resets. Automatic continue is on by default in interactive sessions signed in with a claude.ai subscription. Requires Claude Code v2.1.234 or later. While Claude Code waits, a line at the bottom of the session shows when it will continue:- At the reset: the line reads
continuing shortly, thenUsage limit reset · continuing automatically, and Claude Code sends Claude a fixed prompt to pick the task up where it stopped. It doesn’t resend your last message. - After your computer slept: if it slept for more than about 30 minutes and the limit reset while it slept, the line reads
Your usage limit has reset · press enter to continue. PressEnterto continue. After a shorter sleep, Claude Code continues on its own. - Early: when you finish adding usage credits with
/usage-credits, sign back in after/upgrade, or switch models with/modelduring the wait, Claude Code checks whether usage is available again and continues right away if it is. It doesn’t check after an upgrade or purchase you make in a browser on your own. Underopusplanand other model settings that run plan mode on a different model, Claude Code waits for the reset instead.
Automatic continue stopped after repeated usage-limit hits · /rate-limit-options to try again.
Cancel the wait
PressEsc at an empty prompt, or Ctrl+C, while the line shows, or run /rate-limit-options and pick Don’t continue automatically. Claude Code confirms with a line that starts Automatic continue cancelled.
After a cancel, nothing continues until you send a prompt or pick the row that starts Wait here, then continue automatically from /rate-limit-options again. Claude Code doesn’t start a wait on its own again for that reset window; the next reset window starts fresh.
The wait also ends without continuing the task in these cases:
- You send a prompt: Claude Code runs your prompt instead of waiting.
- You exit Claude Code: the wait doesn’t restart when you resume the session.
- The conversation changes hands: you switch accounts with
/login, clear or rewind the conversation,/resumeanother session, pull one with/teleport, relaunch with/tui, or hand the session to Claude Desktop, a background session, or the cloud. - The setting turns off, or the reset moves past 24 hours: this ends only a wait Claude Code started on its own. A wait you picked from
/rate-limit-optionskeeps counting down. - The continuation is blocked: a
UserPromptSubmithook that blocks the continuation prompt, or a failure before it reaches the model, ends the wait. Claude Code tells you the continuation didn’t run. Send a prompt to continue.
Start a wait yourself
Claude Code doesn’t start the wait on its own in these cases:- Remote Control and agent team teammate sessions: a person at that terminal can still start one.
- A reset more than 24 hours away: a weekly limit can reset days out.
- An Opus or Sonnet limit while you run a model outside that family: your next turn may not hit that limit.
opusplanand other model settings that run plan mode on the limited family don’t get this exception.
/rate-limit-options yourself to open the menu.
Claude Code doesn’t offer the wait at all in these cases:
- Background sessions and
-pruns: the menu row isn’t available. - API keys, cloud providers, and usage-based billing: usage there is metered per request, so there is no reset to wait for.
- An LLM gateway without a saved claude.ai login: Claude Code offers the wait only while a saved claude.ai login is the active credential.
Turn automatic continue off
In/config, turn off Continue automatically at usage limit, or set autoContinueAtUsageLimit to false in your user settings. /config autoContinueAtUsageLimit=false also works, including with -p, but the key=value form can’t turn it back on, because the setting grants unattended execution. Which settings files Claude Code reads for this key is in the settings reference.
PR review status
When working on a branch with an open pull request, Claude Code displays a clickable PR link in the footer, such as “PR #446”. The link has a colored underline indicating the review state:- Green: approved
- Yellow: pending review
- Red: changes requested
- Gray: draft
Cmd+click (macOS) or Ctrl+click (Windows/Linux) the link to open the pull request in your browser.
The status refreshes as soon as a git push, or a gh pr command that changes the pull request, such as gh pr create or gh pr merge, succeeds in the session.
Claude Code renders the badge as a hyperlink even when it can’t detect hyperlink support in your terminal, which commonly happens over SSH or in tmux. Set FORCE_HYPERLINK=0 to render the badge as plain text.
When you set CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC, Claude Code doesn’t check pull request or merge request status.
PR status for GitHub repositories needs a GitHub token. Claude Code finds one based on the remote’s host:
- github.com:
GH_TOKENorGITHUB_TOKEN, or the token saved bygh auth login. Without one, the footer showsinstall gh for PR statuswhen theghCLI isn’t installed, orgh auth login for PR statuswhen it is - A GitHub Enterprise host set as
GH_HOST:GH_ENTERPRISE_TOKENorGITHUB_ENTERPRISE_TOKEN, or the token saved bygh auth login --hostname <host>. Without one, the footer shows the same hints - Any other GitHub host: the token saved by
gh auth login --hostname <host>. Without one, Claude Code shows no badge and no hint
GitLab merge requests
When you work on a branch with an open GitLab merge request, Claude Code shows a clickableMR !N badge in the footer slot that otherwise holds the GitHub PR link. !N is GitLab’s own reference syntax for merge request number N. The colored underline shows the merge request’s state:
- Green: GitLab reports the merge request as mergeable
- Yellow: any other open state
- Gray: draft
git push, or a glab mr command that changes the merge request, such as glab mr create or glab mr merge, succeeds in the session.
To get the badge, you need:
- Claude Code v2.1.234 or later
- A repository remote that points at your GitLab host, either gitlab.com or a self-managed instance
- The
glabCLI on yourPATH, authenticated withglab auth login
glab’s token environment variables, such as GITLAB_TOKEN, when it checks status, so you get no badge from an exported token alone. Claude Code also looks for glab and for its login once per session, so restart Claude Code after you install glab or run glab auth login.
Issue reference links
When Claude mentions an issue asowner/repo#123, you can click the reference to open it, as long as your terminal supports hyperlinks. If Claude Code doesn’t detect hyperlink support in your terminal, set FORCE_HYPERLINK to 1 to turn the links on, or to 0 to keep references as plain text.
You get a link only for the two-part owner/repo#123 form. These stay plain text:
- A bare
#123 - A nested GitLab path such as
group/subgroup/project#123 - Any reference inside a code span or code block
See also
- Skills - Custom prompts and workflows
- Checkpointing - Rewind Claude’s edits and restore previous states
- CLI reference - Command-line flags and options
- Settings - Configuration options
- Memory management - Managing CLAUDE.md files