@qoder-ai/qodercli 1.1.90 → 1.1.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -74,17 +74,6 @@ qodercli --list-models # 表格输出当前账号可用的模型
74
74
 
75
75
  未登录时以非零退出码报错。
76
76
 
77
- ### 本地使用 DevTools
78
-
79
- DevTools 仅供本地源码调试,用于查看模型请求上下文、Token 使用情况和网络请求;发布产物不包含该功能。
80
-
81
- ```sh
82
- npm run build
83
- npm start -- --devtools
84
- ```
85
-
86
- 启动后会自动打开 `http://127.0.0.1:25417`。在 Qoder CLI 中发送消息,即可在 `Model Context` 页面查看原始请求、规范化模型响应、Token 使用情况和失败详情。
87
-
88
77
  ## 📋 核心功能
89
78
 
90
79
  ### 代码理解与生成
@@ -7,7 +7,7 @@ description:
7
7
  allowed-tools: Edit, Write
8
8
  ---
9
9
 
10
- # Creating Custom Agents for Qoder CLI
10
+ # Creating Custom Agents for Qwen Code
11
11
 
12
12
  This skill guides you through creating custom agents. Agents are
13
13
  specialized AI assistants that run in isolated contexts with custom system
@@ -30,18 +30,18 @@ Use agents when you need:
30
30
 
31
31
  ## Agent Locations
32
32
 
33
- <!-- QODER_CONFIG_DIR and QODER_USER_CONFIG_DIR below are prompt template
33
+ <!-- QWEN_CONFIG_DIR and QWEN_USER_CONFIG_DIR below are prompt template
34
34
  placeholders resolved by argumentSubstitution.ts, not shell environment variables. -->
35
35
 
36
36
  | Location | Scope | Priority |
37
37
  | ----------------------------------------- | ----------------- | -------- |
38
- | `<project>/${QODER_CONFIG_DIR}/agents/` | Current project | Higher |
39
- | `~/${QODER_USER_CONFIG_DIR}/agents/` | All your projects | Lower |
38
+ | `<project>/${QWEN_CONFIG_DIR}/agents/` | Current project | Higher |
39
+ | `~/${QWEN_USER_CONFIG_DIR}/agents/` | All your projects | Lower |
40
40
 
41
- **Project agents** (`${QODER_CONFIG_DIR}/agents/`): Ideal for codebase-specific
41
+ **Project agents** (`${QWEN_CONFIG_DIR}/agents/`): Ideal for codebase-specific
42
42
  agents. Check into version control to share with your team.
43
43
 
44
- **User agents** (`~/${QODER_USER_CONFIG_DIR}/agents/`): Personal agents available across
44
+ **User agents** (`~/${QWEN_USER_CONFIG_DIR}/agents/`): Personal agents available across
45
45
  all your projects.
46
46
 
47
47
  ## Agent File Format
@@ -71,7 +71,7 @@ You are a [role]. When invoked:
71
71
  ## Writing Effective Descriptions
72
72
 
73
73
  The description is **critical**. Include "use proactively" to encourage
74
- automatic delegation - Qoder CLI uses it to decide when to delegate.
74
+ automatic delegation. Qwen Code uses it to decide when to delegate.
75
75
 
