docs: add P1 architecture and P2 UX improvement findings from Claude Code vs Qwen Code comparison#72
Closed
docs: add P1 architecture and P2 UX improvement findings from Claude Code vs Qwen Code comparison#72
Conversation
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Based on multi-round source code comparison between Claude Code and Qwen Code: New reports: - qwen-code-improvement-report-p1-arch.md: 10 P1 architecture improvements (layered compression, API backoff, async I/O, file cache, prompt cache, prefetch, graceful shutdown, atomic writes, token budget, reactive compact) - qwen-code-improvement-report-p2-ux.md: 12 P2 UX enhancements (/plan, /review, /branch, /doctor, /cost, /session, /share, /diff, /rename, /upgrade, Plugin system, Task framework) Updated navigation in qwen-code-improvement-report.md with new report links. Total: 22 new improvement items with detailed analysis and implementation costs. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Verified all 29 source file references against ../claude-code-leaked: P1 Arch Report: - services/api/retry.ts → services/api/withRetry.ts (822 lines) ✓ - services/compact/tokenBudget.ts → query/tokenBudget.ts + utils/tokenBudget.ts ✓ - services/compact/reactiveCompact.ts → services/compact/compact.ts (1705 lines) ✓ P2 UX Report: - commands/review/review.ts → commands/review/ directory (reviewRemote.ts etc.) ✓ - commands/cost/cost.tsx → commands/cost/cost.ts ✓ - commands/share/share.ts → commands/share/index.js ✓ - commands/doctor/doctor.ts → commands/doctor/doctor.tsx + screens/Doctor.tsx ✓ - components/diff/DiffDialog.js → .tsx ✓ All constants verified: - AUTOCOMPACT_BUFFER_TOKENS = 13_000 ✓ - MAX_CONSECUTIVE_AUTOCOMPACT_FAILURES = 3 ✓ - gapThresholdMinutes = 60, keepRecent = 5 ✓ - branch.ts = 296 lines ✓ Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Verified all claims against source code: Item 5 (Prompt Cache): - Remove claim about 'alphabetical tool sorting' (no source evidence) - Add note that tool ordering stability is architectural inference - Update source refs to claude.ts cache_reference + promptCacheBreakDetection.ts Item 7 (Graceful Shutdown): - Qwen has SIGINT/SIGTERM in nonInteractiveCli.ts (headless mode) - Qwen has cleanup in useBracketedPaste.ts (interactive mode) - But lacks 5-stage graceful shutdown sequence - Correct claim from 'no signal handling' to 'lacks 5-stage sequence' Audit methodology: - Verified all 29 Claude Code source file references ✓ - Verified all constants (13_000, 3, 5, 9, 5, 70%, 30%) ✓ - Verified Qwen Code command absence (10 commands) ✓ - Found 14+ sync I/O calls in Qwen tools ✓ Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Owner
Author
|
关闭此 PR。26 项中 22 项与现有 183 项重复: P1 架构 (10/10 重复):分层压缩、API 退避、同步 I/O、文件缓存、Prompt Cache、Prefetch、优雅关闭、原子写入、Token Budget、反应式压缩 — 全部已在 p0-p1-engine.md 中。 P1 独立文件 (4/4 已处理):命名空间(PR#69合入)、Hook Runtime/Permission Trace/Resume Discovery(PR#69判定重叠并关闭)。 P2 UX (8/12 重复):/review、/branch、/doctor、/cost、/session、/share、/diff、Task 框架 — 全部已有对应 item。 文件结构不符:创建独立文件(p1-arch.md、p2-ux.md 等)而非追加到现有主题文件。 已手动合入的新增项(4 项):/plan 计划模式、/rename 重命名会话、/upgrade 版本升级、Plugin 系统增强。 |
wenshao
added a commit
that referenced
this pull request
Apr 5, 2026
Closed PR #72 (qwen3.6-plus) — 22 of 26 items duplicated existing 183. Extracted 4 new items to p2-tools: - #31 /plan (plan mode) - #32 /rename (session rename) - #33 /upgrade (version upgrade + changelog) - #34 Plugin system (aggregated container for commands+skills+hooks+MCP) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
wenshao
added a commit
that referenced
this pull request
Apr 5, 2026
Closed PR #76 — contained 6 files from previously closed PRs #69/#72 (repeated submission), plus 4 items of which 2 duplicated existing (Plugin Marketplace = P3 #11, Tips = p2-tools #19). Extracted 2 new items to p2-tools: - #39 /clear multi-mode (clear screen / clear history / full reset) - #40 /thinkback session recall (timeline key event review) Total: 193 items. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
基于对 Claude Code(
../claude-code-leaked)与 Qwen Code(../qwen-code)的多轮源码比对分析,新增 22 项改进建议。新增报告
审计质量
ls验证grep验证关键发现
Claude Code 有而 Qwen Code 缺失:
实现成本估算: