Command Reference
This document lists all available commands in Carry Code.
Slash Commands
Section titled “Slash Commands”Type / in the input area to open the command menu. Here are all available commands:
| Command | Description | Example |
|---|---|---|
/model | Switch, add, or edit AI models | /model add |
/mcp | Manage MCP servers | /mcp add |
/skill | Load or manage skills | /skill |
/rule | Select project rules | /rule |
/theme | Switch themes | /theme dark |
/language | Switch interface language | /language |
/approval | Set approval mode | /approval agent |
/session | Manage sessions | /session new |
/compact | Compress current session context | /compact |
/update | Check and install updates | /update |
/exit | Exit the program | /exit |
Detailed Command Descriptions
Section titled “Detailed Command Descriptions”/model - AI Model Management
Section titled “/model - AI Model Management”Add New Model
Section titled “Add New Model”/model addFollow the prompts to add a new AI model.
Switch Model
Section titled “Switch Model”/modelSelect the model you want to use.
Edit Model
Section titled “Edit Model”/model editModify existing model configuration.
Delete Model
Section titled “Delete Model”/model delete <model-name>Delete the specified model.
View Current Model
Section titled “View Current Model”/modelDisplays current model information.
/mcp - MCP Server Management
Section titled “/mcp - MCP Server Management”View All MCP Servers
Section titled “View All MCP Servers”/mcpDisplays all configured MCP servers.
Add MCP Server
Section titled “Add MCP Server”/mcp addFollow the prompts to add a new MCP server.
Edit MCP Server
Section titled “Edit MCP Server”/mcp edit <server-name>Modify MCP server configuration.
Delete MCP Server
Section titled “Delete MCP Server”/mcp delete <server-name>Delete the specified MCP server.
Test Connection
Section titled “Test Connection”/mcp test <server-name>Test MCP server connection.
/skill - Skill Management
Section titled “/skill - Skill Management”View Available Skills
Section titled “View Available Skills”/skillDisplays list of all available skills.
Load Skill
Section titled “Load Skill”/skill <skill-name>Load the specified skill.
Reload Skills
Section titled “Reload Skills”/skill reloadReload skill list (used after adding new skills).
/rule - Rule Management
Section titled “/rule - Rule Management”View Available Rules
Section titled “View Available Rules”/ruleDisplays list of all available rules.
Select Rule
Section titled “Select Rule”/rule <rule-name>Select the specified rule.
/theme - Theme Switching
Section titled “/theme - Theme Switching”Switch Code Highlight Theme
Section titled “Switch Code Highlight Theme”/theme CodeHighlightSelect code highlight theme.
Switch Diff Preview Theme
Section titled “Switch Diff Preview Theme”/theme CodeDiffPreviewSelect code diff preview theme.
Quick Switch Light/Dark
Section titled “Quick Switch Light/Dark”/theme light/theme darkQuickly switch to light or dark theme.
/language - Language Switching
Section titled “/language - Language Switching”Switch Interface Language
Section titled “Switch Interface Language”/languageSelect interface language (Chinese/English).
/approval - Approval Mode
Section titled “/approval - Approval Mode”Set Approval Mode
Section titled “Set Approval Mode”/approval <mode>Available modes:
read-only- Read-only modeagent- Agent mode (default)agent-full- Full mode
/session - Session Management
Section titled “/session - Session Management”View All Sessions
Section titled “View All Sessions”/sessionDisplays list of all sessions.
Create New Session
Section titled “Create New Session”/session newCreate a new blank session.
Switch Session
Section titled “Switch Session”/session switch <session-name>Switch to the specified session.
Delete Session
Section titled “Delete Session”/session delete <session-name>Delete the specified session.
Rename Session
Section titled “Rename Session”/session rename <old-name> <new-name>Rename a session.
/compact - Context Compression
Section titled “/compact - Context Compression”Compress Session Context
Section titled “Compress Session Context”/compactCompress the current session context to save token space.
/update - Version Update
Section titled “/update - Version Update”Check for Updates
Section titled “Check for Updates”/updateCheck and install the latest version.
/exit - Exit
Section titled “/exit - Exit”Exit Program
Section titled “Exit Program”/exitExit Carry Code.
Keyboard Shortcuts
Section titled “Keyboard Shortcuts”Basic Operations
Section titled “Basic Operations”| Shortcut | Action |
|---|---|
Enter | Send message |
Shift + Enter | New line (multi-line input) |
↑ / ↓ | Browse message history |
← / → | Move cursor |
Mode Switching
Section titled “Mode Switching”| Shortcut | Action |
|---|---|
Shift + Tab | Switch Build/Plan mode |
Interrupt & Exit
Section titled “Interrupt & Exit”| Shortcut | Action |
|---|---|
Ctrl + C | Interrupt AI response |
Ctrl + D | Exit the program |
Command Line Arguments
Section titled “Command Line Arguments”Start Modes
Section titled “Start Modes”carry # Interactive modecarry --once "xxx" # One-shot modeArguments
Section titled “Arguments”| Argument | Description |
|---|---|
--once | One-shot execution mode |
--timeout-ms | Timeout in milliseconds |
--help | Show help information |
Usage Tips
Section titled “Usage Tips”1. Command Completion
Section titled “1. Command Completion”Type / then press Tab to auto-complete commands.
2. Command History
Section titled “2. Command History”Press ↑ / ↓ to browse previously used commands.
3. Quick Switch
Section titled “3. Quick Switch”/theme dark- Quick switch to dark theme/approval read-only- Quick switch to read-only mode
Next Steps
Section titled “Next Steps”- FAQ - More help
- Troubleshooting - Solve problems