Interactive Mode

This page provides a complete reference for keyboard shortcuts, input modes, and interactive features in Command Code sessions.


Built-in slash commands available in interactive mode. Type / to open the command menu.

Slash CommandDescriptionContext
/initInitialize AGENTS.md for this projectProject setup
/memoryManage Command Code memoryMemory management
/resumeResume a past conversationSession recovery
/rewindRestore to a previous checkpoint (Press Esc twice)Session control
/clearClear the conversation historySession reset
/shareShare conversation (copy link to clipboard)Collaboration
/unshareStop sharing conversationCollaboration
/tasteManage taste learning and usageTaste management
/learn-tasteLearn taste from sessions with other coding agentsReinforcement
/skillsBrowse and open agent skillsAgent skill execution
/agentsManage agent configurationsAgent control
/mcpManage MCP server connectionsExternal servers
/modelSwitch between Command Code modelsModel selection
/providerSelect AI provider (Command Code or Anthropic)Provider selection
/compactCompact (compress) the conversation historyContext management
/ideSetup extension to fetch editor contextEditor context
/loginAuthenticate with Command Code via browserAuth
/logoutRemove stored authenticationAuth
/feedback [title]Share feedback or report bugs (optional title)Reporting /feedback "MCP bug"
/add-dirManage additional directory scopeFile access
/helpDisplay help informationReference
/exitExit the REPLSession termination

List of the shortcuts that are available during interactive sessions:

ShortcutDescriptionContext
/ at startSlash commandCommand discovery
! at startBash modeRun commands directly and add execution output to the session
@File path mentionTrigger file path autocomplete

Keyboard shortcuts available in interactive mode:

ShortcutDescriptionContext
Shift+TabCycle permission modeCycles through: default → auto-accept → plan.
Ctrl+TToggle learning feedShow or hide the learning feed.
Ctrl+OToggle expanded tool outputUse Shift+O in iTerm2.
Alt+PQuick model switchOption+P on macOS.
Ctrl+GOpen input in external editor ($EDITOR)See setting up your editor.
Press Esc twiceRewind to previous checkpointSame behavior as /rewind.
/Open command menuType at the start of input.

Command Code uses the $EDITOR environment variable to open files. This is used by features like Ctrl+G and the /skills command.

Configure $EDITOR

Add the EDITOR environment variable to your shell configuration file, then restart your terminal or source the file.

macOS/Linux (bash)

# Add to ~/.bashrc and reload echo 'export EDITOR="code"' >> ~/.bashrc source ~/.bashrc

macOS (zsh)

# Add to ~/.zshrc and reload echo 'export EDITOR="code"' >> ~/.zshrc source ~/.zshrc

Windows (PowerShell)

# Set permanently (restart terminal after) setx EDITOR "code"

Common editors:

  • code - Visual Studio Code
  • vim - Vim
  • nano - Nano
  • emacs - Emacs
  • subl - Sublime Text
  • atom - Atom