76
76
  ```yaml
77
77
  # Bad - Too vague
@@ -87,7 +87,6 @@ description: Expert code review specialist. Proactively reviews code for quality
87
87
  | ---------------- | ----------------------------------------------------------------------------------- |
88
88
  | `tools` | Tools the agent can use (string or array) |
89
89
  | `disallowedTools`| Tools to explicitly deny (string or array) |
90
- | `model` | Model tier: `inherit` (default), `lite`, `efficient`, `auto`, `performance`, `ultimate` |
91
90
  | `color` | Display color: `red`, `blue`, `green`, `yellow`, `purple`, `orange`, `pink`, `cyan` |
92
91
  | `maxTurns` | Maximum conversation turns (positive integer) |
93
92
  | `timeoutMins` | Timeout in minutes (positive integer) |
@@ -123,30 +122,14 @@ tools: Read, WebSearch, WebFetch
123
122
 
124
123
  If not specified, the agent inherits default tool access.
125
124
 
126
- #### Choosing a Model
127
-
128
- Model tiers progress linearly from lightest to most capable. Higher tiers
129
- are more capable but consume more credits.
130
-
131
- - `inherit` — Use the caller's model. Default and safe choice.
132
- - `lite` — Simple Q&A, lightweight tasks.
133
- - `efficient` — Daily coding, code completion.
134
- - `auto` — Complex tasks, multi-step reasoning.
135
- - `performance` — Hard engineering problems, large codebases.
136
- - `ultimate` — Maximum capability, when quality matters most.
137
-
138
- Prefer `inherit` unless the agent has a clear reason to differ from the
139
- caller (e.g. a focused security auditor that benefits from a stronger tier,
140
- or a high-volume helper that should stay on a lighter tier).
141
-
142
125
  ## Agent Creation Workflow
143
126
 
144
127
  ### Step 1: Decide the Scope
145
128
 
146
129
  If not sure where to create the agent, ask the user with two options:
147
130
 
148
- - **Project-level** (`${QODER_CONFIG_DIR}/agents/`): For team-shared, codebase-specific agents
149
- - **User-level** (`~/${QODER_USER_CONFIG_DIR}/agents/`): For personal agents across all projects
131
+ - **Project-level** (`${QWEN_CONFIG_DIR}/agents/`): For team-shared, codebase-specific agents
132
+ - **User-level** (`~/${QWEN_USER_CONFIG_DIR}/agents/`): For personal agents across all projects
150
133
 
151
134
  ### Step 2: Gather Requirements
152
135
 
@@ -161,12 +144,12 @@ Understand what the agent should do:
161
144
 
162
145
  ```bash
163
146
  # For project-level
164
- mkdir -p ${QODER_CONFIG_DIR}/agents
165
- touch ${QODER_CONFIG_DIR}/agents/agent-name.md
147
+ mkdir -p ${QWEN_CONFIG_DIR}/agents
148
+ touch ${QWEN_CONFIG_DIR}/agents/agent-name.md
166
149
 
167
150
  # For user-level
