Skip to main content
Control Qoder CLI’s behavior during an interactive session with slash commands. Commands are shortcuts in Qoder CLI that trigger specific tasks, prefixed with a slash (/). Type / in TUI mode to view available commands and select one to execute.

Quick Start

In TUI mode:
  1. Start Qoder CLI:
    qodercli
    
  2. Type / to view the command list
  3. Select a command and press Enter to execute:
    /config
    
In Headless mode: Prompt-type commands (/init, /review, /quest) can be executed in Headless mode:
# Execute a command
qodercli -p '/review'

# Execute with additional instructions
qodercli -p '/review Focus on security vulnerabilities'

Command Types

Qoder CLI commands are divided into two types:
TypeDescriptionModeExtensibility
TUIProvides interactive UI (dialogs, list selection)TUIBuilt-in, not customizable
PromptSubmits preset prompts to guide CLI tasksTUI + HeadlessUser-customizable

Built-in Commands

CommandTypePurpose
/agentsTUIManage Subagent configurations
/bashesTUIList and manage background tasks
/clearTUIClear conversation history and free up context
/commandsTUIManage extend commands for current workspace
/compactPromptSummarize current session to compact the context, usage: /compact [instructions]
/configTUIManage Qoder CLI configurations
/export [filename]TUIExport current session to a file, usage: /export [filename]
/feedbackTUISubmit feedback about Qoder CLI, usage: /feedback content
/helpTUIShow help and available commands
/initPromptInitialize a new AGENTS.md`file with codebase documentation
/loginTUISign in with your Qoder account
/logoutTUISign out of your Qoder account
/mcpTUIList and manage mcp servers
/memoryTUIEdit memory files
/modelTUIList and manage settings of model level
/questPromptIntelligent workflow orchestrator that guides users through feature development using specialized subagents
/quitTUIQuit the program, equivalent to /exit
/release-notesTUIView release notes
/resumeTUIResume a previous conversation from history
/reviewPromptReview local pending git changes, usage: /review [instruction]
/setup-githubTUISet up Qoder GitHub Actions
/skillsTUIManage Skill commands for current workspace
/statusTUIShow Qoder CLI status
/upgradeTUIOpen browser to upgrade your Qoder account plan
/usageTUIShow current plan usage summary
/vimTUIOpen external editor for input

Creating Commands

Custom commands allow you to define frequently used prompts as Markdown files that Qoder CLI can execute. Commands are organized by scope (project-specific or personal). Use TUI’s built-in AI assistance to quickly generate command configurations:
  1. Run /commands in TUI to open the commands panel
  2. Press Tab to switch to User or Project tab
  3. Select “Create new command…” and press Enter
  4. Describe the command you want to create:
    > View all git changes and make a good commit
    
  5. Qoder CLI auto-generates the configuration file
  6. Find the generated file for fine-tuning:
    # Project level (Project tab)
    .qoder/commands/
    
    # User level (User tab)
    ~/.qoder/commands/
    

Method 2: Manual Configuration (Advanced)

Create Markdown configuration files directly for full control over command prompts.

Configuration Format

Command files use Markdown format with YAML frontmatter and a system prompt:
---
name: command-name
description: Brief description shown in command list
---

This is the system prompt content.
When a user executes this command, this prompt guides the CLI to complete the task.

Supports multi-line text and Markdown formatting.

Field Reference

FieldRequiredDescription
nameYesUnique command name for /command-name invocation
descriptionYesCommand description, supports multi-line with YAML syntax

Naming Conventions

  • Use lowercase letters and hyphens (e.g., git-commit)
  • Avoid spaces or special characters
  • Filename should match the name field

Example

A command for generating Git commit messages:
---
name: git-commit
description: Review all git changes and generate a well-structured commit message following conventional commit standards.
---

You are an expert Git commit message generator. Your role is to analyze all git changes in the repository and create clear, concise, and meaningful commit messages that follow conventional commit standards.

When analyzing changes, you will:
1. Examine all staged and unstaged changes using `git diff` and related commands
2. Identify the type of changes (feat, fix, chore, docs, style, refactor, test, etc.)
3. Determine the scope of changes (which component/module was affected)
4. Summarize the primary change in a clear subject line (50 characters or less)
5. Provide a detailed body explanation if the changes are complex
6. Follow conventional commit format: `<type>(<scope>): <subject>`

Your commit message structure should be:
- Subject line: Brief summary starting with change type
- Blank line
- Body (if needed): Detailed explanation of what changed and why
- Wrap lines at 72 characters

Best practices you follow:
- Use imperative mood ("add" not "added")
- Be specific about what was changed
- Reference issue numbers when relevant
- Keep subject line under 50 characters
- Explain the 'why' behind significant changes
- Group related changes logically

If you encounter unclear changes or need more context, ask clarifying questions. If there are no changes, inform the user accordingly.

Storage Locations and Priority

LevelPathScopeVersion Control
Project.qoder/commands/<command_name>.mdCurrent project onlyRecommended (team sharing)
User~/.qoder/commands/<command_name>.mdAll projectsNot committed (personal)
Priority: Project-level commands take precedence over user-level commands with the same name. Restart Required: After creating or modifying command files while CLI is running, use /quit to exit and restart qodercli to load new configurations.

Using Custom Commands

View Command Details

  1. Run /commands in TUI to open the commands panel
  2. Press Tab to switch between User and Project tabs
  3. Select a command and press Enter to view details:
    ------------------------------------------------------------------------------------------
    Extend Commands:  [User]  Project
    
    Name: git-commit
    
    Description
    [project] Review all git changes and generate a well-structured commit message...
    
    System Prompt
    You are an expert Git commit message generator...
    
  4. Press Esc to exit the details view

Execute Commands

Type the command name (starting with /) in TUI. CLI auto-displays matching commands:
╭───────────────────────────────────────────────────────╮
│ > /git-commit                                                                         │
╰───────────────────────────────────────────────────────╯
  /git-commit        [user] Use this command when you need to review all git changes ...
Press Enter to execute. CLI follows the command’s system prompt:
> /git-commit

● I'll help you create a commit message by analyzing the git changes in your repository.
  Let me first check the current status.

● Bash (git status)
...

FAQ

Custom command not recognized

Problem: Created command doesn’t appear or execute in TUI Solution:
  1. Check file path (~/.qoder/commands/ or .qoder/commands/)
  2. Verify frontmatter format (starts and ends with ---)
  3. Restart CLI (/quit then run qodercli again)

Frontmatter parsing failed

Problem: YAML format is incorrect Solution:
  • Ensure frontmatter starts and ends with ---
  • Use | syntax for multi-line description fields
  • Check indentation (YAML is indentation-sensitive)
---
name: my-command
description: |
  First line of description
  Second line of description
---