Skip to content

Keyboard Shortcuts

✓ Fresh · 2026-02-24

Complete reference for all keyboard shortcuts and editor features in Pi.

Global Shortcuts

BindingAction
Ctrl+CClear the editor input
Ctrl+C (twice)Quit Pi entirely
EscapeCancel / abort current operation
Escape (twice)Open /tree session navigator
Ctrl+LOpen model selector
Ctrl+PCycle to next scoped model
Shift+Ctrl+PCycle to previous scoped model
Shift+TabCycle through thinking levels
Ctrl+OCollapse / expand tool output
Ctrl+TCollapse / expand thinking blocks

Editor Features

File References with @

Type @ in the editor to trigger fuzzy file search. Pi scans the current project directory and lets you select files to include as context:

@src/index.ts    # reference a specific file
@package.json    # include config files

Tab completes partial file paths.

Multiline Input

PlatformShortcut
macOS / LinuxShift+Enter
Windows TerminalCtrl+Enter

Image Input

  • Ctrl+V to paste images from clipboard
  • Drag and drop image files into the terminal (supported terminals)

Shell Commands

Execute bash commands directly from the Pi editor:

SyntaxBehavior
!commandRun command, send output to the LLM as context
!!commandRun command, display output but do NOT send to LLM

Examples:

!git status          # runs git status, sends output to LLM
!!cat package.json   # shows file contents without sending to LLM
!ls -la src/         # list directory, LLM sees the output

Message Queue Shortcuts

While the agent is actively working, you can queue messages:

BindingAction
EnterSubmit a steering message (interrupts after current tool)
Alt+EnterSubmit a follow-up message (delivered when agent finishes)
EscapeAbort and restore queued messages to editor
Alt+UpRetrieve queued messages back to editor

See Message Queue for full details.

Customizing Keybindings

Override any keybinding by editing:

~/.pi/agent/keybindings.json

The file maps key combinations to actions. Changes take effect after restarting Pi or running /reload.

Pi Coding Agent SOP Documentation