@mmmbuto/qwen-code-termux 0.14.1-termux → 0.15.5-termux
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 +1 -1
- package/bundled/batch/SKILL.md +304 -0
- package/bundled/loop/SKILL.md +1 -0
- package/bundled/qc-helper/SKILL.md +1 -0
- package/bundled/qc-helper/docs/configuration/auth.md +13 -6
- package/bundled/qc-helper/docs/configuration/settings.md +173 -108
- package/bundled/qc-helper/docs/features/_meta.ts +6 -0
- package/bundled/qc-helper/docs/features/approval-mode.md +16 -8
- package/bundled/qc-helper/docs/features/arena.md +3 -2
- package/bundled/qc-helper/docs/features/code-review.md +279 -0
- package/bundled/qc-helper/docs/features/commands.md +96 -26
- package/bundled/qc-helper/docs/features/dual-output.md +593 -0
- package/bundled/qc-helper/docs/features/followup-suggestions.md +6 -6
- package/bundled/qc-helper/docs/features/headless.md +61 -0
- package/bundled/qc-helper/docs/features/hooks.md +408 -120
- package/bundled/qc-helper/docs/features/mcp.md +100 -14
- package/bundled/qc-helper/docs/features/memory.md +168 -0
- package/bundled/qc-helper/docs/features/sandbox.md +9 -1
- package/bundled/qc-helper/docs/features/status-line.md +261 -0
- package/bundled/qc-helper/docs/features/sub-agents.md +126 -7
- package/bundled/qc-helper/docs/features/tips.md +54 -0
- package/bundled/qc-helper/docs/features/tool-use-summaries.md +178 -0
- package/bundled/qc-helper/docs/overview.md +4 -4
- package/bundled/qc-helper/docs/quickstart.md +15 -9
- package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +1 -1
- package/bundled/qc-helper/docs/support/tos-privacy.md +1 -1
- package/bundled/qc-helper/docs/support/troubleshooting.md +9 -3
- package/bundled/review/DESIGN.md +165 -0
- package/bundled/review/SKILL.md +359 -88
- package/cli.js +296184 -260145
- package/locales/ca.js +2143 -0
- package/locales/de.js +104 -14
- package/locales/en.js +113 -13
- package/locales/fr.js +2099 -0
- package/locales/ja.js +103 -14
- package/locales/pt.js +105 -14
- package/locales/ru.js +103 -14
- package/locales/zh-TW.js +1678 -0
- package/locales/zh.js +110 -13
- package/package.json +2 -2
- package/bundled/qc-helper/docs/configuration/memory.md +0 -0
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
commands: 'Commands',
|
|
3
|
+
'code-review': 'Code Review',
|
|
3
4
|
'followup-suggestions': 'Followup Suggestions',
|
|
5
|
+
'tool-use-summaries': 'Tool-Use Summaries',
|
|
4
6
|
'sub-agents': 'SubAgents',
|
|
5
7
|
arena: 'Agent Arena',
|
|
6
8
|
skills: 'Skills',
|
|
9
|
+
memory: 'Memory',
|
|
7
10
|
headless: 'Headless Mode',
|
|
11
|
+
'dual-output': 'Dual Output',
|
|
8
12
|
checkpointing: {
|
|
9
13
|
display: 'hidden',
|
|
10
14
|
},
|
|
@@ -16,5 +20,7 @@ export default {
|
|
|
16
20
|
language: 'i18n',
|
|
17
21
|
channels: 'Channels',
|
|
18
22
|
hooks: 'Hooks',
|
|
23
|
+
'status-line': 'Status Line',
|
|
19
24
|
'scheduled-tasks': 'Scheduled Tasks',
|
|
25
|
+
tips: 'Contextual Tips',
|
|
20
26
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Approval Mode
|
|
2
2
|
|
|
3
|
-
Qwen Code offers
|
|
3
|
+
Qwen Code offers four distinct permission modes that allow you to flexibly control how AI interacts with your code and system based on task complexity and risk level.
|
|
4
4
|
|
|
5
5
|
## Permission Modes Comparison
|
|
6
6
|
|
|
@@ -40,6 +40,18 @@ You can switch into Plan Mode during a session using **Shift+Tab** (or **Tab** o
|
|
|
40
40
|
|
|
41
41
|
If you are in Normal Mode, **Shift+Tab** (or **Tab** on Windows) first switches into `auto-edits` Mode, indicated by `⏵⏵ accept edits on` at the bottom of the terminal. A subsequent **Shift+Tab** (or **Tab** on Windows) will switch into Plan Mode, indicated by `⏸ plan mode`.
|
|
42
42
|
|
|
43
|
+
**Use the `/plan` command**
|
|
44
|
+
|
|
45
|
+
The `/plan` command provides a quick shortcut for entering and exiting Plan Mode:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
/plan # Enter plan mode
|
|
49
|
+
/plan refactor the auth module # Enter plan mode and start planning
|
|
50
|
+
/plan exit # Exit plan mode, restore previous mode
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
When you exit Plan Mode with `/plan exit`, your previous approval mode is automatically restored (e.g., if you were in Auto-Edit before entering Plan Mode, you'll return to Auto-Edit).
|
|
54
|
+
|
|
43
55
|
**Start a new session in Plan Mode**
|
|
44
56
|
|
|
45
57
|
To start a new session in Plan Mode, use the `/approval-mode` then select `plan`
|
|
@@ -59,14 +71,10 @@ qwen --prompt "What is machine learning?"
|
|
|
59
71
|
### Example: Planning a complex refactor
|
|
60
72
|
|
|
61
73
|
```bash
|
|
62
|
-
/
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
```
|
|
66
|
-
I need to refactor our authentication system to use OAuth2. Create a detailed migration plan.
|
|
74
|
+
/plan I need to refactor our authentication system to use OAuth2. Create a detailed migration plan.
|
|
67
75
|
```
|
|
68
76
|
|
|
69
|
-
Qwen Code analyzes the current implementation
|
|
77
|
+
Qwen Code enters Plan Mode and analyzes the current implementation to create a comprehensive plan. Refine with follow-ups:
|
|
70
78
|
|
|
71
79
|
```
|
|
72
80
|
What about backward compatibility?
|
|
@@ -235,7 +243,7 @@ qwen --prompt "Run the test suite, fix all failing tests, then commit changes"
|
|
|
235
243
|
|
|
236
244
|
### Keyboard Shortcut Switching
|
|
237
245
|
|
|
238
|
-
During a Qwen Code session, use **Shift+Tab** (or **Tab** on Windows) to quickly cycle through the
|
|
246
|
+
During a Qwen Code session, use **Shift+Tab** (or **Tab** on Windows) to quickly cycle through the four modes:
|
|
239
247
|
|
|
240
248
|
```
|
|
241
249
|
Default Mode → Auto-Edit Mode → YOLO Mode → Plan Mode → Default Mode
|
|
@@ -90,8 +90,9 @@ When all agents complete, the Arena enters the result comparison phase. You'll s
|
|
|
90
90
|
|
|
91
91
|
- **Status summary**: Which agents succeeded, failed, or were cancelled
|
|
92
92
|
- **Execution metrics**: Duration, rounds of reasoning, token usage, and tool call counts for each agent
|
|
93
|
+
- **Arena comparison summary**: Files changed in common vs. by one agent only, line-change counts, token efficiency, and a high-level approach summary generated from each agent's diff, metrics, and conversation history
|
|
93
94
|
|
|
94
|
-
A selection dialog presents the successful agents. Choose one to apply its changes to your main workspace, or discard all results.
|
|
95
|
+
A selection dialog presents the successful agents. Choose one to apply its changes to your main workspace, or discard all results. Press `p` to toggle a quick preview for the highlighted agent, or `d` to toggle that agent's detailed diff before selecting a winner.
|
|
95
96
|
|
|
96
97
|
### What happens when you select a winner
|
|
97
98
|
|
|
@@ -99,7 +100,7 @@ A selection dialog presents the successful agents. Choose one to apply its chang
|
|
|
99
100
|
2. The diff is applied to your main working directory
|
|
100
101
|
3. All worktrees and temporary branches are cleaned up automatically
|
|
101
102
|
|
|
102
|
-
If you want to inspect
|
|
103
|
+
If you want to inspect the complete reasoning path before deciding, each agent's full conversation history is still available via the tab bar while the selection dialog is active.
|
|
103
104
|
|
|
104
105
|
## Configuration
|
|
105
106
|
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
# Code Review
|
|
2
|
+
|
|
3
|
+
> Review code changes for correctness, security, performance, and code quality using `/review`.
|
|
4
|
+
|
|
5
|
+
## Quick Start
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# Review local uncommitted changes
|
|
9
|
+
/review
|
|
10
|
+
|
|
11
|
+
# Review a pull request (by number or URL)
|
|
12
|
+
/review 123
|
|
13
|
+
/review https://github.com/org/repo/pull/123
|
|
14
|
+
|
|
15
|
+
# Review and post inline comments on the PR
|
|
16
|
+
/review 123 --comment
|
|
17
|
+
|
|
18
|
+
# Review a specific file
|
|
19
|
+
/review src/utils/auth.ts
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
If there are no uncommitted changes, `/review` will let you know and stop — no agents are launched.
|
|
23
|
+
|
|
24
|
+
## How It Works
|
|
25
|
+
|
|
26
|
+
The `/review` command runs a multi-stage pipeline:
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
Step 1: Determine scope (local diff / PR worktree / file)
|
|
30
|
+
Step 2: Load project review rules
|
|
31
|
+
Step 3: Run deterministic analysis (linter, typecheck) [zero LLM cost]
|
|
32
|
+
Step 4: 5 parallel review agents [5 LLM calls]
|
|
33
|
+
|-- Agent 1: Correctness & Security
|
|
34
|
+
|-- Agent 2: Code Quality
|
|
35
|
+
|-- Agent 3: Performance & Efficiency
|
|
36
|
+
|-- Agent 4: Undirected Audit
|
|
37
|
+
'-- Agent 5: Build & Test (runs shell commands)
|
|
38
|
+
Step 5: Deduplicate --> Batch verify --> Aggregate [1 LLM call]
|
|
39
|
+
Step 6: Reverse audit (find coverage gaps) [1 LLM call]
|
|
40
|
+
Step 7: Present findings + verdict
|
|
41
|
+
Step 8: Autofix (user-confirmed, optional)
|
|
42
|
+
Step 9: Post PR inline comments (if requested)
|
|
43
|
+
Step 10: Save report + incremental cache
|
|
44
|
+
Step 11: Clean up (remove worktree + temp files)
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Review Agents
|
|
48
|
+
|
|
49
|
+
| Agent | Focus |
|
|
50
|
+
| --------------------------------- | ------------------------------------------------------------------ |
|
|
51
|
+
| Agent 1: Correctness & Security | Logic errors, null handling, race conditions, injection, XSS, SSRF |
|
|
52
|
+
| Agent 2: Code Quality | Style consistency, naming, duplication, dead code |
|
|
53
|
+
| Agent 3: Performance & Efficiency | N+1 queries, memory leaks, unnecessary re-renders, bundle size |
|
|
54
|
+
| Agent 4: Undirected Audit | Business logic, boundary interactions, hidden coupling |
|
|
55
|
+
| Agent 5: Build & Test | Runs build and test commands, reports failures |
|
|
56
|
+
|
|
57
|
+
All agents run in parallel. Findings from Agents 1-4 are verified in a **single batch verification pass** (one agent reviews all findings at once, keeping LLM calls fixed). After verification, a **reverse audit agent** re-reads the entire diff with knowledge of all confirmed findings to catch issues that every other agent missed. Reverse audit findings skip the verification step (the agent already has full context) and are included directly as high-confidence results.
|
|
58
|
+
|
|
59
|
+
## Deterministic Analysis
|
|
60
|
+
|
|
61
|
+
Before the LLM agents run, `/review` automatically runs your project's existing linters and type checkers:
|
|
62
|
+
|
|
63
|
+
| Language | Tools detected |
|
|
64
|
+
| --------------------- | ---------------------------------------------------------------- |
|
|
65
|
+
| TypeScript/JavaScript | `tsc --noEmit`, `npm run lint`, `eslint` |
|
|
66
|
+
| Python | `ruff`, `mypy`, `flake8` |
|
|
67
|
+
| Rust | `cargo clippy` |
|
|
68
|
+
| Go | `go vet`, `golangci-lint` |
|
|
69
|
+
| Java | `mvn compile`, `checkstyle`, `spotbugs`, `pmd` |
|
|
70
|
+
| C/C++ | `clang-tidy` (if `compile_commands.json` available) |
|
|
71
|
+
| Other | Auto-discovered from CI config (`.github/workflows/*.yml`, etc.) |
|
|
72
|
+
|
|
73
|
+
For projects that don't match standard patterns (e.g., OpenJDK), `/review` reads CI configuration files to discover what lint/check commands the project uses. No user configuration needed.
|
|
74
|
+
|
|
75
|
+
Deterministic findings are tagged with `[linter]` or `[typecheck]` and skip LLM verification — they are ground truth.
|
|
76
|
+
|
|
77
|
+
- **Errors** → Critical severity
|
|
78
|
+
- **Warnings** → Nice to have (terminal only, not posted as PR comments)
|
|
79
|
+
|
|
80
|
+
If a tool is not installed or times out, it is skipped with an informational note.
|
|
81
|
+
|
|
82
|
+
## Severity Levels
|
|
83
|
+
|
|
84
|
+
| Severity | Meaning | Posted as PR comment? |
|
|
85
|
+
| ---------------- | ------------------------------------------------------------------- | -------------------------- |
|
|
86
|
+
| **Critical** | Must fix before merging (bugs, security, data loss, build failures) | Yes (high-confidence only) |
|
|
87
|
+
| **Suggestion** | Recommended improvement | Yes (high-confidence only) |
|
|
88
|
+
| **Nice to have** | Optional optimization | No (terminal only) |
|
|
89
|
+
|
|
90
|
+
Low-confidence findings appear in a separate "Needs Human Review" section in the terminal and are never posted as PR comments.
|
|
91
|
+
|
|
92
|
+
## Autofix
|
|
93
|
+
|
|
94
|
+
After presenting findings, `/review` offers to auto-apply fixes for Critical and Suggestion findings that have clear solutions:
|
|
95
|
+
|
|
96
|
+
```
|
|
97
|
+
Found 3 issues with auto-fixable suggestions. Apply auto-fixes? (y/n)
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
- Fixes are applied using the `edit` tool (targeted replacements, not full-file rewrites)
|
|
101
|
+
- Per-file linter checks run after fixes to verify they don't introduce new issues
|
|
102
|
+
- For PR reviews, fixes are committed and pushed from the worktree automatically — your working tree stays clean
|
|
103
|
+
- Nice to have and low-confidence findings are never auto-fixed
|
|
104
|
+
- PR review submission always uses the **pre-fix verdict** (e.g., "Request changes") since the remote PR hasn't been updated until the autofix push completes
|
|
105
|
+
|
|
106
|
+
## Worktree Isolation
|
|
107
|
+
|
|
108
|
+
When reviewing a PR, `/review` creates a temporary git worktree (`.qwen/tmp/review-pr-<number>`) instead of switching your current branch. This means:
|
|
109
|
+
|
|
110
|
+
- Your working tree, staged changes, and current branch are **never touched**
|
|
111
|
+
- Dependencies are installed in the worktree (`npm ci`, etc.) so linting and build/test work
|
|
112
|
+
- Build and test commands run in isolation without polluting your local build cache
|
|
113
|
+
- If anything goes wrong, your environment is unaffected — just delete the worktree
|
|
114
|
+
- The worktree is automatically cleaned up after the review completes
|
|
115
|
+
- If a review is interrupted (Ctrl+C, crash), the next `/review` of the same PR automatically cleans up the stale worktree before starting fresh
|
|
116
|
+
- Review reports and cache are saved to the main project directory (not the worktree)
|
|
117
|
+
|
|
118
|
+
## Cross-repo PR Review
|
|
119
|
+
|
|
120
|
+
You can review PRs from other repositories by passing the full URL:
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
/review https://github.com/other-org/other-repo/pull/456
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
This runs in **lightweight mode** — no worktree, no linter, no build/test, no autofix. The review is based on the diff text only (fetched via GitHub API). PR comments can still be posted if you have write access.
|
|
127
|
+
|
|
128
|
+
| Capability | Same-repo | Cross-repo |
|
|
129
|
+
| ------------------------------------------------ | --------- | ----------------------------- |
|
|
130
|
+
| LLM review (Agents 1-4 + verify + reverse audit) | ✅ | ✅ |
|
|
131
|
+
| Agent 5: Build & test | ✅ | ❌ (no local codebase) |
|
|
132
|
+
| Deterministic analysis (linter/typecheck) | ✅ | ❌ |
|
|
133
|
+
| Cross-file impact analysis | ✅ | ❌ |
|
|
134
|
+
| Autofix | ✅ | ❌ |
|
|
135
|
+
| PR inline comments | ✅ | ✅ (if you have write access) |
|
|
136
|
+
| Incremental review cache | ✅ | ❌ |
|
|
137
|
+
|
|
138
|
+
## PR Inline Comments
|
|
139
|
+
|
|
140
|
+
Use `--comment` to post findings directly on the PR:
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
/review 123 --comment
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
Or, after running `/review 123`, type `post comments` to publish findings without re-running the review.
|
|
147
|
+
|
|
148
|
+
**What gets posted:**
|
|
149
|
+
|
|
150
|
+
- High-confidence Critical and Suggestion findings as inline comments on specific lines
|
|
151
|
+
- For Approve/Request changes verdicts: a review summary with the verdict
|
|
152
|
+
- For Comment verdict with all inline comments posted: no separate summary (inline comments are sufficient)
|
|
153
|
+
- Model attribution footer on each comment (e.g., _— qwen3-coder via Qwen Code /review_)
|
|
154
|
+
|
|
155
|
+
**What stays terminal-only:**
|
|
156
|
+
|
|
157
|
+
- Nice to have findings (including linter warnings)
|
|
158
|
+
- Low-confidence findings
|
|
159
|
+
|
|
160
|
+
## Follow-up Actions
|
|
161
|
+
|
|
162
|
+
After the review, context-aware tips appear as ghost text. Press Tab to accept:
|
|
163
|
+
|
|
164
|
+
| State after review | Tip | What happens |
|
|
165
|
+
| ---------------------------------- | ------------------ | --------------------------------------- |
|
|
166
|
+
| Local review with unfixed findings | `fix these issues` | LLM interactively fixes each finding |
|
|
167
|
+
| PR review with findings | `post comments` | Posts PR inline comments (no re-review) |
|
|
168
|
+
| PR review, zero findings | `post comments` | Approves the PR on GitHub (LGTM) |
|
|
169
|
+
| Local review, all clear | `commit` | Commits your changes |
|
|
170
|
+
|
|
171
|
+
Note: `fix these issues` is only available for local reviews. For PR reviews, use Autofix (Step 8) — the worktree is cleaned up after the review, so post-review interactive fixing is not possible.
|
|
172
|
+
|
|
173
|
+
## Project Review Rules
|
|
174
|
+
|
|
175
|
+
You can customize review criteria per project. `/review` reads rules from these files (in order):
|
|
176
|
+
|
|
177
|
+
1. `.qwen/review-rules.md` (Qwen Code native)
|
|
178
|
+
2. `.github/copilot-instructions.md` (preferred) or `copilot-instructions.md` (fallback — only one is loaded, not both)
|
|
179
|
+
3. `AGENTS.md` — `## Code Review` section
|
|
180
|
+
4. `QWEN.md` — `## Code Review` section
|
|
181
|
+
|
|
182
|
+
Rules are injected into the LLM review agents (1-4) as additional criteria. For PR reviews, rules are read from the **base branch** to prevent a malicious PR from injecting bypass rules.
|
|
183
|
+
|
|
184
|
+
Example `.qwen/review-rules.md`:
|
|
185
|
+
|
|
186
|
+
```markdown
|
|
187
|
+
# Review Rules
|
|
188
|
+
|
|
189
|
+
- All API endpoints must validate authentication
|
|
190
|
+
- Database queries must use parameterized statements
|
|
191
|
+
- React components must not use inline styles
|
|
192
|
+
- Error messages must not expose internal paths
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
## Incremental Review
|
|
196
|
+
|
|
197
|
+
When reviewing a PR that was previously reviewed, `/review` only examines changes since the last review:
|
|
198
|
+
|
|
199
|
+
```bash
|
|
200
|
+
# First review — full review, cache created
|
|
201
|
+
/review 123
|
|
202
|
+
|
|
203
|
+
# PR updated with new commits — only new changes reviewed
|
|
204
|
+
/review 123
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
### Cross-model review
|
|
208
|
+
|
|
209
|
+
If you switch models (via `/model`) and re-review the same PR, `/review` detects the model change and runs a full review instead of skipping:
|
|
210
|
+
|
|
211
|
+
```bash
|
|
212
|
+
# Review with model A
|
|
213
|
+
/review 123
|
|
214
|
+
|
|
215
|
+
# Switch model
|
|
216
|
+
/model
|
|
217
|
+
|
|
218
|
+
# Review again — full review with model B (not skipped)
|
|
219
|
+
/review 123
|
|
220
|
+
# → "Previous review used qwen3-coder. Running full review with gpt-4o for a second opinion."
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
Cache is stored in `.qwen/review-cache/` and tracks both the commit SHA and model ID. Make sure this directory is in your `.gitignore` (a broader rule like `.qwen/*` also works). If the cached commit was rebased away, it falls back to a full review.
|
|
224
|
+
|
|
225
|
+
## Review Reports
|
|
226
|
+
|
|
227
|
+
For same-repo reviews, results are saved as a Markdown file in your project's `.qwen/reviews/` directory (cross-repo lightweight reviews skip report persistence):
|
|
228
|
+
|
|
229
|
+
```
|
|
230
|
+
.qwen/reviews/2026-04-06-143022-pr-123.md
|
|
231
|
+
.qwen/reviews/2026-04-06-150510-local.md
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
Reports include: timestamp, diff stats, deterministic analysis results, all findings with verification status, and the verdict.
|
|
235
|
+
|
|
236
|
+
## Cross-file Impact Analysis
|
|
237
|
+
|
|
238
|
+
When code changes modify exported functions, classes, or interfaces, the review agents automatically search for all callers and check compatibility:
|
|
239
|
+
|
|
240
|
+
- Parameter count/type changes
|
|
241
|
+
- Return type changes
|
|
242
|
+
- Removed or renamed public methods
|
|
243
|
+
- Breaking API changes
|
|
244
|
+
|
|
245
|
+
For large diffs (>10 modified symbols), analysis prioritizes functions with signature changes.
|
|
246
|
+
|
|
247
|
+
## Token Efficiency
|
|
248
|
+
|
|
249
|
+
The review pipeline uses a fixed number of LLM calls regardless of how many findings are produced:
|
|
250
|
+
|
|
251
|
+
| Stage | LLM calls | Notes |
|
|
252
|
+
| ------------------------------- | ---------- | --------------------------------------------------- |
|
|
253
|
+
| Deterministic analysis (Step 3) | 0 | Shell commands only |
|
|
254
|
+
| Review agents (Step 4) | 5 (or 4) | Run in parallel; Agent 5 skipped in cross-repo mode |
|
|
255
|
+
| Batch verification (Step 5) | 1 | Single agent verifies all findings at once |
|
|
256
|
+
| Reverse audit (Step 6) | 1 | Finds coverage gaps; findings skip verification |
|
|
257
|
+
| **Total** | **7 or 6** | Same-repo: 7; cross-repo: 6 (no Agent 5) |
|
|
258
|
+
|
|
259
|
+
## What's NOT Flagged
|
|
260
|
+
|
|
261
|
+
The review intentionally excludes:
|
|
262
|
+
|
|
263
|
+
- Pre-existing issues in unchanged code (focus on the diff only)
|
|
264
|
+
- Style/formatting/naming that matches your codebase conventions
|
|
265
|
+
- Issues a linter or type checker would catch (handled by deterministic analysis)
|
|
266
|
+
- Subjective "consider doing X" suggestions without a real problem
|
|
267
|
+
- Minor refactoring that doesn't fix a bug or risk
|
|
268
|
+
- Missing documentation unless the logic is genuinely confusing
|
|
269
|
+
- Issues already discussed in existing PR comments (avoids duplicating human feedback)
|
|
270
|
+
|
|
271
|
+
## Design Philosophy
|
|
272
|
+
|
|
273
|
+
> **Silence is better than noise.** Every comment should be worth the reader's time.
|
|
274
|
+
|
|
275
|
+
- If unsure whether something is a problem → don't report it
|
|
276
|
+
- Linter/typecheck issues are handled by tools, not LLM guesses
|
|
277
|
+
- Same pattern across N files → aggregated into one finding
|
|
278
|
+
- PR comments are high-confidence only
|
|
279
|
+
- Style/formatting issues matching codebase conventions are excluded
|
|
@@ -24,6 +24,7 @@ These commands help you save, restore, and summarize work progress.
|
|
|
24
24
|
| `/summary` | Generate project summary based on conversation history | `/summary` |
|
|
25
25
|
| `/compress` | Replace chat history with summary to save Tokens | `/compress` |
|
|
26
26
|
| `/resume` | Resume a previous conversation session | `/resume` |
|
|
27
|
+
| `/recap` | Generate a one-line session recap now | `/recap` |
|
|
27
28
|
| `/restore` | Restore files to state before tool execution | `/restore` (list) or `/restore <ID>` |
|
|
28
29
|
|
|
29
30
|
### 1.2 Interface and Workspace Control
|
|
@@ -34,6 +35,7 @@ Commands for adjusting interface appearance and work environment.
|
|
|
34
35
|
| ------------ | ---------------------------------------- | ----------------------------- |
|
|
35
36
|
| `/clear` | Clear terminal screen content | `/clear` (shortcut: `Ctrl+L`) |
|
|
36
37
|
| `/context` | Show context window usage breakdown | `/context` |
|
|
38
|
+
| → `detail` | Show per-item context usage breakdown | `/context detail` |
|
|
37
39
|
| `/theme` | Change Qwen Code visual theme | `/theme` |
|
|
38
40
|
| `/vim` | Turn input area Vim editing mode on/off | `/vim` |
|
|
39
41
|
| `/directory` | Manage multi-directory support workspace | `/dir add ./src,./tests` |
|
|
@@ -56,22 +58,38 @@ Commands specifically for controlling interface and output language.
|
|
|
56
58
|
|
|
57
59
|
Commands for managing AI tools and models.
|
|
58
60
|
|
|
59
|
-
| Command | Description
|
|
60
|
-
| ---------------- |
|
|
61
|
-
| `/mcp` | List configured MCP servers and tools
|
|
62
|
-
| `/tools` | Display currently available tool list
|
|
63
|
-
| `/skills` | List and run available skills
|
|
64
|
-
| `/
|
|
65
|
-
|
|
|
66
|
-
| →`
|
|
67
|
-
| →`
|
|
68
|
-
| →`
|
|
69
|
-
|
|
|
70
|
-
| `/model
|
|
71
|
-
| `/
|
|
72
|
-
| `/
|
|
73
|
-
|
|
74
|
-
|
|
61
|
+
| Command | Description | Usage Examples |
|
|
62
|
+
| ---------------- | --------------------------------------------- | --------------------------------------------- |
|
|
63
|
+
| `/mcp` | List configured MCP servers and tools | `/mcp`, `/mcp desc` |
|
|
64
|
+
| `/tools` | Display currently available tool list | `/tools`, `/tools desc` |
|
|
65
|
+
| `/skills` | List and run available skills | `/skills`, `/skills <name>` |
|
|
66
|
+
| `/plan` | Switch to plan mode or exit plan mode | `/plan`, `/plan <task>`, `/plan exit` |
|
|
67
|
+
| `/approval-mode` | Change approval mode for tool usage | `/approval-mode <mode (auto-edit)> --project` |
|
|
68
|
+
| →`plan` | Analysis only, no execution | Secure review |
|
|
69
|
+
| →`default` | Require approval for edits | Daily use |
|
|
70
|
+
| →`auto-edit` | Automatically approve edits | Trusted environment |
|
|
71
|
+
| →`yolo` | Automatically approve all | Quick prototyping |
|
|
72
|
+
| `/model` | Switch model used in current session | `/model` |
|
|
73
|
+
| `/model --fast` | Set a lighter model for prompt suggestions | `/model --fast qwen3-coder-flash` |
|
|
74
|
+
| `/extensions` | List all active extensions in current session | `/extensions` |
|
|
75
|
+
| `/memory` | Open the Memory Manager dialog | `/memory` |
|
|
76
|
+
| `/remember` | Save a durable memory | `/remember Prefer terse responses` |
|
|
77
|
+
| `/forget` | Remove matching entries from auto-memory | `/forget <query>` |
|
|
78
|
+
| `/dream` | Manually run auto-memory consolidation | `/dream` |
|
|
79
|
+
|
|
80
|
+
### 1.5 Built-in Skills
|
|
81
|
+
|
|
82
|
+
These commands invoke bundled skills that provide specialized workflows.
|
|
83
|
+
|
|
84
|
+
| Command | Description | Usage Examples |
|
|
85
|
+
| ------------ | ------------------------------------------------------------------- | ------------------------------------------------- |
|
|
86
|
+
| `/review` | Review code changes with 5 parallel agents + deterministic analysis | `/review`, `/review 123`, `/review 123 --comment` |
|
|
87
|
+
| `/loop` | Run a prompt on a recurring schedule | `/loop 5m check the build` |
|
|
88
|
+
| `/qc-helper` | Answer questions about Qwen Code usage and configuration | `/qc-helper how do I configure MCP?` |
|
|
89
|
+
|
|
90
|
+
See [Code Review](./code-review.md) for full `/review` documentation.
|
|
91
|
+
|
|
92
|
+
### 1.6 Side Question (`/btw`)
|
|
75
93
|
|
|
76
94
|
The `/btw` command allows you to ask quick side questions without interrupting or affecting the main conversation flow.
|
|
77
95
|
|
|
@@ -139,7 +157,58 @@ The `/btw` command allows you to ask quick side questions without interrupting o
|
|
|
139
157
|
>
|
|
140
158
|
> Use `/btw` when you need a quick answer without derailing your main task. It's especially useful for clarifying concepts, checking facts, or getting quick explanations while staying focused on your primary workflow.
|
|
141
159
|
|
|
142
|
-
### 1.
|
|
160
|
+
### 1.7 Session Recap (`/recap`)
|
|
161
|
+
|
|
162
|
+
The `/recap` command generates a short "where you left off" summary of the
|
|
163
|
+
current session, so you can resume an old conversation without scrolling
|
|
164
|
+
back through pages of history.
|
|
165
|
+
|
|
166
|
+
| Command | Description |
|
|
167
|
+
| -------- | ------------------------------------------ |
|
|
168
|
+
| `/recap` | Generate and show a one-line session recap |
|
|
169
|
+
|
|
170
|
+
**How it works:**
|
|
171
|
+
|
|
172
|
+
- Uses the configured fast model (`fastModel` setting) when available, falling
|
|
173
|
+
back to the main session model. A small, cheap model is enough for a recap.
|
|
174
|
+
- The recent conversation (up to 30 messages, text only — tool calls and tool
|
|
175
|
+
responses are filtered out) is sent to the model with a tight system prompt.
|
|
176
|
+
- The recap is rendered in dim color with a `❯` prefix so it stands apart
|
|
177
|
+
from real assistant replies.
|
|
178
|
+
- Refuses with an inline error if a model turn is in flight or another command
|
|
179
|
+
is processing. If there is no usable conversation, or the underlying
|
|
180
|
+
generation fails, `/recap` shows a short info message instead of a recap —
|
|
181
|
+
the manual command always responds with something.
|
|
182
|
+
|
|
183
|
+
**Auto-trigger when returning from being away:**
|
|
184
|
+
|
|
185
|
+
If the terminal is blurred for **5+ minutes** and gets focused again, a recap
|
|
186
|
+
is generated and shown automatically (only when no model response is in
|
|
187
|
+
progress; otherwise it waits for the current turn to finish and then fires).
|
|
188
|
+
Unlike the manual command, the auto-trigger is fully silent on failure: if
|
|
189
|
+
generation errors or there is nothing to summarize, no message is added to
|
|
190
|
+
the history. Controlled by the `general.showSessionRecap` setting
|
|
191
|
+
(default: `true`); the manual `/recap` command always works regardless of
|
|
192
|
+
this setting.
|
|
193
|
+
|
|
194
|
+
**Example:**
|
|
195
|
+
|
|
196
|
+
```
|
|
197
|
+
> /recap
|
|
198
|
+
|
|
199
|
+
❯ Refactoring loopDetectionService.ts to address long-session OOM caused by
|
|
200
|
+
unbounded streamContentHistory and contentStats. The next step is to
|
|
201
|
+
implement option B (LRU sliding window with FNV-1a) pending confirmation.
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
> [!tip]
|
|
205
|
+
>
|
|
206
|
+
> Configure a fast model via `/model --fast <model>` (e.g.
|
|
207
|
+
> `qwen3-coder-flash`) to make `/recap` fast and cheap. Set
|
|
208
|
+
> `general.showSessionRecap` to `false` to opt out of the auto-trigger
|
|
209
|
+
> while keeping the manual command available.
|
|
210
|
+
|
|
211
|
+
### 1.8 Information, Settings, and Help
|
|
143
212
|
|
|
144
213
|
Commands for obtaining information and performing system settings.
|
|
145
214
|
|
|
@@ -154,7 +223,7 @@ Commands for obtaining information and performing system settings.
|
|
|
154
223
|
| `/copy` | Copy last output content to clipboard | `/copy` |
|
|
155
224
|
| `/quit` | Exit Qwen Code immediately | `/quit` or `/exit` |
|
|
156
225
|
|
|
157
|
-
### 1.
|
|
226
|
+
### 1.9 Common Shortcuts
|
|
158
227
|
|
|
159
228
|
| Shortcut | Function | Note |
|
|
160
229
|
| ------------------ | ----------------------- | ---------------------- |
|
|
@@ -164,17 +233,18 @@ Commands for obtaining information and performing system settings.
|
|
|
164
233
|
| `Ctrl/cmd+Z` | Undo input | Text editing |
|
|
165
234
|
| `Ctrl/cmd+Shift+Z` | Redo input | Text editing |
|
|
166
235
|
|
|
167
|
-
### 1.
|
|
236
|
+
### 1.10 CLI Auth Subcommands
|
|
168
237
|
|
|
169
238
|
In addition to the in-session `/auth` slash command, Qwen Code provides standalone CLI subcommands for managing authentication directly from the terminal:
|
|
170
239
|
|
|
171
|
-
| Command | Description
|
|
172
|
-
| ---------------------------------------------------- |
|
|
173
|
-
| `qwen auth` | Interactive authentication setup
|
|
174
|
-
| `qwen auth
|
|
175
|
-
| `qwen auth coding-plan
|
|
176
|
-
| `qwen auth
|
|
177
|
-
| `qwen auth
|
|
240
|
+
| Command | Description |
|
|
241
|
+
| ---------------------------------------------------- | ------------------------------------------------------------- |
|
|
242
|
+
| `qwen auth` | Interactive authentication setup |
|
|
243
|
+
| `qwen auth coding-plan` | Authenticate with Alibaba Cloud Coding Plan |
|
|
244
|
+
| `qwen auth coding-plan --region china --key sk-sp-…` | Non-interactive Coding Plan setup (for scripting) |
|
|
245
|
+
| `qwen auth api-key` | Authenticate with an API key |
|
|
246
|
+
| `qwen auth qwen-oauth` | ~~Authenticate with Qwen OAuth~~ (discontinued on 2026-04-15) |
|
|
247
|
+
| `qwen auth status` | Show current authentication status |
|
|
178
248
|
|
|
179
249
|
> [!tip]
|
|
180
250
|
>
|