qwen-code/packages
Shaojin Wen b949ae070c
Some checks are pending
Qwen Code CI / Lint (push) Waiting to run
Qwen Code CI / Test (macos-latest, Node 22.x) (push) Waiting to run
Qwen Code CI / Test (ubuntu-latest, Node 22.x) (push) Waiting to run
Qwen Code CI / Test (windows-latest, Node 22.x) (push) Waiting to run
Qwen Code CI / Post Coverage Comment (push) Blocked by required conditions
Qwen Code CI / CodeQL (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:docker (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:none (push) Waiting to run
E2E Tests / E2E Test - macOS (push) Waiting to run
feat(tools): defer low-frequency built-in tools to reduce initial prompt size (#4022)
* feat(tools): defer low-frequency built-in tools to reduce initial prompt size

Mark Monitor, SendMessage, Skill, TaskStop, TodoWrite, and WebFetch as
shouldDefer=true so their full schemas are excluded from the initial
function-declaration list. The model discovers them on demand via
ToolSearch, aligning with Claude Code's deferral strategy for
infrequently used tools.

* fix(tools): don't defer TodoWrite/Skill — they're required by the system prompt

TodoWrite is mandated as high-frequency by the core system prompt
("Use VERY frequently", "IMPORTANT: Always use the TODO_WRITE tool to
plan and track tasks throughout the conversation"). Deferring it forces
a ToolSearch round-trip before every required call, adding latency and
hurting prompt compliance.

SkillTool's full description carries the dynamically generated
<available_skills> listing and the BLOCKING invocation rules
("invoke the relevant Skill tool BEFORE generating any other response").
The deferred-tool summary truncates this, so the model loses both the
list of skills and the activation contract from the initial prompt.

Keep Monitor / SendMessage / TaskStop / WebFetch deferred — those are
genuinely infrequent and have no system-prompt requirement.
2026-05-11 11:40:13 +08:00
..
channels chore(release): v0.15.10 [skip ci] 2026-05-10 16:38:09 +08:00
cli feat(core): write runtime.json sidecar for active sessions (#3714) 2026-05-11 01:21:49 +08:00
core feat(tools): defer low-frequency built-in tools to reduce initial prompt size (#4022) 2026-05-11 11:40:13 +08:00
sdk-java fix(sdk-java): pass custom env to CLI process (#3543) 2026-04-24 10:37:52 +08:00
sdk-python feat: add commit attribution with per-file AI contribution tracking (#3115) 2026-05-08 09:55:58 +08:00
sdk-typescript refactor: extract shared release helper utilities (#3834) 2026-05-05 10:15:17 +08:00
vscode-ide-companion feat(cli): core built-in i18n coverage (#3871) 2026-05-10 22:35:03 +08:00
web-templates chore(release): v0.15.10 [skip ci] 2026-05-10 16:38:09 +08:00
webui chore(release): v0.15.10 [skip ci] 2026-05-10 16:38:09 +08:00
zed-extension chore(zed-extension): update package version to 0.10.0 2026-02-06 14:26:01 +08:00