Documentation Index
Fetch the complete documentation index at: https://docs.qoder.com/llms.txt
Use this file to discover all available pages before exploring further.
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:
-
Start Qoder CLI:
-
Type
/ to view the command list
-
Select a command and press Enter to execute:
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:
| Type | Description | Mode | Extensibility |
|---|
| TUI | Provides interactive UI (dialogs, list selection) | TUI | Built-in, not customizable |
| Prompt | Submits preset prompts to guide CLI tasks | TUI + Headless | User-customizable |
Built-in Commands
| Command | Type | Purpose |
|---|
/agents | TUI | Manage Subagent configurations |
/bashes | TUI | List and manage background tasks |
/clear | TUI | Clear conversation history and free up context |
/commands | TUI | Manage extend commands for current workspace |
/compact | Prompt | Summarize current session to compact the context, usage: /compact [instructions] |
/config | TUI | Manage Qoder CLI configurations |
/export [filename] | TUI | Export current session to a file, usage: /export [filename] |
/feedback | TUI | Submit feedback about Qoder CLI, usage: /feedback content |
/help | TUI | Show help and available commands |
/init | Prompt | Initialize a new AGENTS.md`file with codebase documentation |
/login | TUI | Sign in with your Qoder account |
/logout | TUI | Sign out of your Qoder account |
/mcp | TUI | List and manage mcp servers |
/memory | TUI | Edit memory files |
/model | TUI | List and manage settings of model level |
/quest | Prompt | Intelligent workflow orchestrator that guides users through feature development using specialized subagents |
/quit | TUI | Quit the program, equivalent to /exit |
/release-notes | TUI | View release notes |
/resume | TUI | Resume a previous conversation from history |
/review | Prompt | Review local pending git changes, usage: /review [instruction] |
/setup-github | TUI | Set up Qoder GitHub Actions |
/skills | TUI | Manage Skill commands for current workspace |
/status | TUI | Show Qoder CLI status |
/upgrade | TUI | Open browser to upgrade your Qoder account plan |
/usage | TUI | Show current plan usage summary |
/vim | TUI | Open 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).
Method 1: AI-Assisted Generation (Recommended)
Use TUI’s built-in AI assistance to quickly generate command configurations:
-
Run
/commands in TUI to open the commands panel
-
Press
Tab to switch to User or Project tab
-
Select “Create new command…” and press
Enter
-
Describe the command you want to create:
> View all git changes and make a good commit
-
Qoder CLI auto-generates the configuration file
-
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.
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
| Field | Required | Description |
|---|
name | Yes | Unique command name for /command-name invocation |
description | Yes | Command 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
| Level | Path | Scope | Version Control |
|---|
| Project-level | .qoder/commands/<command_name>.md | Current project only | Recommended (team sharing) |
| User-level | ~/.qoder/commands/<command_name>.md | All projects | Not 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
-
Run
/commands in TUI to open the commands panel
-
Press
Tab to switch between User and Project tabs
-
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...
-
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:
- Check file path (
~/.qoder/commands/ or .qoder/commands/)
- Verify frontmatter format (starts and ends with
---)
- 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
---