diff --git a/docs/cli/commands.md b/docs/cli/commands.md index 1e222fd1..82342e0a 100644 --- a/docs/cli/commands.md +++ b/docs/cli/commands.md @@ -66,17 +66,6 @@ Slash commands provide meta-level control over the CLI itself. - **Description:** Display all directories added by `/directory add` and `--include-directories`. - **Usage:** `/directory show` -- **`/directory`** (or **`/dir`**) - - **Description:** Manage workspace directories for multi-directory support. - - **Sub-commands:** - - **`add`**: - - **Description:** Add a directory to the workspace. The path can be absolute or relative to the current working directory. Moreover, the reference from home directory is supported as well. - - **Usage:** `/directory add ,` - - **Note:** Disabled in restrictive sandbox profiles. If you're using that, use `--include-directories` when starting the session instead. - - **`show`**: - - **Description:** Display all directories added by `/directory add` and `--include-directories`. - - **Usage:** `/directory show` - - **`/editor`** - **Description:** Open a dialog for selecting supported editors. @@ -108,6 +97,20 @@ Slash commands provide meta-level control over the CLI itself. - **Description:** Reload the hierarchical instructional memory from all context files (default: `QWEN.md`) found in the configured locations (global, project/ancestors, and sub-directories). This updates the model with the latest context content. - **Note:** For more details on how context files contribute to hierarchical memory, see the [CLI Configuration documentation](./configuration.md#context-files-hierarchical-instructional-context). +- **`/model`** + - **Description:** Switch the model for the current session. Opens a dialog to select from available models based on your authentication type. + - **Usage:** `/model` + - **Features:** + - Shows a dialog with all available models for your current authentication type + - Displays model descriptions and capabilities (e.g., vision support) + - Changes the model for the current session only + - Supports both Qwen models (via OAuth) and OpenAI models (via API key) + - **Available Models:** + - **Qwen Coder:** The latest Qwen Coder model from Alibaba Cloud ModelStudio (version: qwen3-coder-plus-2025-09-23) + - **Qwen Vision:** The latest Qwen Vision model from Alibaba Cloud ModelStudio (version: qwen3-vl-plus-2025-09-23) - supports image analysis + - **OpenAI Models:** Available when using OpenAI authentication (configured via `OPENAI_MODEL` environment variable) + - **Note:** Model selection is session-specific and does not persist across different Qwen Code sessions. To set a default model, use the `model.name` setting in your configuration. + - **`/restore`** - **Description:** Restores the project files to the state they were in just before a tool was executed. This is particularly useful for undoing file edits made by a tool. If run without a tool call ID, it will list available checkpoints to restore from. - **Usage:** `/restore [tool_call_id]` diff --git a/docs/features/_meta.ts b/docs/features/_meta.ts index de2c5fcd..7ad3361c 100644 --- a/docs/features/_meta.ts +++ b/docs/features/_meta.ts @@ -2,7 +2,7 @@ export default { subagents: 'Subagents', checkpointing: 'Checkpointing', sandbox: 'Sandbox Support', - 'headless-mode': 'Headless Mode', + headless: 'Headless Mode', 'welcome-back': 'Welcome Back', 'token-caching': 'Token Caching', }; diff --git a/packages/cli/src/ui/models/availableModels.ts b/packages/cli/src/ui/models/availableModels.ts index 31fb9153..312c9bdc 100644 --- a/packages/cli/src/ui/models/availableModels.ts +++ b/packages/cli/src/ui/models/availableModels.ts @@ -20,12 +20,14 @@ export const AVAILABLE_MODELS_QWEN: AvailableModel[] = [ { id: MAINLINE_CODER, label: MAINLINE_CODER, - description: 'Optimized for code generation and understanding', + description: + 'The latest Qwen Coder model from Alibaba Cloud ModelStudio (version: qwen3-coder-plus-2025-09-23)', }, { id: MAINLINE_VLM, label: MAINLINE_VLM, - description: 'Vision model with multimodal capabilities', + description: + 'The latest Qwen Vision model from Alibaba Cloud ModelStudio (version: qwen3-vl-plus-2025-09-23)', isVision: true, }, ];