168
- mkdir -p ~/${QODER_USER_CONFIG_DIR}/agents
169
- touch ~/${QODER_USER_CONFIG_DIR}/agents/agent-name.md
151
+ mkdir -p ~/${QWEN_USER_CONFIG_DIR}/agents
152
+ touch ~/${QWEN_USER_CONFIG_DIR}/agents/agent-name.md
170
153
  ```
171
154
 
172
155
  ### Step 4: Write Configuration
@@ -191,8 +174,8 @@ Create the markdown file with:
191
174
  ## Best Practices
192
175
 
193
176
  1. **Design focused agents** - Each should excel at one specific task
194
- 2. **Write detailed descriptions** - Be detailed and specific so Qoder CLI knows
195
- when to delegate
177
+ 2. **Write detailed descriptions** - Be detailed and specific so
178
+ Qwen Code knows when to delegate
196
179
  3. **Limit tool access** - Grant only necessary permissions for security and
197
180
  focus
198
181
  4. **Keep prompts concise** - Long, rambling prompts dilute focus
@@ -314,7 +297,6 @@ description:
314
297
  sensitive data. Proactively audit security-sensitive code.
315
298
  tools: Read, Grep, Glob
316
299
  color: red
317
- model: performance
318
300
  ---
319
301
 
320
302
  You are a security expert auditing code for vulnerabilities.
@@ -7,7 +7,7 @@ description:
7
7
  allowed-tools: Edit, Write
8
8
  ---
9
9
 
10
- # Creating Hooks for Qoder CLI
10
+ # Creating Hooks for Qwen Code
11
11
 
12
12
  This skill guides you through creating hooks — automated behaviors that
13
13
  trigger on specific events like tool execution, session lifecycle, file
@@ -33,9 +33,9 @@ Use hooks when you need:
33
33
 
34
34
  | Scope | File | Use Case |
35
35
  | ----------- | ------------------------------------ | -------------------------------- |
36
- | **Project** | `${QODER_CONFIG_DIR}/settings.json` | Team-shared, version controlled |
37
- | **Local** | `${QODER_CONFIG_DIR}/settings.local.json` | Personal, not committed |
38
- | **User** | `~/${QODER_USER_CONFIG_DIR}/settings.json` | Global across all projects |
36
+ | **Project** | `${QWEN_CONFIG_DIR}/settings.json` | Team-shared, version controlled |
37
+ | **Local** | `${QWEN_CONFIG_DIR}/settings.local.json` | Personal, not committed |
38
+ | **User** | `~/${QWEN_USER_CONFIG_DIR}/settings.json` | Global across all projects |
39
39
 
40
40
  **Choose project** for team guardrails and standards.
41
41
  **Choose local** for personal preferences and notifications.
@@ -52,7 +52,7 @@ Use hooks when you need:
52
52
  "hooks": [
53
53
  {
54
54
  "type": "command",
55
- "command": "${QODER_CONFIG_DIR}/hooks/my-hook.sh",
55
+ "command": "${QWEN_CONFIG_DIR}/hooks/my-hook.sh",
56
56
  "name": "my-hook",
57
57
  "timeout": 60
58
58
  }
@@ -228,19 +228,19 @@ Note: outputs whose `hookSpecificOutput` lacks `hookEventName` are rejected with
228
228
 
229
229
  **Placeholders and exec form.**
230
230
 
231
- Placeholders like `${QODER_PROJECT_DIR}`, `${QODER_PLUGIN_ROOT}`, and `${QODER_PLUGIN_DATA}` are exported as environment variables to the hook subprocess.
231
+ Placeholders like `${QWEN_PROJECT_DIR}`, `${QWEN_PLUGIN_ROOT}`, and `${QWEN_PLUGIN_DATA}` are exported as environment variables to the hook subprocess.
232
232
 
233
233
  - Under `bash` shell form, the CLI does **not** pre-substitute placeholders — bash expands them at runtime. Prefer double-quoted form so paths containing spaces or shell metacharacters (`'`, `$`, backticks) parse as a single token:
234
- - Recommended: `"${QODER_PLUGIN_ROOT}"/scripts/hook.sh`
235
- - Not recommended (unquoted; subject to field splitting / globbing): `${QODER_PLUGIN_ROOT}/scripts/hook.sh`
236
- - Under `powershell`, `${QODER_PROJECT_DIR}`, `${QODER_PLUGIN_ROOT}`, and `${QODER_PLUGIN_DATA}` are substituted into the command template before invocation.
234
+ - Recommended: `"${QWEN_PLUGIN_ROOT}"/scripts/hook.sh`
235
+ - Not recommended (unquoted; subject to field splitting / globbing): `${QWEN_PLUGIN_ROOT}/scripts/hook.sh`
236
+ - Under `powershell`, `${QWEN_PROJECT_DIR}`, `${QWEN_PLUGIN_ROOT}`, and `${QWEN_PLUGIN_DATA}` are substituted into the command template before invocation.
237
237
  - **Exec form** (`args` is set): `command` is an executable path/name and each `args` element is one literal argv entry. The CLI invokes the binary directly (no shell), so no quoting, splitting, or globbing happens. Use it when `command` or args contain complex shell metacharacters and you don't need pipes/redirection/globs.
238
238
 
239
239
  ```jsonc
240
240
  {
241
241
  "type": "command",
242
242
  "command": "/usr/bin/python3",
243
- "args": ["${QODER_PLUGIN_ROOT}/scripts/check.py", "--strict"]
243
+ "args": ["${QWEN_PLUGIN_ROOT}/scripts/check.py", "--strict"]
244
244
  }
245
245
  ```
