Skip to main content

Interactive Mode

Official reference for keyboard shortcuts, input modes, built-in commands, and interactive features in Claude Code sessions. Source: https://code.claude.com/docs/en/interactive-mode.md Added: 2026-01-29


Keyboard Shortcuts

General Controls

ShortcutDescription
Ctrl+CCancel current input or generation
Ctrl+DExit session
Ctrl+GOpen in default text editor
Ctrl+LClear terminal screen (keeps history)
Ctrl+OToggle verbose output
Ctrl+RReverse search command history
Ctrl+V / Cmd+VPaste image from clipboard
Ctrl+BBackground running tasks (tmux: press twice)
Left/RightCycle dialog tabs
Up/DownNavigate command history
Esc + EscRewind code/conversation
Shift+Tab / Alt+MToggle permission modes
Option+P / Alt+PSwitch model
Option+T / Alt+TToggle extended thinking

Text Editing

ShortcutDescription
Ctrl+KDelete to end of line
Ctrl+UDelete entire line
Ctrl+YPaste deleted text
Alt+YCycle paste history
Alt+BBack one word
Alt+FForward one word

Multiline Input

MethodShortcut
Quick escape\ + Enter
macOS defaultOption+Enter
Shift+EnterWorks in iTerm2, WezTerm, Ghostty, Kitty
Control sequenceCtrl+J
Paste modePaste directly

Quick Commands

PrefixDescription
/Command or skill
!Bash mode (run directly)
@File path mention

Built-in Commands

CommandPurpose
/clearClear conversation history
/compact [instructions]Compact with optional focus
/configSettings interface
/contextVisualize context usage
/costToken usage statistics
/doctorInstallation health check
/exitExit REPL
/export [filename]Export conversation
/helpUsage help
/initInitialize CLAUDE.md
/mcpManage MCP servers
/memoryEdit CLAUDE.md files
/modelSelect model
/permissionsView/update permissions
/planEnter plan mode
/rename <name>Rename session
/resume [session]Resume conversation
/rewindRewind conversation/code
/statsDaily usage, streaks, model preferences
/statusVersion, model, account, connectivity
/statuslineStatus line UI setup
/copyCopy last response to clipboard
/tasksList background tasks
/teleportResume remote session
/themeChange color theme
/todosList TODO items
/usagePlan usage limits and rate limits

Vim Editor Mode

Enable with /vim or permanently via /config.

Mode Switching

  • Esc → NORMAL mode
  • i/I/a/A/o/O → INSERT mode

h/j/k/l, w/e/b, 0/$, ^, gg/G, f/F/t/T, ;/,

Editing (NORMAL)

x, dd/D, dw/de/db, cc/C, cw/ce/cb, yy/Y, yw/ye/yb, p/P, >>/<<, J, .

Text Objects

iw/aw, iW/aW, i"/a", i'/a', i(/a(, i[/a[, i{/a{


Background Bash Commands

Commands can run asynchronously while you continue working.

  • Prompt Claude to "run in the background"
  • Press Ctrl+B to background a running command
  • Output buffered, retrieved via TaskOutput tool
  • Cleaned up when Claude Code exits

Bash Mode (! prefix)

! npm test
! git status

Adds command + output to conversation context without Claude interpreting it.


Task List

Claude creates task lists for complex, multi-step work.

  • Ctrl+T to toggle view (up to 10 tasks)
  • Tasks persist across context compactions
  • CLAUDE_CODE_TASK_LIST_ID=my-project claude for shared task list
  • CLAUDE_CODE_ENABLE_TASKS=false to revert to TODO list

PR Review Status

Clickable PR link in footer with colored underline:

  • Green: approved
  • Yellow: pending review
  • Red: changes requested
  • Gray: draft

Updates every 60 seconds. Requires gh CLI.