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 Commands | Description | Example |
|---|---|---|
/init | Initialize AGENTS.md | /init |
/memory | Manage project memory | /memory |
/resume | Resume a past conversation | /resume |
/share | Share conversation | /share |
/unshare | Stop sharing | /unshare |
/taste | Manage taste learning | /taste |
/model | Switch between Command Code models | /model |
/clear | Clear conversation history | /clear |
/agents | Manage agents | /agents |
/compact | Compact conversation history | /compact |
/help | Show commands | /help |
/exit | Exit session | /exit |
List of the shortcuts that are available during interactive sessions:
| Shortcut | Description | Notes |
|---|---|---|
/ at start | Slash command | See slash commands |
! at start | Bash mode | Run commands directly and add execution output to the session |
@ | File path mention | Trigger file path autocomplete |
List of keyboard shortcuts available in interactive mode:
| Shortcut | Description | Notes |
|---|---|---|
Ctrl+G | Open in external editor | Edit in $EDITOR. See setting up your editor. |
Alt+P | Quick model switch | Switch between models (Option+P on macOS) |
Ctrl+C | Cancel / Exit | Press once to cancel, twice to exit |
Ctrl+J | New line | Insert 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 Codevim- Vimnano- Nanoemacs- Emacssubl- Sublime Textatom- Atom