246
246
 
@@ -376,9 +376,9 @@ conversation history.
376
376
 
377
377
  ### Step 3: Choose Scope
378
378
 
379
- - **Project** (`${QODER_CONFIG_DIR}/settings.json`): Team standards, check in
380
- - **Local** (`${QODER_CONFIG_DIR}/settings.local.json`): Personal, not committed
381
- - **User** (`~/${QODER_USER_CONFIG_DIR}/settings.json`): Global, all projects
379
+ - **Project** (`${QWEN_CONFIG_DIR}/settings.json`): Team standards, check in
380
+ - **Local** (`${QWEN_CONFIG_DIR}/settings.local.json`): Personal, not committed
381
+ - **User** (`~/${QWEN_USER_CONFIG_DIR}/settings.json`): Global, all projects
382
382
 
383
383
  ### Step 4: Create the Configuration
384
384
 
@@ -391,10 +391,10 @@ If no hooks exist yet, create the full structure.
391
391
  ### Step 5: Create Script Files (command type)
392
392
 
393
393
  For command hooks with non-trivial logic, create scripts in
394
- `${QODER_CONFIG_DIR}/hooks/`:
394
+ `${QWEN_CONFIG_DIR}/hooks/`:
395
395
 
396
396
  ```bash
397
- mkdir -p ${QODER_CONFIG_DIR}/hooks
397
+ mkdir -p ${QWEN_CONFIG_DIR}/hooks
398
398
  ```
399
399
 
400
400
  Script requirements:
@@ -402,13 +402,13 @@ Script requirements:
402
402
  - Write JSON to stdout (or nothing for simple success)
403
403
  - Exit 0 for success, 2 for blocking deny, other for warning
404
404
  - Use stderr for error messages and debug output
405
- - Make executable: `chmod +x ${QODER_CONFIG_DIR}/hooks/my-hook.sh`
405
+ - Make executable: `chmod +x ${QWEN_CONFIG_DIR}/hooks/my-hook.sh`
406
406
 
407
407
  Test independently:
408
408
 
409
409
  ```bash
410
410
  echo '{"tool_name":"Edit","tool_input":{"file_path":"test.ts"}}' | \
411
- ${QODER_CONFIG_DIR}/hooks/my-hook.sh
411
+ ${QWEN_CONFIG_DIR}/hooks/my-hook.sh
412
412
  ```
413
413
 
414
414
  ### Step 6: Verify
@@ -452,7 +452,7 @@ Tell the user to verify:
452
452
 
453
453
  Runs Prettier on TypeScript files after every Edit or Write.
454
454
 
455
- **`${QODER_CONFIG_DIR}/settings.json`:**
455
+ **`${QWEN_CONFIG_DIR}/settings.json`:**
456
456
 
457
457
  ```jsonc
458
458
  {
@@ -461,7 +461,7 @@ Runs Prettier on TypeScript files after every Edit or Write.
461
461
  "matcher": "Edit|Write",
462
462
  "hooks": [{
463
463
  "type": "command",
464
- "command": "${QODER_CONFIG_DIR}/hooks/auto-format.sh",
464
+ "command": "${QWEN_CONFIG_DIR}/hooks/auto-format.sh",
465
465
  "if": "Edit(*.{ts,tsx,js,jsx})",
466
466
  "name": "auto-format",
467
467
  "statusMessage": "Formatting..."
@@ -471,7 +471,7 @@ Runs Prettier on TypeScript files after every Edit or Write.
471
471
  }
472
472
  ```
473
473
 
474
- **`${QODER_CONFIG_DIR}/hooks/auto-format.sh`:**
474
+ **`${QWEN_CONFIG_DIR}/hooks/auto-format.sh`:**
475
475
 
