+
+
+
### Using Your Custom Theme
@@ -148,56 +150,15 @@ The theme file must be a valid JSON file that follows the same structure as a cu
- Or, set it as the default by adding `"theme": "MyCustomTheme"` to the `ui` object in your `settings.json`.
- Custom themes can be set at the user, project, or system level, and follow the same [configuration precedence](./configuration.md) as other settings.
----
-## Dark Themes
-### ANSI
+## Themes Preview
-
-
-### Atom OneDark
-
-
-
-### Ayu
-
-
-
-### Default
-
-
-
-### Dracula
-
-
-
-### GitHub
-
-
-
-## Light Themes
-
-### ANSI Light
-
-
-
-### Ayu Light
-
-
-
-### Default Light
-
-
-
-### GitHub Light
-
-
-
-### Google Code
-
-
-
-### Xcode
-
-
+| Dark Theme | Preview | Light Theme | Preview |
+| :-: | :-: | :-: | :-: |
+| ANSI |
| ANSI Light |
|
+| Atom OneDark |
| Ayu Light |
|
+| Ayu |
| Default Light |
|
+| Default |
| GitHub Light |
|
+| Dracula |
| Google Code |
|
+| GitHub |
| Xcode |
|
diff --git a/docs/cli/trusted-folders.md b/docs/users/configuration/trusted-folders.md
similarity index 90%
rename from docs/cli/trusted-folders.md
rename to docs/users/configuration/trusted-folders.md
index 6fe3486b..afe955ef 100644
--- a/docs/cli/trusted-folders.md
+++ b/docs/users/configuration/trusted-folders.md
@@ -22,8 +22,8 @@ Add the following to your user `settings.json` file:
Once the feature is enabled, the first time you run the Qwen Code from a folder, a dialog will automatically appear, prompting you to make a choice:
-- **Trust folder**: Grants full trust to the current folder (e.g., `my-project`).
-- **Trust parent folder**: Grants trust to the parent directory (e.g., `safe-projects`), which automatically trusts all of its subdirectories as well. This is useful if you keep all your safe projects in one place.
+- **Trust folder**: Grants full trust to the current folder (e.g. `my-project`).
+- **Trust parent folder**: Grants trust to the parent directory (e.g. `safe-projects`), which automatically trusts all of its subdirectories as well. This is useful if you keep all your safe projects in one place.
- **Don't trust**: Marks the folder as untrusted. The CLI will operate in a restricted "safe mode."
Your choice is saved in a central file (`~/.qwen/trustedFolders.json`), so you will only be asked once per folder.
@@ -56,6 +56,6 @@ If you need to change a decision or see all your settings, you have a couple of
For advanced users, it's helpful to know the exact order of operations for how trust is determined:
-1. **IDE Trust Signal**: If you are using the [IDE Integration](./ide-integration.md), the CLI first asks the IDE if the workspace is trusted. The IDE's response takes highest priority.
+1. **IDE Trust Signal**: If you are using the [IDE Integration](/users/ide-integration/ide-integration), the CLI first asks the IDE if the workspace is trusted. The IDE's response takes highest priority.
2. **Local Trust File**: If the IDE is not connected, the CLI checks the central `~/.qwen/trustedFolders.json` file.
diff --git a/docs/users/features/_meta.ts b/docs/users/features/_meta.ts
new file mode 100644
index 00000000..5509cc74
--- /dev/null
+++ b/docs/users/features/_meta.ts
@@ -0,0 +1,12 @@
+export default {
+ commands: 'Commands',
+ 'sub-agents': 'SubAgents',
+ headless: 'Headless Mode',
+ checkpointing: {
+ display: 'hidden',
+ },
+ 'approval-mode': 'Approval Mode',
+ mcp: 'MCP',
+ 'token-caching': 'Token Caching',
+ sandbox: 'Sandboxing',
+};
diff --git a/docs/users/features/approval-mode.md b/docs/users/features/approval-mode.md
new file mode 100644
index 00000000..0749140e
--- /dev/null
+++ b/docs/users/features/approval-mode.md
@@ -0,0 +1,261 @@
+Qwen Code offers three distinct permission modes that allow you to flexibly control how AI interacts with your code and system based on task complexity and risk level.
+
+## Permission Modes Comparison
+
+| Mode | File Editing | Shell Commands | Best For | Risk Level |
+| -------------- | --------------------------- | --------------------------- | ------------------------------------------------------------------------------------------------------ | ---------- |
+| **Plan** | ❌ Read-only analysis only | ❌ Not executed | • Code exploration qwen*api_key: *(Optional)\_ The API key for the Qwen API.
+
+- qwen*cli_version: *(Optional, default: `latest`)\_ The version of the Qwen Code CLI to install. Can be "latest", "preview", "nightly", a specific version number, or a git branch, tag, or commit. For more information, see [Qwen Code CLI releases](https://github.com/QwenLM/qwen-code-action/blob/main/docs/releases.md).
+
+- qwen*debug: *(Optional)\_ Enable debug logging and output streaming.
+
+- qwen*model: *(Optional)\_ The model to use with Qwen Code.
+
+- prompt: _(Optional, default: `You are a helpful assistant.`)_ A string passed to the Qwen Code CLI's [`--prompt` argument](https://github.com/QwenLM/qwen-code-action/blob/main/docs/cli/configuration.md#command-line-arguments).
+
+- settings: _(Optional)_ A JSON string written to `.qwen/settings.json` to configure the CLI's _project_ settings.
+ For more details, see the documentation on [settings files](https://github.com/QwenLM/qwen-code-action/blob/main/docs/cli/configuration.md#settings-files).
+
+- use*qwen_code_assist: *(Optional, default: `false`)\_ Whether to use Code Assist for Qwen Code model access instead of the default Qwen Code API key.
+ For more information, see the [Qwen Code CLI documentation](https://github.com/QwenLM/qwen-code-action/blob/main/docs/cli/authentication.md).
+
+- use*vertex_ai: *(Optional, default: `false`)\_ Whether to use Vertex AI for Qwen Code model access instead of the default Qwen Code API key.
+ For more information, see the [Qwen Code CLI documentation](https://github.com/QwenLM/qwen-code-action/blob/main/docs/cli/authentication.md).
+
+- extensions: _(Optional)_ A list of Qwen Code CLI extensions to install.
+
+- upload*artifacts: *(Optional, default: `false`)\_ Whether to upload artifacts to the github action.
+
+- use*pnpm: *(Optional, default: `false`)\_ Whether or not to use pnpm instead of npm to install qwen-code-cli
+
+- workflow*name: *(Optional, default: `${{ github.workflow }}`)\_ The GitHub workflow name, used for telemetry purposes.
+
+
+
+### Outputs
+
+
+
+- summary: The summarized output from the Qwen Code CLI execution.
+
+- error: The error output from the Qwen Code CLI execution, if any.
+
+
+
+### Repository Variables
+
+We recommend setting the following values as repository variables so they can be reused across all workflows. Alternatively, you can set them inline as action inputs in individual workflows or to override repository-level values.
+
+| Name | Description | Type | Required | When Required |
+| ------------------ | --------------------------------------------------------- | -------- | -------- | ------------------------- |
+| `DEBUG` | Enables debug logging for the Qwen Code CLI. | Variable | No | Never |
+| `QWEN_CLI_VERSION` | Controls which version of the Qwen Code CLI is installed. | Variable | No | Pinning the CLI version |
+| `APP_ID` | GitHub App ID for custom authentication. | Variable | No | Using a custom GitHub App |
+
+To add a repository variable:
+
+1. Go to your repository's **Settings > Secrets and variables > Actions > New variable**.
+2. Enter the variable name and value.
+3. Save.
+
+For details about repository variables, refer to the [GitHub documentation on variables][variables].
+
+### Secrets
+
+You can set the following secrets in your repository:
+
+| Name | Description | Required | When Required |
+| ----------------- | --------------------------------------------- | -------- | ------------------------------------------ |
+| `QWEN_API_KEY` | Your Qwen API key from DashScope. | Yes | Required for all workflows that call Qwen. |
+| `APP_PRIVATE_KEY` | Private key for your GitHub App (PEM format). | No | Using a custom GitHub App. |
+
+To add a secret:
+
+1. Go to your repository's **Settings > Secrets and variables >Actions > New repository secret**.
+2. Enter the secret name and value.
+3. Save.
+
+For more information, refer to the
+[official GitHub documentation on creating and using encrypted secrets][secrets].
+
+## Authentication
+
+This action requires authentication to the GitHub API and optionally to Qwen Code services.
+
+### GitHub Authentication
+
+You can authenticate with GitHub in two ways:
+
+1. **Default `GITHUB_TOKEN`:** For simpler use cases, the action can use the
+ default `GITHUB_TOKEN` provided by the workflow.
+2. **Custom GitHub App (Recommended):** For the most secure and flexible
+ authentication, we recommend creating a custom GitHub App.
+
+For detailed setup instructions for both Qwen and GitHub authentication, go to the
+[**Authentication documentation**](./docs/authentication.md).
+
+## Extensions
+
+The Qwen Code CLI can be extended with additional functionality through extensions.
+These extensions are installed from source from their GitHub repositories.
+
+For detailed instructions on how to set up and configure extensions, go to the
+[Extensions documentation](./docs/extensions.md).
+
+## Best Practices
+
+To ensure the security, reliability, and efficiency of your automated workflows, we strongly recommend following our best practices. These guidelines cover key areas such as repository security, workflow configuration, and monitoring.
+
+Key recommendations include:
+
+- **Securing Your Repository:** Implementing branch and tag protection, and restricting pull request approvers.
+- **Monitoring and Auditing:** Regularly reviewing action logs and enabling OpenTelemetry for deeper insights into performance and behavior.
+
+For a comprehensive guide on securing your repository and workflows, please refer to our [**Best Practices documentation**](./docs/best-practices.md).
+
+## Customization
+
+Create a [QWEN.md] file in the root of your repository to provide
+project-specific context and instructions to [Qwen Code CLI]. This is useful for defining
+coding conventions, architectural patterns, or other guidelines the model should
+follow for a given repository.
+
+## Contributing
+
+Contributions are welcome! Check out the Qwen Code CLI
+[**Contributing Guide**](./CONTRIBUTING.md) for more details on how to get
+started.
+
+[secrets]: https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions
+[Qwen Code]: https://github.com/QwenLM/qwen-code
+[DashScope]: https://dashscope.console.aliyun.com/apiKey
+[Qwen Code CLI]: https://github.com/QwenLM/qwen-code-action/
+[variables]: https://docs.github.com/en/actions/how-tos/write-workflows/choose-what-workflows-do/use-variables#creating-configuration-variables-for-a-repository
+[GitHub CLI]: https://docs.github.com/en/github-cli/github-cli
+[QWEN.md]: https://github.com/QwenLM/qwen-code-action/blob/main/docs/cli/configuration.md#context-files-hierarchical-instructional-context
diff --git a/docs/users/integration-vscode.md b/docs/users/integration-vscode.md
new file mode 100644
index 00000000..e827df26
--- /dev/null
+++ b/docs/users/integration-vscode.md
@@ -0,0 +1,45 @@
+# Visual Studio Code
+
+> The VS Code extension (Beta) lets you see Qwen's changes in real-time through a native graphical interface integrated directly into your IDE, making it easier to access and interact with Qwen Code.
+
++ Preparing Qwen Code... +
+