Use slash commands (also known as Commands) to control the behavior of Qoder CN CLI and quickly trigger specific tasks.
Commands are shortcuts in Qoder CN CLI for triggering specific tasks, prefixed with the slash symbol (
Headless mode supports executing commands that submit prompts. Commands that need to open an interactive selector or dialog should be used in TUI mode.
Commands in Qoder CN CLI fall into two types:
Qoder CN CLI supports creating Prompt-type custom commands. You define the command's name, description, and system prompt through a configuration file.
Use the built-in AI-assisted feature in the TUI to quickly generate command configurations:
Directly write a Markdown-format command configuration file to have full control over the command's prompt content.
The command configuration file is in Markdown format, containing frontmatter metadata and a system prompt:
Field descriptions:
Naming conventions:
The following is an example command configuration for generating a Git commit message:
Command configuration files can be stored in project-level or user-level directories:
Priority: If a command with the same name exists at both the project level and the user level, the project-level command takes precedence.
While Qoder CN CLI is running, after adding or modifying a command configuration file, run
Enter 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 custom command you created is not displayed or executed in the TUI
Solution:
Problem: The YAML format of the command configuration is incorrect
Solution:
/). In TUI mode, enter / to view the list of available commands and select one to execute.
Quick Start
Using Commands in TUI Mode
-
Start Qoder CN CLI to enter TUI mode:
-
Enter the
/character in the input box to view the list of available commands -
Select the target command and press Enter to execute it. For example, /config views or modifies the Qoder CN CLI configuration:
Using Commands in Headless Mode
Headless mode supports executing commands that submit prompts. Commands that need to open an interactive selector or dialog should be used in TUI mode.
Command Types
Commands in Qoder CN CLI fall into two types:
| Type | Description | Applicable Modes | Extensibility |
|---|---|---|---|
| TUI type | Provides an interactive interface (such as a pop-up dialog or list selection) | TUI | Built-in; does not support customization |
| Prompt type | Submits a preset prompt to the conversation to guide the CLI in completing a specific task | TUI + Headless | Supports user-defined extensions |
Built-in Commands
| Command | Type | Purpose |
|---|---|---|
/agents | TUI | View and manage the Subagent list; supports creating and editing Subagent configurations |
/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 and manage custom commands; supports creating and editing command configurations |
/compact | Prompt | Compress the conversation history; you can specify a focus |
/config | TUI | Configuration management; view or modify Qoder CN CLI configuration items |
/export [filename] | TUI | Export the current session to a file |
/feedback | TUI | Submit feedback or report issues |
/help | TUI | Show help information |
/init | TUI | Initialize the project, analyze the project structure, and generate the AGENTS.md memory file |
/login | TUI | Log in to your Qoder CN CLI account |
/logout | TUI | Log out of your Qoder CN CLI account |
/mcp | TUI | MCP service management |
/memory | TUI | Open the memory overview; when auto-memory is enabled, you can open the auto-memory folder, or use /memory manage to manage topic files . See Memory |
/model | TUI | View and manage model tier settings |
/effort [level] | TUI | Set the thinking depth of the current model; when no level is passed, the model parameter panel opens |
/context-window | TUI | Set the context window of the current model; when no parameter is passed, the model parameter panel opens |
/fast [on|off] | TUI | Toggle Fast mode for the current model; when no parameter is passed, the model parameter panel opens |
/quest | Prompt | Intelligent workflow orchestrator; multiple agents work together to help you complete feature development |
/quit | TUI | Exit Qoder CN CLI |
/release-notes | TUI | View release notes |
/resume | TUI | Resume a previous session or conversation history; supports paging between sessions with the Tab key |
/review | Prompt | Perform a code review to check code quality and compliance |
/setup-github | TUI | GitHub integration configuration; set up GitHub-related features |
/skills | TUI | Manage the Skill commands of the current workspace |
/status | TUI | View the current session status and system information |
/upgrade | TUI | Upgrade the subscription plan |
/usage | TUI | View usage statistics, including Token consumption and other information |
/vim | TUI | Enable or configure Vim mode for a Vim-style editing experience |
Creating Custom Commands
Qoder CN CLI supports creating Prompt-type custom commands. You define the command's name, description, and system prompt through a configuration file.
Method 1: AI-Assisted Generation (Recommended)
Use the built-in AI-assisted feature in the TUI to quickly generate command configurations:
-
Run
/commandsin the TUI to enter the command configuration panel - Press Tab to switch to the target tab (User or Project)
-
Use the up and down keys to select "Create new command..." and press Enter
-
In the input box, describe the command functionality you want to create, for example:
-
Qoder CN CLI automatically generates the command configuration file and saves it to the corresponding directory. After generation, you can find the configuration file to work with it:
Method 2: Manually Writing the Configuration (Advanced)
Directly write a Markdown-format command configuration file to have full control over the command's prompt content.
Configuration File Format
The command configuration file is in Markdown format, containing frontmatter metadata and a system prompt:
| Field | Required | Description |
|---|---|---|
name | Yes | The unique name of the command, used for /command-name invocation |
description | Yes | The functional description of the command; supports multi-line text (using YAML syntax) |
- Use lowercase letters and hyphens (for example,
git-commit) - Avoid spaces or special characters
- We recommend keeping the file name consistent with the
namefield - Commands in subdirectories use
:as the namespace separator; for example,commands/git/commit.mdis registered as/git:commitfrontmatter.nameis used only as the display name in the TUI; the command invocation name is always derived from the file path - If a
SKILL.mdexists in the same directory, that directory is registered as a single command (such as/git), and other sibling.mdfiles in the directory are ignored - Command name segments are preserved as-is without character substitution; we recommend consistently using easy-to-type characters in file names
Configuration Example
The following is an example command configuration for generating a Git commit message:
Storage Locations and Priority
Command configuration files can be stored in project-level or user-level directories:
| Level | Path | Scope | Committed to the Repository |
|---|---|---|---|
| Project-level | .qoder/commands/<command_name>.md | Current project only | Recommended (shared with the team) |
| User-level | ~/.qoder/commands/<command_name>.md | All projects | Not committed (personal configuration) |
/commands to reload and view the available commands.
Viewing and Using Custom Commands
Viewing Command Details
-
Run
/commandsin the TUI to enter the command configuration panel - Press Tab to switch to the target tab (User or Project)
-
Use the up and down keys to select the target command and press Enter to enter the command details page:
- Press Esc to exit the details page
Executing a Command
Enter the command name (starting with /) in the TUI input box, and the CLI automatically displays the list of matching commands:
FAQ
Custom Command Not Recognized
Problem: A custom command you created is not displayed or executed in the TUI
Solution:
- Check that the configuration file path is correct (
~/.qoder/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 then runqodercliagain)
Frontmatter Parsing Failed
Problem: The YAML format of the command configuration is incorrect
Solution:
- Make sure the frontmatter starts and ends with
--- - Use
|syntax to define a multi-linedescriptionfield - Check that the indentation is correct (YAML is sensitive to indentation)