476
476
  ```bash
477
477
  #!/bin/bash
@@ -487,7 +487,7 @@ exit 0
487
487
 
488
488
  Blocks edits to lock files and CI configuration.
489
489
 
490
- **`${QODER_CONFIG_DIR}/settings.json`:**
490
+ **`${QWEN_CONFIG_DIR}/settings.json`:**
491
491
 
492
492
  ```jsonc
493
493
  {
@@ -496,7 +496,7 @@ Blocks edits to lock files and CI configuration.
496
496
  "matcher": "Edit|Write",
497
497
  "hooks": [{
498
498
  "type": "command",
499
- "command": "${QODER_CONFIG_DIR}/hooks/protected-files.sh",
499
+ "command": "${QWEN_CONFIG_DIR}/hooks/protected-files.sh",
500
500
  "name": "protected-file-guard",
501
501
  "statusMessage": "Checking file permissions..."
502
502
  }]
@@ -505,7 +505,7 @@ Blocks edits to lock files and CI configuration.
505
505
  }
506
506
  ```
507
507
 
508
- **`${QODER_CONFIG_DIR}/hooks/protected-files.sh`:**
508
+ **`${QWEN_CONFIG_DIR}/hooks/protected-files.sh`:**
509
509
 
510
510
  ```bash
511
511
  #!/bin/bash
@@ -533,9 +533,9 @@ exit 0
533
533
 
534
534
  ### Desktop Notification
535
535
 
536
- Sends a macOS notification when Qoder CLI needs attention.
536
+ Sends a macOS notification when Qwen Code needs attention.
537
537
 
538
- **`${QODER_CONFIG_DIR}/settings.local.json`:**
538
+ **`${QWEN_CONFIG_DIR}/settings.local.json`:**
539
539
 
540
540
  ```jsonc
541
541
  {
@@ -543,7 +543,7 @@ Sends a macOS notification when Qoder CLI needs attention.
543
543
  "Notification": [{
544
544
  "hooks": [{
545
545
  "type": "command",
546
- "command": "${QODER_CONFIG_DIR}/hooks/notify.sh",
546
+ "command": "${QWEN_CONFIG_DIR}/hooks/notify.sh",
547
547
  "name": "desktop-notify",
548
548
  "async": true
549
549
  }]
@@ -552,12 +552,12 @@ Sends a macOS notification when Qoder CLI needs attention.
552
552
  }
553
553
  ```
554
554
 
555
- **`${QODER_CONFIG_DIR}/hooks/notify.sh`:**
555
+ **`${QWEN_CONFIG_DIR}/hooks/notify.sh`:**
556
556
 
557
557
  ```bash
558
558
  #!/bin/bash
559
559
  INPUT=$(cat)
560
- TITLE=$(echo "$INPUT" | jq -r '.title // "Qoder CLI"')
560
+ TITLE=$(echo "$INPUT" | jq -r --arg product 'Qwen Code' '.title // $product')
561
561
  MSG=$(echo "$INPUT" | jq -r '.message // "Notification"')
562
562
 
563
563
  if command -v osascript &>/dev/null; then
@@ -572,7 +572,7 @@ exit 0
572
572
 
573
573
  Uses an agent to verify TypeScript compiles after edits.
574
574
 
575
- **`${QODER_CONFIG_DIR}/settings.json`:**
575
+ **`${QWEN_CONFIG_DIR}/settings.json`:**
576
576
 
577
577
  ```jsonc
