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 Command | Description | Context |
|---|---|---|
/init | Initialize AGENTS.md for this project | Project setup |
/memory | Manage Command Code memory | Memory management |
/resume | Resume a past conversation | Session recovery |
/rewind | Restore to a previous checkpoint (Press Esc twice) | Session control |
/clear | Clear the conversation history | Session reset |
/share | Share conversation (copy link to clipboard) | Collaboration |
/unshare | Stop sharing conversation | Collaboration |
/taste | Manage taste learning and usage | Taste management |
/learn-taste | Learn taste from sessions with other coding agents | Reinforcement |
/skills | Browse and open agent skills | Agent skill execution |
/agents | Manage agent configurations | Agent control |
/mcp | Manage MCP server connections | External servers |
/model | Switch between Command Code models | Model selection |
/provider | Select AI provider (Command Code or Anthropic) | Provider selection |
/compact | Compact (compress) the conversation history | Context management |
/ide | Setup extension to fetch editor context | Editor context |
/login | Authenticate with Command Code via browser | Auth |
/logout | Remove stored authentication | Auth |
/feedback [title] | Share feedback or report bugs (optional title) | Reporting /feedback "MCP bug" |
/add-dir | Manage additional directory scope | File access |
/help | Display help information | Reference |
/exit | Exit the REPL | Session termination |
List of the shortcuts that are available during interactive sessions:
| Shortcut | Description | Context |
|---|---|---|
/ at start | Slash command | Command discovery |
! at start | Bash mode | Run commands directly and add execution output to the session |
@ | File path mention | Trigger file path autocomplete |
Keyboard shortcuts available in interactive mode:
| Shortcut | Description | Context |
|---|---|---|
Shift+Tab | Cycle permission mode | Cycles through: default → auto-accept → plan. |
Ctrl+T | Toggle learning feed | Show or hide the learning feed. |
Ctrl+O | Toggle expanded tool output | Use Shift+O in iTerm2. |
Alt+P | Quick model switch | Option+P on macOS. |
Ctrl+G | Open input in external editor ($EDITOR) | See setting up your editor. |
Press Esc twice | Rewind to previous checkpoint | Same behavior as /rewind. |
/ | Open command menu | Type 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 Codevim- Vimnano- Nanoemacs- Emacssubl- Sublime Textatom- Atom