Skip to content

Keyboard Shortcuts

PanCode registers keyboard shortcuts for common operations. These work inside the PanCode tmux session.

ShortcutActionDescription
Shift+TabCycle modesRotates through Plan, Build, Review
Alt+AToggle AdminEnters or exits God Mode
Ctrl+YCycle safetyRotates through suggest, auto-edit, full-auto
Ctrl+DExitExit PanCode (Pi SDK built-in)
Ctrl+OExpand toolsExpand tool output display (Pi SDK built-in)
Ctrl+TToggle thinkingShow/hide reasoning output (Pi SDK built-in)

Shift+Tab cycles through the three standard modes in order:

Plan -> Build -> Review -> Plan -> ...

Admin mode is excluded from the cycle. Use Alt+A to toggle Admin independently.

Each mode switch:

  • Changes the active tool set (e.g., Build adds write/edit tools, Plan removes dispatch tools)
  • Adjusts the default reasoning level
  • Emits a mode transition message explaining the new mode’s capabilities
ModeDispatchFile MutationsReasoningColor
PlanDisabledNoHighPurple
BuildEnabledYesMediumGreen
ReviewEnabled (readonly only)NoExtra HighRed
AdminEnabledNoExtra HighBlue

Alt+A toggles Admin (God Mode). On entry:

  • Safety escalates to full-auto
  • Reasoning escalates to xhigh
  • Full tool set becomes available (dispatch, shadow, tasks, config)
  • File mutations remain disabled

On exit, safety and reasoning revert to their previous values. The mode returns to whatever was active before Admin was entered.

Ctrl+Y cycles safety levels:

suggest -> auto-edit -> full-auto -> suggest -> ...

The change takes effect immediately for all subsequent tool calls and dispatch operations.

These shortcuts are built into the Pi SDK and cannot be overridden:

ShortcutAction
Ctrl+DExit the application
Ctrl+OExpand tool output
Ctrl+TToggle thinking/reasoning visibility

PanCode auto-configures tmux extended-keys at session creation:

extended-keys = on
extended-keys-format = csi-u

This enables proper handling of Alt and Ctrl key combinations. If your tmux version does not support extended keys, some shortcuts may not function.

Every keyboard shortcut has a slash command equivalent:

ShortcutEquivalent Command
Shift+Tab/modes
Alt+A/modes admin
Ctrl+Y/safety
Ctrl+D/exit

The TUI footer displays available shortcuts:

ctrl+y:safety | shift+tab:mode | /dashboard | /reasoning