578
578
  {
@@ -7,16 +7,16 @@ description:
7
7
  allowed-tools: Edit, Write
8
8
  ---
9
9
 
10
- # Skill Creator
10
+ # Skill Creator for Qwen Code
11
11
 
12
12
  This skill provides guidance for creating effective skills.
13
13
 
14
14
  ## About Skills
15
15
 
16
- Skills are modular, self-contained packages that extend Qoder CLI's
16
+ Skills are modular, self-contained packages that extend Qwen Code's
17
17
  capabilities by providing specialized knowledge, workflows, and tools. Think of
18
- them as "onboarding guides" for specific domains or tasks—they transform Qoder
19
- CLI from a general-purpose agent into a specialized agent equipped with
18
+ them as "onboarding guides" for specific domains or tasks. They transform the
19
+ Qwen Code from a general-purpose agent into a specialized agent equipped with
20
20
  procedural knowledge that no model can fully possess.
21
21
 
22
22
  ### What Skills Provide
@@ -33,12 +33,12 @@ procedural knowledge that no model can fully possess.
33
33
  ### Concise is Key
34
34
 
35
35
  The context window is a public good. Skills share the context window with
36
- everything else Qoder CLI needs: system prompt, conversation history, other
36
+ everything else Qwen Code needs: system prompt, conversation history, other
37
37
  Skills' metadata, and the actual user request.
38
38
 
39
- **Default assumption: Qoder CLI is already very smart.** Only add context
40
- Qoder CLI doesn't already have. Challenge each piece of information: "Does
41
- Qoder CLI really need this explanation?" and "Does this paragraph justify its
39
+ **Default assumption: Qwen Code is already very smart.** Only add context
40
+ Qwen Code doesn't already have. Challenge each piece of information: "Does
41
+ Qwen Code really need this explanation?" and "Does this paragraph justify its
42
42
  token cost?"
43
43
 
44
44
  Prefer concise examples over verbose explanations.
@@ -80,7 +80,7 @@ skill-name/
80
80
  Every SKILL.md consists of:
81
81
 
82
82
  - **Frontmatter** (YAML): Contains `name` and `description` fields. These are
83
- the only fields that Qoder CLI reads to determine when the skill gets used,
83
+ the only fields that Qwen Code reads to determine when the skill gets used,
84
84
  thus it is very important to be clear and comprehensive in describing what the
85
85
  skill is, and when it should be used.
86
86
  - **Body** (Markdown): Instructions and guidance for using the skill. Only
@@ -105,9 +105,9 @@ reliability or are repeatedly rewritten.
105
105
  ##### References (`references/`)
106
106
 
107
107
  Documentation and reference material intended to be loaded as needed into
108
- context to inform Qoder CLI's process and thinking.
108
+ context to inform Qwen Code's process and thinking.
109
109
 
110
- - **When to include**: For documentation that Qoder CLI should reference while
110
+ - **When to include**: For documentation that Qwen Code should reference while
111
111
  working
112
112
  - **Examples**: `references/finance.md` for financial schemas,
113
113
  `references/api_docs.md` for API specifications
@@ -117,7 +117,7 @@ context to inform Qoder CLI's process and thinking.
117
117
  ##### Assets (`assets/`)
118
118
 
119
119
  Files not intended to be loaded into context, but rather used within the output
120
- Qoder CLI produces.
120
+ Qwen Code produces.
121
121
 
122
122
  - **When to include**: When the skill needs files that will be used in the final
123
123
  output
@@ -186,8 +186,8 @@ Analyze each concrete example to identify reusable resources:
186
186
  Create the skill directory structure directly. Ask the user for the target
187
187
  location:
188
188
 
189
- - **Project-level**: `${QODER_CONFIG_DIR}/skills/<skill-name>/`
190
- - **User-level**: `~/${QODER_USER_CONFIG_DIR}/skills/<skill-name>/`
189
+ - **Project-level**: `${QWEN_CONFIG_DIR}/skills/<skill-name>/`
190
+ - **User-level**: `~/${QWEN_USER_CONFIG_DIR}/skills/<skill-name>/`
191
191
 
192
192
  Create the following directory structure:
193
193
 
@@ -228,8 +228,9 @@ directories.
228
228
 
229
229
  ### Step 4: Edit the Skill
230
230
 
231
- When editing the skill, remember it is being created for another instance of
232
- Qoder CLI to use. Include information that would be beneficial and non-obvious.
231
+ When editing the skill, remember it is being created for another
232
+ Qwen Code session to use. Include information that would be beneficial
233
+ and non-obvious.
233
234
 
234
235
  #### Start with Reusable Skill Contents
235
236