Skip to content

Command Reference

This document lists all available commands in Carry Code.


Type / in the input area to open the command menu. Here are all available commands:

CommandDescriptionExample
/modelSwitch, add, or edit AI models/model add
/mcpManage MCP servers/mcp add
/skillLoad or manage skills/skill
/ruleSelect project rules/rule
/themeSwitch themes/theme dark
/languageSwitch interface language/language
/approvalSet approval mode/approval agent
/sessionManage sessions/session new
/compactCompress current session context/compact
/updateCheck and install updates/update
/exitExit the program/exit

/model add

Follow the prompts to add a new AI model.

/model

Select the model you want to use.

/model edit

Modify existing model configuration.

/model delete <model-name>

Delete the specified model.

/model

Displays current model information.


/mcp

Displays all configured MCP servers.

/mcp add

Follow the prompts to add a new MCP server.

/mcp edit <server-name>

Modify MCP server configuration.

/mcp delete <server-name>

Delete the specified MCP server.

/mcp test <server-name>

Test MCP server connection.


/skill

Displays list of all available skills.

/skill <skill-name>

Load the specified skill.

/skill reload

Reload skill list (used after adding new skills).


/rule

Displays list of all available rules.

/rule <rule-name>

Select the specified rule.


/theme CodeHighlight

Select code highlight theme.

/theme CodeDiffPreview

Select code diff preview theme.

/theme light
/theme dark

Quickly switch to light or dark theme.


/language

Select interface language (Chinese/English).


/approval <mode>

Available modes:

  • read-only - Read-only mode
  • agent - Agent mode (default)
  • agent-full - Full mode

/session

Displays list of all sessions.

/session new

Create a new blank session.

/session switch <session-name>

Switch to the specified session.

/session delete <session-name>

Delete the specified session.

/session rename <old-name> <new-name>

Rename a session.


/compact

Compress the current session context to save token space.


/update

Check and install the latest version.


/exit

Exit Carry Code.


ShortcutAction
EnterSend message
Shift + EnterNew line (multi-line input)
/ Browse message history
/ Move cursor
ShortcutAction
Shift + TabSwitch Build/Plan mode
ShortcutAction
Ctrl + CInterrupt AI response
Ctrl + DExit the program

Terminal window
carry # Interactive mode
carry --once "xxx" # One-shot mode
ArgumentDescription
--onceOne-shot execution mode
--timeout-msTimeout in milliseconds
--helpShow help information

Type / then press Tab to auto-complete commands.

Press / to browse previously used commands.

  • /theme dark - Quick switch to dark theme
  • /approval read-only - Quick switch to read-only mode