Control Qoder CLI CN, invoke features, and manage sessions quickly with slash commands
Control Qoder CLI CN's behavior and quickly invoke specific tasks through slash commands (also just called Commands).
A command is a shortcut for invoking a specific task in Qoder CLI CN, triggered by the slash (
Headless mode supports commands that submit a prompt. Commands that open interactive pickers or dialogs should be used in TUI mode.
Commands in Qoder CLI CN come in two types:
The table below lists common built-in commands; for the complete list, categories, and aliases, refer to Slash Commands.
Qoder CLI CN supports creating Prompt-type custom commands, defining the command's name, description, and system prompt via a configuration file.
Describe the command you want directly in the conversation, and let Qoder generate it in the configuration file format and write it to the right directory. For example:
Once generated, you can find and edit the configuration file in these directories:
Write the command configuration file in Markdown directly, giving you full control over the command's prompt content.
A command configuration file is Markdown, containing frontmatter metadata and the system prompt:
Fields:
Naming conventions:
Here is an example command configuration for generating Git commit messages:
Command configuration files can live in project-level or user-level directories:
Precedence: if a command with the same name exists at both project and user levels, the user-level (
Type the command name (starting with
Press Enter to send the command, and the CLI starts executing the task according to the system prompt in the command configuration:
Problem: a created custom command does not show up or run in the TUI
Solutions:
Problem: the command configuration's YAML format is incorrect
Solutions:
/) prefix. In TUI mode, type / to see the list of available commands and pick one to run.
Quick start
Using commands in TUI mode
-
Launch Qoder CLI CN to enter TUI mode:
-
Type the
/character in the input box to see the list of available commands -
Select the target command and press Enter to run it — for example, /config to view or modify Qoder CLI CN settings:
Using commands in headless mode
Headless mode supports commands that submit a prompt. Commands that open interactive pickers or dialogs should be used in TUI mode.
Command types
Commands in Qoder CLI CN come in two types:
| Type | Description | Applicable modes | Extensibility |
|---|---|---|---|
| TUI type | Provides an interactive interface (dialogs, list pickers) | TUI | Built-in; not customizable |
| Prompt type | Submits a preset prompt into the conversation to guide the CLI through a specific task | TUI + Headless | Supports user-defined extension |
Built-in commands
The table below lists common built-in commands; for the complete list, categories, and aliases, refer to Slash Commands.
| Command | Type | Purpose |
|---|---|---|
/agents | TUI | View and manage the Subagent list; supports creating and editing Subagent configuration |
/tasks | TUI | View and manage background tasks |
/workflows | TUI | Open the dynamic workflow task panel. See Dynamic Workflows |
/clear | TUI | Clear the current conversation and start a new one |
/commands | TUI | View the list of available commands, browsable by category: built-in, dynamic, Skill, plugin, workflow, etc. |
/compact | Prompt | Compress the conversation history, optionally with a focus |
/settings (alias /config) | TUI | Configuration management: view or modify Qoder CLI CN settings |
/export [filename] | TUI | Export the current session to a file |
/feedback | TUI | Submit feedback or report a problem |
/help | TUI | Show help |
/init | TUI | Initialize the project: analyze the project structure and generate the AGENTS.md memory file |
/login | TUI | Sign in to your Qoder CLI CN account |
/logout | TUI | Sign out of your Qoder CLI CN account |
/mcp | TUI | MCP service management |
/memory | TUI | Open the memory overview; with auto-memory enabled, open the auto-memory folder or manage topic files via /memory manage |
/model | TUI | View and manage model-level settings |
/effort [level] | TUI | Set the current model's reasoning effort; opens the model parameter panel without a level |
/context-window | TUI | Set the current model's context window; opens the model parameter panel without arguments |
/fast [on|off] | TUI | Toggle the current model's fast mode; opens the model parameter panel without arguments |
/quest | Prompt | Smart workflow orchestrator where multiple agents collaborate to help you complete feature development |
/quit | TUI | Exit Qoder CLI CN |
/release-notes | TUI | View release notes |
/resume | TUI | Resume previous sessions or conversation history; Tab switches between session pages |
/review | Prompt | Run a code review checking quality and standards compliance |
/skills | TUI | Manage Skill commands for the current workspace |
/status | TUI | View current session status and system information |
/upgrade | TUI | Upgrade your subscription plan |
/usage | TUI | View usage statistics, including token consumption |
/vim | TUI | Enable or configure Vim mode for a Vim-style editing experience |
Creating custom commands
Qoder CLI CN supports creating Prompt-type custom commands, defining the command's name, description, and system prompt via a configuration file.
Option 1: Let Qoder generate it (recommended)
Describe the command you want directly in the conversation, and let Qoder generate it in the configuration file format and write it to the right directory. For example:
The
/commands panel is for browsing the currently available commands by category (built-in, dynamic, Skill, plugin, workflow, etc.); it does not provide a creation entry.Option 2: Write the configuration manually
Write the command configuration file in Markdown directly, giving you full control over the command's prompt content.
Configuration file format
A command configuration file is Markdown, containing frontmatter metadata and the system prompt:
| Field | Required | Description |
|---|---|---|
name | No | Display name in the TUI; the invocation name is derived from the file path and is not affected by this field |
description | Yes | Description of the command; multi-line text supported (using YAML syntax) |
- Use lowercase letters and hyphens (for example
git-commit) - Avoid spaces and special characters
- Keep the file name consistent with the
namefield where possible - Commands in subdirectories use
:as the namespace separator; for examplecommands/git/commit.mdregisters as/git:commit frontmatter.nameis only the display name in the TUI; the invocation name is always derived from the file path- If a
SKILL.mdexists in a directory, that directory registers as a single command (such as/git), and other sibling.mdfiles in it are ignored - Command name segments are kept verbatim with no character substitution; stick to easy-to-type characters in file names
Configuration example
Here is an example command configuration for generating Git commit messages:
Storage locations and precedence
Command configuration files can live in project-level or user-level directories:
| Level | Path | Scope | Commit to the repository |
|---|---|---|---|
| Project | .qoder/commands/<command_name>.md | Current project only | Recommended (team sharing) |
| User | ~/.qoder-cn/commands/<command_name>.md | All projects | Do not commit (personal configuration) |
~/.qoder-cn/commands/) command takes effect and overrides the project-level one; overridden definitions are listed under Also defined at in the command details.
With Qoder CLI CN already running, after adding or modifying a command configuration file, run /commands to reload and view the available commands.
Viewing and using custom commands
Viewing the command list
- Run
/commandsin the TUI to open the command list panel - Switch between category tabs with the Tab key (Built-in, Dynamic, Skill, Plugin, Workflow, etc.; only categories that contain commands are shown, with counts on the tabs)
- Browse with the up/down keys; the list shows each command's name and description; custom commands fall under the Dynamic category
- Press Esc to exit the panel
.md file under .qoder/commands/ or ~/.qoder-cn/commands/).
Running commands
Type the command name (starting with /) in the TUI input box, and the CLI automatically shows the matching command list:
FAQ
Custom command not recognized
Problem: a created custom command does not show up or run in the TUI
Solutions:
- Check that the configuration file path is correct (
~/.qoder-cn/commands/or.qoder/commands/) - Check that the frontmatter format is correct (starts and ends with
---) - Run
/commandsto reload the command list. If it is still not recognized, restart the CLI (exit with/quitand runqodercnagain)
Frontmatter parsing failure
Problem: the command configuration's YAML format is incorrect
Solutions:
- Make sure the frontmatter starts and ends with
--- - Use the
|syntax for a multi-linedescriptionfield - Check the indentation (YAML is indentation-sensitive)