Interactive Mode

This page provides a complete reference for the Command Code's interactive mode.


List of the main interactive slash commands and their descriptions.

Slash CommandsDescriptionExample
/initInitialize AGENTS.md/init
/memoryManage project memory/memory
/resumeResume a past conversation/resume
/shareShare conversation/share
/unshareStop sharing/unshare
/tasteManage taste learning/taste
/modelSwitch between Command Code models/model
/clearClear conversation history/clear
/agentsManage agents/agents
/compactCompact conversation history/compact
/helpShow commands/help
/exitExit session/exit

List of the shortcuts that are available during interactive sessions:

ShortcutDescriptionNotes
/ at startSlash commandSee slash commands
! at startBash modeRun commands directly and add execution output to the session
@File path mentionTrigger file path autocomplete

List of keyboard shortcuts available in interactive mode:

ShortcutDescriptionNotes
Ctrl+GOpen in external editorEdit in $EDITOR. See setting up your editor.
Alt+PQuick model switchSwitch between models (Option+P on macOS)
Ctrl+CCancel / ExitPress once to cancel, twice to exit
Ctrl+JNew lineInsert newline in multi-line 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