@qwen-code/qwen-code 0.21.1-simplify-system-prompt.0 → 0.21.2-nightly.20260801.bc382c3ff

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.
Files changed (437) hide show
  1. package/bundled/qc-helper/docs/configuration/model-providers.md +2 -0
  2. package/bundled/qc-helper/docs/configuration/settings.md +42 -30
  3. package/bundled/qc-helper/docs/features/channels/_meta.ts +2 -0
  4. package/bundled/qc-helper/docs/features/channels/github.md +146 -0
  5. package/bundled/qc-helper/docs/features/channels/gitlab.md +177 -0
  6. package/bundled/qc-helper/docs/features/channels/overview.md +61 -6
  7. package/bundled/qc-helper/docs/features/code-review.md +21 -1
  8. package/bundled/qc-helper/docs/features/commands.md +1 -0
  9. package/bundled/qc-helper/docs/features/hooks.md +186 -32
  10. package/bundled/qc-helper/docs/features/mcp.md +9 -1
  11. package/bundled/qc-helper/docs/features/memory.md +27 -0
  12. package/bundled/qc-helper/docs/features/scheduled-tasks.md +3 -1
  13. package/bundled/qc-helper/docs/features/skills.md +14 -0
  14. package/bundled/qc-helper/docs/features/sub-agents.md +75 -8
  15. package/bundled/qc-helper/docs/features/tool-use-summaries.md +7 -7
  16. package/bundled/qc-helper/docs/qwen-serve.md +32 -8
  17. package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +4 -4
  18. package/bundled/qc-helper/docs/support/troubleshooting.md +2 -1
  19. package/bundled/review/DESIGN.md +19 -0
  20. package/bundled/review/SKILL.md +120 -61
  21. package/chunks/MaxSizedBox-CDHTDITS.js +89 -0
  22. package/chunks/{StandaloneSessionPicker-O6RKBPU4.js → StandaloneSessionPicker-L63HUAHP.js} +76 -73
  23. package/chunks/{acp-startup-profiler-RV3IV562.js → acp-startup-profiler-3RICG2YW.js} +2 -2
  24. package/chunks/{acpAgent-HYFVXVDR.js → acpAgent-6WVVT2P3.js} +2147 -1009
  25. package/chunks/agent-KDM4CBOU.js +85 -0
  26. package/chunks/agent-headless-AS7K2K57.js +79 -0
  27. package/chunks/{anthropicContentGenerator-LXUXMOE7.js → anthropicContentGenerator-WCBYB6JG.js} +388 -37
  28. package/chunks/{artifact-tool-Y5T7GG7F.js → artifact-tool-ANV4CFCR.js} +4 -4
  29. package/chunks/{askUserQuestion-2H6747FR.js → askUserQuestion-MALEB47H.js} +4 -4
  30. package/chunks/bridge-JNEW6FES.js +95 -0
  31. package/chunks/{build-RV63TIRH.js → build-GDBLPA24.js} +1 -1
  32. package/chunks/{ca-25EDXPFZ.js → ca-4OJN75WT.js} +52 -6
  33. package/chunks/{channel-management-service-G74LFADV.js → channel-management-service-QOO7TD3T.js} +21 -6
  34. package/chunks/channel-settings-store-4CSMTR4L.js +92 -0
  35. package/chunks/{channel-worker-group-PTJIJSKC.js → channel-worker-group-ERSUOPIR.js} +10 -6
  36. package/chunks/{channel-worker-manager-WIMGM2FD.js → channel-worker-manager-X247YDQ7.js} +10 -6
  37. package/chunks/{channel-worker-supervisor-KUFTR6P5.js → channel-worker-supervisor-ORJIEEPP.js} +6 -5
  38. package/chunks/{chunk-LNARWLZQ.js → chunk-25QQVOCG.js} +5 -5
  39. package/chunks/{chunk-2OM7GEXO.js → chunk-2A6MHYIA.js} +3 -3
  40. package/chunks/{chunk-ER5LWJR6.js → chunk-2CTKGIFR.js} +3 -3
  41. package/chunks/{chunk-SQBYH7PX.js → chunk-2DNKEBXY.js} +1 -1
  42. package/chunks/{chunk-6GMVPFB2.js → chunk-2IIJTXYF.js} +45 -16
  43. package/chunks/{chunk-BPJSQIJX.js → chunk-2J3OJGTL.js} +0 -2
  44. package/chunks/chunk-2M5N3DHY.js +378 -0
  45. package/chunks/{chunk-CC4N4M36.js → chunk-2PNQQ4UR.js} +2 -2
  46. package/chunks/{chunk-E5TUC6CA.js → chunk-2UISUFHQ.js} +3 -3
  47. package/chunks/{chunk-PWTZEM3C.js → chunk-33FNCQSY.js} +3 -37
  48. package/chunks/{chunk-J56UI34H.js → chunk-3LGZEYOF.js} +4 -2
  49. package/chunks/{chunk-66RMLJHC.js → chunk-3MHPWQ2M.js} +590 -212
  50. package/chunks/{chunk-NL7LTRLR.js → chunk-3RXUYQJI.js} +54 -74
  51. package/chunks/{chunk-E5Z2AVNV.js → chunk-3SH53ANB.js} +0 -11
  52. package/chunks/{chunk-XHRTVPG2.js → chunk-3WXMXT7C.js} +22 -11
  53. package/chunks/{chunk-C3NS4F2Q.js → chunk-42IKVPST.js} +1 -1
  54. package/chunks/{chunk-M5JM7OSF.js → chunk-432XCUHF.js} +2 -3
  55. package/chunks/{chunk-5U4IPFBR.js → chunk-433VD3HX.js} +4 -4
  56. package/chunks/chunk-434YCHSV.js +2196 -0
  57. package/chunks/{chunk-DHHOYAPR.js → chunk-4LKVQFHM.js} +7 -7
  58. package/chunks/{chunk-IPUUTYMV.js → chunk-4NFY2S7N.js} +0 -33
  59. package/chunks/{chunk-J6D3VXCC.js → chunk-5UJ6A3CH.js} +158 -12
  60. package/chunks/{chunk-N3FAY5CM.js → chunk-5UZITEHA.js} +158 -5
  61. package/chunks/{chunk-A4UCTEB5.js → chunk-5WV5S2GT.js} +0 -1
  62. package/chunks/chunk-6FMJLI5M.js +1591 -0
  63. package/chunks/{chunk-6FGBXPWM.js → chunk-6O5DVH27.js} +38 -44
  64. package/chunks/{chunk-2RFKHEXL.js → chunk-6PLDPT2C.js} +1 -1
  65. package/chunks/{chunk-52O2CIUL.js → chunk-7IYLHTTM.js} +130 -5
  66. package/chunks/{chunk-5THCYPLO.js → chunk-7K2WTPQO.js} +15 -8
  67. package/chunks/{chunk-2Q3OT4OV.js → chunk-7MY2AR5A.js} +204 -81
  68. package/chunks/{chunk-YH6G52F2.js → chunk-A2A34TSB.js} +4 -4
  69. package/chunks/{chunk-3QMGYBFN.js → chunk-A5YZ3FA2.js} +2 -80
  70. package/chunks/{chunk-K4XWPEWB.js → chunk-A6SX5TAH.js} +4 -33
  71. package/chunks/{chunk-VYPFXUCB.js → chunk-AKA24BGO.js} +1 -1
  72. package/chunks/chunk-AQ37AY7B.js +93 -0
  73. package/chunks/{chunk-PANH4R3B.js → chunk-AQEWCKX4.js} +18 -12
  74. package/chunks/{chunk-LG4GZIVV.js → chunk-AYB4HSBI.js} +4 -4
  75. package/chunks/{chunk-PJIZUQVC.js → chunk-AZQ3DT76.js} +2 -2
  76. package/chunks/{chunk-2JZBVYTU.js → chunk-BFHXDAR7.js} +1 -8
  77. package/chunks/{chunk-2W3OOD4W.js → chunk-BGXZBI5B.js} +7 -4
  78. package/chunks/{chunk-2YZJCM5T.js → chunk-BKUN5QHP.js} +7 -7
  79. package/chunks/{chunk-UUUTRMI2.js → chunk-BV4QX43X.js} +1 -1
  80. package/chunks/{chunk-4M377AZG.js → chunk-C4L2MEIT.js} +6 -6
  81. package/chunks/{chunk-VV6XU5L7.js → chunk-CHCLO3M7.js} +19 -14
  82. package/chunks/{chunk-TOFQCPDC.js → chunk-CWEIMFFW.js} +14 -8
  83. package/chunks/{chunk-XVNQMZ2I.js → chunk-DGEIYUC3.js} +0 -1
  84. package/chunks/{chunk-BPZALHVR.js → chunk-DI35ZN7T.js} +1 -1
  85. package/chunks/{chunk-WDSWXQU3.js → chunk-DUIJ2IXG.js} +5 -13
  86. package/chunks/{chunk-3MSHSCSN.js → chunk-DVGTU5TC.js} +94 -4
  87. package/chunks/{chunk-RHLZR4E5.js → chunk-DYA25Y7U.js} +1 -1
  88. package/chunks/{chunk-MUP3T3AD.js → chunk-E4WHKETF.js} +32 -38
  89. package/chunks/{chunk-WBL3FJEU.js → chunk-FC4KQFCS.js} +1 -1
  90. package/chunks/{chunk-V6VRAM7B.js → chunk-FJHA23GM.js} +12 -12
  91. package/chunks/chunk-FYJ7W2PI.js +194 -0
  92. package/chunks/{chunk-INADJJGW.js → chunk-G7XXKQYS.js} +2 -2
  93. package/chunks/{chunk-LZEMEFKY.js → chunk-GALUTA2C.js} +1 -1
  94. package/chunks/{chunk-ML52PL6O.js → chunk-GB3AB7TR.js} +4374 -3779
  95. package/chunks/{chunk-SASBXAQL.js → chunk-GHJM2C2T.js} +6 -8
  96. package/chunks/{chunk-LS77BEZP.js → chunk-GLCZKT5V.js} +1 -5
  97. package/chunks/chunk-GOFAQQZA.js +132 -0
  98. package/chunks/{chunk-BJX6ZSUK.js → chunk-GTM6IHBB.js} +2 -2
  99. package/chunks/{chunk-TF2X2WCT.js → chunk-GVISB2OH.js} +2 -2
  100. package/chunks/{chunk-OKY7HXPG.js → chunk-H36SETQS.js} +2 -2
  101. package/chunks/{chunk-7FZEBPKS.js → chunk-H4346YW5.js} +39 -22
  102. package/chunks/{chunk-LNURQEMZ.js → chunk-H4DSRWAS.js} +24 -13
  103. package/chunks/{chunk-3JAQDSXN.js → chunk-H6MC6VQX.js} +290 -179
  104. package/chunks/{chunk-GZXCZHCT.js → chunk-I3G5JWBV.js} +1 -1
  105. package/chunks/{chunk-PR75REBZ.js → chunk-I5GNT6ZS.js} +18 -82
  106. package/chunks/{chunk-MVS3NS2N.js → chunk-I6FAHB4N.js} +28 -5
  107. package/chunks/{chunk-ZOIFNCKL.js → chunk-I7JDGNG6.js} +3 -23
  108. package/chunks/{chunk-OJGCZBB7.js → chunk-II6WPWHY.js} +41 -36
  109. package/chunks/{chunk-UH3WSE5L.js → chunk-J26HHFI5.js} +2 -7
  110. package/chunks/{chunk-S3TWXGKA.js → chunk-JE7KQ2UP.js} +4 -2
  111. package/chunks/{chunk-ZD6UTE4A.js → chunk-JELIWHXD.js} +1 -1
  112. package/chunks/{chunk-6PSLCFQ2.js → chunk-JRIDA5HF.js} +18 -9
  113. package/chunks/{chunk-W4CQXHT6.js → chunk-K4CGQN4Q.js} +1 -1
  114. package/chunks/{chunk-G4WFQUYQ.js → chunk-K5Q62CGR.js} +1 -1
  115. package/chunks/{chunk-JCW2R7WC.js → chunk-K623ENWT.js} +3 -79
  116. package/chunks/{chunk-T2NCM2ET.js → chunk-K6KS3LTN.js} +2 -749
  117. package/chunks/{chunk-DN6ZX5AY.js → chunk-KG22G46Y.js} +62 -15
  118. package/chunks/{chunk-L5UHQJTJ.js → chunk-KKN2IE7Q.js} +1 -1
  119. package/chunks/{chunk-63P4EL5V.js → chunk-KVUBYJDM.js} +2 -2
  120. package/chunks/{chunk-E5WH5O3C.js → chunk-KXSYDCP2.js} +4 -4
  121. package/chunks/{chunk-JALU3ZDU.js → chunk-LAPK3GLC.js} +212 -16
  122. package/chunks/chunk-LBOVL47Y.js +29 -0
  123. package/chunks/{chunk-FQK6JAFG.js → chunk-LBWNSLJK.js} +4 -4
  124. package/chunks/{chunk-3IXOIAKE.js → chunk-LL4U3BSH.js} +30 -10
  125. package/chunks/{chunk-B7QDM6Z7.js → chunk-LRJWFR6L.js} +4 -4
  126. package/chunks/{chunk-RWS5VYWC.js → chunk-M2F5PLOW.js} +1018 -484
  127. package/chunks/{chunk-HIJQF5B5.js → chunk-M744OFVE.js} +1 -1
  128. package/chunks/{chunk-I7XZ3RY5.js → chunk-MBKPUM5Y.js} +1 -1
  129. package/chunks/chunk-MISUEWB4.js +8749 -0
  130. package/chunks/{chunk-FNQ6T3CV.js → chunk-MOHAWIAW.js} +10 -7
  131. package/chunks/{chunk-FODK6UMO.js → chunk-MPHPFVKK.js} +0 -2
  132. package/chunks/{chunk-QY5MMZ6O.js → chunk-MSIVKDRC.js} +4 -4
  133. package/chunks/{record-artifact-RQKFYO5B.js → chunk-MYT7N6QH.js} +22 -7
  134. package/chunks/{chunk-JESCGQM3.js → chunk-NAVJD2PQ.js} +8 -7
  135. package/chunks/{chunk-DM4Q4JJH.js → chunk-NGWYUZZO.js} +68794 -83526
  136. package/chunks/{chunk-6OUGMXDC.js → chunk-NWNEANAT.js} +7 -7
  137. package/chunks/{chunk-PQNHRFJC.js → chunk-NYX53SV4.js} +0 -2
  138. package/chunks/{chunk-Z5BLYMZM.js → chunk-NZB4NDJL.js} +10 -10
  139. package/chunks/{chunk-SRZ6DXVG.js → chunk-O2ZYHG33.js} +47 -138
  140. package/chunks/chunk-O6GEWCJA.js +21 -0
  141. package/chunks/{chunk-PHVR5UUY.js → chunk-OBAIHYFT.js} +1 -1
  142. package/chunks/chunk-OCPBI7J5.js +18 -0
  143. package/chunks/{chunk-P5V4T7NK.js → chunk-OCRM53TT.js} +11 -3
  144. package/chunks/{chunk-V7RNNPGC.js → chunk-P5Y23G2L.js} +18 -1
  145. package/chunks/{chunk-KU5XMLDK.js → chunk-PDDYAXL2.js} +7 -1
  146. package/chunks/{chunk-L26JL52R.js → chunk-PGEGUNH5.js} +108 -68
  147. package/chunks/{chunk-2JM6GZ5D.js → chunk-PGP7Y3RQ.js} +8 -13
  148. package/chunks/{chunk-VFSJ5VRH.js → chunk-PHODQP2V.js} +6 -6
  149. package/chunks/{chunk-PSWQZHEA.js → chunk-PXA5AWHY.js} +1 -1
  150. package/chunks/{chunk-VDDGDZMA.js → chunk-QHWCP53L.js} +14 -7
  151. package/chunks/chunk-QL4TN4HS.js +59 -0
  152. package/chunks/{chunk-USTWD7QV.js → chunk-QMBEW7EW.js} +26 -16
  153. package/chunks/{chunk-U4VTUMMK.js → chunk-QONSRAEV.js} +1 -1
  154. package/chunks/{chunk-NH6KE4JX.js → chunk-QYPT3QUD.js} +3 -3
  155. package/chunks/{chunk-GDIPH4JY.js → chunk-RGJ4JWSU.js} +133 -50
  156. package/chunks/{chunk-BO4XCS7P.js → chunk-RPYYTL7E.js} +77 -94
  157. package/chunks/{chunk-6AM5D4ME.js → chunk-S6LOFUVP.js} +0 -12
  158. package/chunks/{chunk-B4UMZKMU.js → chunk-SK2UKB45.js} +1 -1
  159. package/chunks/{chunk-QPDRAXDJ.js → chunk-SWEBEXPI.js} +1 -1
  160. package/chunks/chunk-T26EAKDL.js +13 -0
  161. package/chunks/chunk-T3CHYWJZ.js +758 -0
  162. package/chunks/{chunk-U7TXFVUN.js → chunk-TFFMATHX.js} +120 -95
  163. package/chunks/{chunk-M4UKFCZ2.js → chunk-TNVKFQXQ.js} +616 -217
  164. package/chunks/{chunk-5I2IWRSH.js → chunk-TYERNYH4.js} +2 -2
  165. package/chunks/{chunk-VAK25FTU.js → chunk-U25CMJYY.js} +1 -1
  166. package/chunks/{chunk-A5L3JMUA.js → chunk-UH7Z7Y45.js} +18 -4
  167. package/chunks/{chunk-BRRAJXPA.js → chunk-UHQ3L6GC.js} +1 -1
  168. package/chunks/{chunk-HV3G62R6.js → chunk-UHTJC7O3.js} +1 -1
  169. package/chunks/{chunk-3SJ43L4W.js → chunk-UKZEXS6K.js} +8 -0
  170. package/chunks/{chunk-DM22XS4K.js → chunk-UOFFZNXV.js} +361 -17
  171. package/chunks/{chunk-FY3M44RD.js → chunk-URN76TKR.js} +3 -3
  172. package/chunks/{chunk-MSLKI6C2.js → chunk-UWLG4UCE.js} +139 -31
  173. package/chunks/{chunk-A6UO2C7C.js → chunk-UWSXFI6E.js} +167 -81
  174. package/chunks/{chunk-BYFNTGKI.js → chunk-VS3GXRNZ.js} +3703 -1399
  175. package/chunks/{chunk-TQCBGUHN.js → chunk-VWF42XC6.js} +5 -5
  176. package/chunks/{chunk-32MVHM4T.js → chunk-W7XZ3KP5.js} +1 -1
  177. package/chunks/{chunk-B6ZJ7SI6.js → chunk-WISQLM4Q.js} +1526 -1420
  178. package/chunks/{chunk-H5FFA6TH.js → chunk-WK4TJUEA.js} +16 -3
  179. package/chunks/{chunk-3HBZKBMQ.js → chunk-WP4HGHFG.js} +5 -5
  180. package/chunks/{chunk-BIQWWWJN.js → chunk-XC2VAFVZ.js} +1 -1
  181. package/chunks/{chunk-EPDRMGT4.js → chunk-XC656O42.js} +4 -28
  182. package/chunks/{chunk-COH43MRJ.js → chunk-XCGIMOLN.js} +27 -1
  183. package/chunks/{chunk-YAF5VNU7.js → chunk-XCLLRKY5.js} +4 -5
  184. package/chunks/chunk-XFDPIC4P.js +319 -0
  185. package/chunks/{chunk-KIUFNBHR.js → chunk-XSA5EKTJ.js} +1 -1
  186. package/chunks/{chunk-OHNBB4XR.js → chunk-YAVY33G4.js} +1 -1
  187. package/chunks/{chunk-DLWL3Z7A.js → chunk-YXEVDA66.js} +3 -3
  188. package/chunks/chunk-Z4X5MTRT.js +133 -0
  189. package/chunks/{chunk-UW5EOVUN.js → chunk-ZBVS26BY.js} +4 -4
  190. package/chunks/{chunk-HTO4JFDZ.js → chunk-ZPJWUGCS.js} +0 -1
  191. package/chunks/{chunk-ZE5WPL4I.js → chunk-ZRFJ75D7.js} +3 -3
  192. package/chunks/{chunk-MK7VQDN3.js → chunk-ZTN6OA5J.js} +8 -6
  193. package/chunks/{computer-use-DOFAHZAB.js → computer-use-Z4NCIIJN.js} +54 -51
  194. package/chunks/{config-utils-VFQXVGNR.js → config-utils-64LM6OEQ.js} +4 -4
  195. package/chunks/contextCommand-HVM7XFCB.js +84 -0
  196. package/chunks/core-runtime-NL3ZBHBU.js +138 -0
  197. package/chunks/{create-sub-session-IWW2IZ2T.js → create-sub-session-AM32K2HD.js} +3 -3
  198. package/chunks/{create-sub-session-7543K2QA.js → create-sub-session-XHSCDYFU.js} +54 -51
  199. package/chunks/{cron-create-YIID5XAW.js → cron-create-HPXYE6C5.js} +6 -6
  200. package/chunks/{cron-delete-ZVHYCEP2.js → cron-delete-FPVNTKPK.js} +5 -5
  201. package/chunks/{cron-list-XEGS463Q.js → cron-list-ZEI6PAAV.js} +6 -6
  202. package/chunks/{daemon-VOMQW7KZ.js → daemon-PCNCI5YU.js} +239 -18
  203. package/chunks/daemon-status-provider-XD23SNAM.js +94 -0
  204. package/chunks/daemon-trust-policy-NOHK7IW5.js +89 -0
  205. package/chunks/daemon-trust-policy-monitor-ZBTSR333.js +176 -0
  206. package/chunks/{de-HGRCYDEJ.js → de-A6TI4LBB.js} +52 -6
  207. package/chunks/deferred-core-runtime-JJBHKM2C.js +93 -0
  208. package/chunks/{dist-RTJFMNEZ.js → dist-4LAMY2SK.js} +1449 -14
  209. package/chunks/{dist-NNVBBOGU.js → dist-4T4NCJFL.js} +2 -2
  210. package/chunks/dist-7KOL6OMD.js +13467 -0
  211. package/chunks/{dist-BRB6EXK4.js → dist-BH76AT7N.js} +3 -3
  212. package/chunks/dist-BXA3JXVQ.js +4749 -0
  213. package/chunks/{dist-KTYYJ2C5.js → dist-OEEFI6UU.js} +12 -9
  214. package/chunks/{dist-K6Y4E7FX.js → dist-SMLVOWKV.js} +5 -4
  215. package/chunks/{dist-ANLAT3GS.js → dist-V2RK6S6Q.js} +2 -1
  216. package/chunks/earlyInputCapture-KLAZDAIP.js +86 -0
  217. package/chunks/{edit-RIEOJWKB.js → edit-YQZWCISX.js} +53 -50
  218. package/chunks/{en-MTWBNGDO.js → en-RESOFG55.js} +55 -6
  219. package/chunks/{enter-worktree-OGK5FQ3R.js → enter-worktree-WLVWI3FP.js} +53 -50
  220. package/chunks/{enterPlanMode-IWZYALIB.js → enterPlanMode-6RYXFQUD.js} +53 -50
  221. package/chunks/environment-DXJTXSVT.js +106 -0
  222. package/chunks/errors-XGAGG2S2.js +92 -0
  223. package/chunks/esm-K5FARBNI.js +5548 -0
  224. package/chunks/{exit-worktree-4TEYVIVP.js → exit-worktree-C4276VPP.js} +53 -50
  225. package/chunks/exitPlanMode-MM5HIRUF.js +77 -0
  226. package/chunks/{fast-path-HYE7IFEV.js → fast-path-PIXYOHCH.js} +17 -3
  227. package/chunks/{fr-45RLL55O.js → fr-QF7RI5ZE.js} +52 -6
  228. package/chunks/{gemini-NGRQX3YJ.js → gemini-43RLVUNP.js} +171 -109
  229. package/chunks/{geminiContentGenerator-FQHPFZSR.js → geminiContentGenerator-PNQ4TSID.js} +7 -7
  230. package/chunks/{getMachineId-bsd-V7W3GODC.js → getMachineId-bsd-FG7IUY6U.js} +1 -1
  231. package/chunks/{getMachineId-darwin-TDO75DQP.js → getMachineId-darwin-GLCJI2RA.js} +1 -1
  232. package/chunks/{getMachineId-linux-TF43WQT2.js → getMachineId-linux-O6OPPAKO.js} +1 -1
  233. package/chunks/{getMachineId-unsupported-ZGUO3TXT.js → getMachineId-unsupported-S6CKYVGC.js} +1 -1
  234. package/chunks/{getMachineId-win-ECFYZZFQ.js → getMachineId-win-X5SRNEH7.js} +1 -1
  235. package/chunks/{glob-FRTM3X2E.js → glob-ZMBQKAU5.js} +53 -50
  236. package/chunks/goal-tools-Y767F7LZ.js +335 -0
  237. package/chunks/{grep-RKWVROCW.js → grep-HSV37W2Q.js} +55 -51
  238. package/chunks/handleAutoUpdate-QDHZPBAY.js +85 -0
  239. package/chunks/i18n-ME22A6RN.js +101 -0
  240. package/chunks/{image-gen-WIEM7KZA.js → image-gen-IFC7ZWSB.js} +12 -12
  241. package/chunks/initializer-J7H2CHVB.js +90 -0
  242. package/chunks/installationInfo-R7FXPQN5.js +84 -0
  243. package/chunks/{ja-B7DF7DFG.js → ja-URQESVGW.js} +52 -6
  244. package/chunks/{keychain-token-storage-MDTG3WRM.js → keychain-token-storage-7BT4TQ2A.js} +3 -3
  245. package/chunks/{kittyProtocolDetector-MBRTDRBK.js → kittyProtocolDetector-BFLAKYXH.js} +1 -1
  246. package/chunks/lib-RUF3WZA6.js +9 -0
  247. package/chunks/list-OYDIBA4N.js +93 -0
  248. package/chunks/{list-agents-5KJJHR6I.js → list-agents-GATIBBQQ.js} +3 -3
  249. package/chunks/loadedSettingsAdapter-OK6GK2GE.js +87 -0
  250. package/chunks/{loggingContentGenerator-WGM27QAW.js → loggingContentGenerator-U4ZEG4GL.js} +66 -50
  251. package/chunks/{loop-wakeup-FXKNNYSY.js → loop-wakeup-3DZMQQQQ.js} +15 -8
  252. package/chunks/{ls-NTK6VOQJ.js → ls-7F4GHXIH.js} +5 -5
  253. package/chunks/{lsp-2JI24STP.js → lsp-6FEHVBWI.js} +3 -3
  254. package/chunks/{managed-npm-update-JQ2CG3RH.js → managed-npm-update-PGKAJLLO.js} +52 -49
  255. package/chunks/mcp-S4DXJD2G.js +87 -0
  256. package/chunks/{monitor-7FEWXX5F.js → monitor-E5ZFMT74.js} +53 -50
  257. package/chunks/nonInteractiveCli-HNOHKEPE.js +149 -0
  258. package/chunks/{notebook-edit-JGJV2K6J.js → notebook-edit-6QDN6VZJ.js} +53 -50
  259. package/chunks/{openaiContentGenerator-JPVXDTAO.js → openaiContentGenerator-3NLB2C5O.js} +25 -27
  260. package/chunks/pidfile-ZMOIUGG6.js +90 -0
  261. package/chunks/process-registry-2CHQBXH5.js +157 -0
  262. package/chunks/{processUtils-V2LCK6T6.js → processUtils-E4QGQVWW.js} +2 -2
  263. package/chunks/{pt-22Q3FP73.js → pt-EEEQXRUI.js} +52 -6
  264. package/chunks/{qwenContentGenerator-TICV2W2Z.js → qwenContentGenerator-2LFRWJTM.js} +57 -54
  265. package/chunks/{qwenOAuth2-XGFI5XJG.js → qwenOAuth2-N32BUQDC.js} +10 -10
  266. package/chunks/read-file-GLDCWZBG.js +29 -0
  267. package/chunks/{read-mcp-resource-4DKQWGHD.js → read-mcp-resource-AFS3UKZO.js} +4 -4
  268. package/chunks/record-artifact-ECZSCEG5.js +21 -0
  269. package/chunks/resumeHistoryUtils-F5BE5QDW.js +95 -0
  270. package/chunks/ripGrep-T23Y4AGY.js +77 -0
  271. package/chunks/{ru-FZCNZHDC.js → ru-WGZDYQAB.js} +52 -6
  272. package/chunks/{run-qwen-serve-3VCV4I7E.js → run-qwen-serve-TI2HGLLU.js} +1155 -272
  273. package/chunks/runtime-WCWM3DO7.js +125 -0
  274. package/chunks/{scheduler-RS2I6RU5.js → scheduler-2QZO5AV5.js} +51 -48
  275. package/chunks/{sdk-exporters-grpc-AK3LGHNO.js → sdk-exporters-grpc-54L4LS5L.js} +4 -4
  276. package/chunks/{sdk-exporters-http-FS6ZV7MF.js → sdk-exporters-http-IKNWQJNV.js} +7 -7
  277. package/chunks/{sdk-impl-7FZSCSXB.js → sdk-impl-7CUUMQDB.js} +10 -10
  278. package/chunks/{send-message-Q6OOR6BR.js → send-message-X7G2JSII.js} +8 -13
  279. package/chunks/serve-DZOMYUFU.js +93 -0
  280. package/chunks/{server-HRZ23U7M.js → server-N4AJRKIQ.js} +5299 -1584
  281. package/chunks/{session-7XHZKTVV.js → session-GS6AKMN7.js} +167 -102
  282. package/chunks/{settings-7ZGZDXAS.js → settings-CUN3SELH.js} +56 -53
  283. package/chunks/shell-NGBFVXC5.js +87 -0
  284. package/chunks/{skill-LIWXNLDW.js → skill-SC2BSO75.js} +35 -23
  285. package/chunks/skill-settings-XVPCPW5K.js +95 -0
  286. package/chunks/spawnChannel-RILO4YY3.js +86 -0
  287. package/chunks/standalone-update-TMLT6LVJ.js +96 -0
  288. package/chunks/{startInteractiveUI-IW3CSKHA.js → startInteractiveUI-J45WOEOU.js} +1343 -1230
  289. package/chunks/{syntheticOutput-I3757IWH.js → syntheticOutput-FHRY3BPQ.js} +4 -4
  290. package/chunks/task-create-LAQXBIHC.js +26 -0
  291. package/chunks/{task-list-FOPULZEP.js → task-list-V6K5DRDH.js} +8 -8
  292. package/chunks/{task-stop-H6RHXFVQ.js → task-stop-LQXE52L6.js} +3 -3
  293. package/chunks/{task-update-M57TFZJT.js → task-update-NXRCXSPB.js} +13 -12
  294. package/chunks/{team-create-O2FROQ4R.js → team-create-W3EVWCTA.js} +55 -52
  295. package/chunks/{team-delete-QE2UXJL7.js → team-delete-Z4KGO7RC.js} +8 -8
  296. package/chunks/{team-plan-approval-Q6WDBXTQ.js → team-plan-approval-URYVKJF4.js} +53 -50
  297. package/chunks/theme-manager-CUAMS2NI.js +81 -0
  298. package/chunks/{todoWrite-VQ7FKOHL.js → todoWrite-OFIZDI7P.js} +34 -6
  299. package/chunks/{tool-search-APECNQ3Z.js → tool-search-DCICFL32.js} +21 -22
  300. package/chunks/total-session-admission-3ZTAXVUK.js +89 -0
  301. package/chunks/{tree-sitter-FS4VPMZA.js → tree-sitter-4D7QS7F6.js} +1 -1
  302. package/chunks/{tree-sitter-bash-6B46JJCV.js → tree-sitter-bash-VEJGF5XF.js} +1 -1
  303. package/chunks/trustedFolders-EVCN36O5.js +99 -0
  304. package/chunks/{update-relaunch-ON5MDJQG.js → update-relaunch-XLW46RHQ.js} +5 -5
  305. package/chunks/updateCheck-ZHVXDAIH.js +96 -0
  306. package/chunks/useAutoAcceptIndicator-ZGD6BJSP.js +97 -0
  307. package/chunks/{validateNonInterActiveAuth-JBLKBKRD.js → validateNonInterActiveAuth-R3BAQFDY.js} +102 -97
  308. package/chunks/{version-LTNUBQJY.js → version-PMWREGCG.js} +1 -1
  309. package/chunks/{web-fetch-L5UTI53V.js → web-fetch-PGN27SGF.js} +19 -21
  310. package/chunks/{web-search-KM33JOS3.js → web-search-KW4UNMRE.js} +13 -13
  311. package/chunks/{workflow-K7FAWV77.js → workflow-SN3TJBTJ.js} +374 -323
  312. package/chunks/workspace-providers-status-O3HUZGGR.js +90 -0
  313. package/chunks/{workspace-registration-store-6TGVDJV5.js → workspace-registration-store-M3FJ74RS.js} +2 -2
  314. package/chunks/workspace-registry-U7ISW23N.js +97 -0
  315. package/chunks/workspace-service-VH6IWADT.js +104 -0
  316. package/chunks/workspace-skills-status-XANARSZS.js +90 -0
  317. package/chunks/workspace-trust-reconciler-35EFR4GC.js +350 -0
  318. package/chunks/write-file-NCRSGUDT.js +79 -0
  319. package/chunks/xterm-headless-NTYVIBT3.js +3475 -0
  320. package/chunks/{zh-LUIGBD55.js → zh-OHX23Q44.js} +52 -6
  321. package/chunks/{zh-TW-F5KG2IYD.js → zh-TW-4G7YKDAQ.js} +52 -6
  322. package/chunks/zoom-image-X7CIADYC.js +224 -0
  323. package/cli.js +55 -48
  324. package/locales/ca.js +67 -6
  325. package/locales/de.js +69 -6
  326. package/locales/en.js +69 -6
  327. package/locales/fr.js +71 -6
  328. package/locales/ja.js +68 -6
  329. package/locales/pt.js +67 -6
  330. package/locales/ru.js +70 -6
  331. package/locales/zh-TW.js +62 -6
  332. package/locales/zh.js +62 -6
  333. package/package.json +5 -4
  334. package/web-shell/assets/{arc-BbHijhiN.js → arc-CaMTqKio.js} +1 -1
  335. package/web-shell/assets/{architectureDiagram-3BPJPVTR-Cb4B_JD0.js → architectureDiagram-3BPJPVTR-Bjxztij2.js} +1 -1
  336. package/web-shell/assets/{blockDiagram-GPEHLZMM-Dsjlh3H-.js → blockDiagram-GPEHLZMM-BYJzeHi9.js} +1 -1
  337. package/web-shell/assets/{c4Diagram-AAUBKEIU-Cp5AeR4U.js → c4Diagram-AAUBKEIU-fYAa-Eil.js} +1 -1
  338. package/web-shell/assets/channel-LEZei0-5.js +1 -0
  339. package/web-shell/assets/{chunk-2J33WTMH-CLcY7W2e.js → chunk-2J33WTMH-B1OTlTml.js} +1 -1
  340. package/web-shell/assets/{chunk-4BX2VUAB-BUhvY2LR.js → chunk-4BX2VUAB-DNj4uy6k.js} +1 -1
  341. package/web-shell/assets/{chunk-55IACEB6-kDIFC_71.js → chunk-55IACEB6-DAqNmg3c.js} +1 -1
  342. package/web-shell/assets/{chunk-727SXJPM-CIBO15f2.js → chunk-727SXJPM-BwB4ddxE.js} +1 -1
  343. package/web-shell/assets/{chunk-AQP2D5EJ-BJ_T_slV.js → chunk-AQP2D5EJ-DmHR_UZs.js} +1 -1
  344. package/web-shell/assets/{chunk-FMBD7UC4-BEkW35J8.js → chunk-FMBD7UC4-BlfOXumo.js} +1 -1
  345. package/web-shell/assets/{chunk-ND2GUHAM-GGPxofay.js → chunk-ND2GUHAM-BKogiSy7.js} +1 -1
  346. package/web-shell/assets/{chunk-QZHKN3VN-Bifllrb6.js → chunk-QZHKN3VN-DEclVrOF.js} +1 -1
  347. package/web-shell/assets/classDiagram-4FO5ZUOK-BiaRhfvf.js +1 -0
  348. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-BiaRhfvf.js +1 -0
  349. package/web-shell/assets/{cose-bilkent-S5V4N54A-C-Add_Dp.js → cose-bilkent-S5V4N54A-CwtS21WT.js} +1 -1
  350. package/web-shell/assets/{dagre-BM42HDAG-B7MfwNq2.js → dagre-BM42HDAG-BAAIlB4p.js} +1 -1
  351. package/web-shell/assets/{diagram-2AECGRRQ-CY_0zuDz.js → diagram-2AECGRRQ-ChljtF_V.js} +1 -1
  352. package/web-shell/assets/{diagram-5GNKFQAL-VyYSbCgA.js → diagram-5GNKFQAL-BIXVd31-.js} +1 -1
  353. package/web-shell/assets/{diagram-KO2AKTUF-CBiIZ2PL.js → diagram-KO2AKTUF-BEiBaS15.js} +1 -1
  354. package/web-shell/assets/{diagram-LMA3HP47-BL3CrVOx.js → diagram-LMA3HP47-C-g4tWKM.js} +1 -1
  355. package/web-shell/assets/{diagram-OG6HWLK6-CZUPx96P.js → diagram-OG6HWLK6-CNCCbNQG.js} +1 -1
  356. package/web-shell/assets/{erDiagram-TEJ5UH35-B81xHr1-.js → erDiagram-TEJ5UH35-v8ysnsdI.js} +1 -1
  357. package/web-shell/assets/{flowDiagram-I6XJVG4X-EZWhir-J.js → flowDiagram-I6XJVG4X-LKVlLjwA.js} +1 -1
  358. package/web-shell/assets/{ganttDiagram-6RSMTGT7-CVFSuIAg.js → ganttDiagram-6RSMTGT7-DA5MrKYG.js} +1 -1
  359. package/web-shell/assets/{gitGraphDiagram-PVQCEYII-C1H2uQDv.js → gitGraphDiagram-PVQCEYII-Cyg5fe6d.js} +1 -1
  360. package/web-shell/assets/index-BgOcEaVt.js +1756 -0
  361. package/web-shell/assets/index-C2GE3DAF.js +74 -0
  362. package/web-shell/assets/{index-BYo99NBH.js → index-CKdUkVVS.js} +1 -1
  363. package/web-shell/assets/index-DA5Lvscv.css +5 -0
  364. package/web-shell/assets/{infoDiagram-5YYISTIA-BwyFMlF8.js → infoDiagram-5YYISTIA-SLsfu3Qd.js} +1 -1
  365. package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-CQ7Yhn2Y.js → ishikawaDiagram-YF4QCWOH-CmHOmTNx.js} +1 -1
  366. package/web-shell/assets/{journeyDiagram-JHISSGLW-CJn2sf0l.js → journeyDiagram-JHISSGLW-C3gM_HFQ.js} +1 -1
  367. package/web-shell/assets/{kanban-definition-UN3LZRKU-DaNRqwVN.js → kanban-definition-UN3LZRKU-BbHD7duM.js} +1 -1
  368. package/web-shell/assets/{linear-DCKODZe2.js → linear-CSBvm435.js} +1 -1
  369. package/web-shell/assets/{mermaid.core-CTGJOk27.js → mermaid.core-CPMw15lU.js} +5 -5
  370. package/web-shell/assets/{mindmap-definition-RKZ34NQL-BKU3_3rg.js → mindmap-definition-RKZ34NQL-C_tNqXQW.js} +1 -1
  371. package/web-shell/assets/{pieDiagram-4H26LBE5-COcwBJ82.js → pieDiagram-4H26LBE5-DH_N-8yY.js} +1 -1
  372. package/web-shell/assets/{quadrantDiagram-W4KKPZXB-CQnQ443x.js → quadrantDiagram-W4KKPZXB-CRbS8UkN.js} +1 -1
  373. package/web-shell/assets/{requirementDiagram-4Y6WPE33-CZ2oj5cD.js → requirementDiagram-4Y6WPE33-DJgdZPZn.js} +1 -1
  374. package/web-shell/assets/{sankeyDiagram-5OEKKPKP-BxAv5mNu.js → sankeyDiagram-5OEKKPKP-vhL1y5zx.js} +1 -1
  375. package/web-shell/assets/{sequenceDiagram-3UESZ5HK-CztaySPs.js → sequenceDiagram-3UESZ5HK-UQthhFwd.js} +1 -1
  376. package/web-shell/assets/{stateDiagram-AJRCARHV-CTQT1oGD.js → stateDiagram-AJRCARHV-CAywEm20.js} +1 -1
  377. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-lfJQHw-7.js +1 -0
  378. package/web-shell/assets/{timeline-definition-PNZ67QCA-K9Mkex5A.js → timeline-definition-PNZ67QCA-CLO8b3FD.js} +1 -1
  379. package/web-shell/assets/{vennDiagram-CIIHVFJN-B2rVIw76.js → vennDiagram-CIIHVFJN-BNAAh0Mu.js} +1 -1
  380. package/web-shell/assets/{wardley-L42UT6IY-Z1w2JR4M.js → wardley-L42UT6IY-CUY7bLpN.js} +1 -1
  381. package/web-shell/assets/{wardleyDiagram-YWT4CUSO-CIX9aKXf.js → wardleyDiagram-YWT4CUSO-CSg_ORdW.js} +1 -1
  382. package/web-shell/assets/{xychartDiagram-2RQKCTM6-CI9DLIKB.js → xychartDiagram-2RQKCTM6-BjffV208.js} +1 -1
  383. package/web-shell/index.html +2 -2
  384. package/chunks/MaxSizedBox-INHRH72H.js +0 -86
  385. package/chunks/agent-VXDAN5JK.js +0 -82
  386. package/chunks/agent-headless-K4ZMMNBD.js +0 -76
  387. package/chunks/bridge-LGPZCFHO.js +0 -91
  388. package/chunks/channel-settings-store-CHCDRTPY.js +0 -89
  389. package/chunks/chunk-HGT6JR3U.js +0 -177
  390. package/chunks/chunk-JZA3JUDJ.js +0 -82
  391. package/chunks/chunk-SZRN75WQ.js +0 -29
  392. package/chunks/chunk-UGYMA4EI.js +0 -219
  393. package/chunks/chunk-VCBZUOSI.js +0 -8575
  394. package/chunks/contextCommand-QIZYHDR5.js +0 -81
  395. package/chunks/daemon-status-provider-OS5UWBHV.js +0 -90
  396. package/chunks/earlyInputCapture-WQT24RWD.js +0 -83
  397. package/chunks/environment-VZ7BRI4Q.js +0 -103
  398. package/chunks/errors-PCX25DVP.js +0 -89
  399. package/chunks/exitPlanMode-GHPUHBZJ.js +0 -423
  400. package/chunks/handleAutoUpdate-2CZQRJ66.js +0 -82
  401. package/chunks/i18n-XEQVMRKN.js +0 -98
  402. package/chunks/initializer-OVGZ4FLY.js +0 -87
  403. package/chunks/installationInfo-5UUQJI6Y.js +0 -81
  404. package/chunks/list-HODU6RXD.js +0 -90
  405. package/chunks/loadedSettingsAdapter-TYNLBALY.js +0 -84
  406. package/chunks/mcp-J3DFWX4A.js +0 -84
  407. package/chunks/nonInteractiveCli-F4GYSMHT.js +0 -144
  408. package/chunks/pidfile-4VNAR3EP.js +0 -87
  409. package/chunks/read-file-LZXUR4TO.js +0 -31
  410. package/chunks/resumeHistoryUtils-65OX3SGJ.js +0 -92
  411. package/chunks/ripGrep-2U2FRGMV.js +0 -74
  412. package/chunks/runtime-AXJWIEDU.js +0 -120
  413. package/chunks/serve-W2GC47CM.js +0 -90
  414. package/chunks/shell-45IPBDP5.js +0 -84
  415. package/chunks/spawnChannel-PVXQ5AGV.js +0 -83
  416. package/chunks/src-AY65BYR7.js +0 -3166
  417. package/chunks/standalone-update-ZMFNKAEY.js +0 -93
  418. package/chunks/task-create-N7WQSGYA.js +0 -25
  419. package/chunks/theme-manager-YYPZFBAH.js +0 -78
  420. package/chunks/total-session-admission-JXES723M.js +0 -85
  421. package/chunks/trustedFolders-HVI7IXUH.js +0 -94
  422. package/chunks/updateCheck-WUJGHWZZ.js +0 -93
  423. package/chunks/useAutoAcceptIndicator-CHSTZLZD.js +0 -94
  424. package/chunks/workspace-providers-status-GAKSF4LL.js +0 -87
  425. package/chunks/workspace-registry-A7NQUONG.js +0 -89
  426. package/chunks/workspace-service-STGVSO4N.js +0 -99
  427. package/chunks/workspace-skills-status-66AK3DUA.js +0 -86
  428. package/chunks/write-file-HUUCEG4P.js +0 -74
  429. package/web-shell/assets/channel-Bzdx6E8P.js +0 -1
  430. package/web-shell/assets/classDiagram-4FO5ZUOK-Cd6wbiuK.js +0 -1
  431. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-Cd6wbiuK.js +0 -1
  432. package/web-shell/assets/index-B2bXx96W.js +0 -1249
  433. package/web-shell/assets/index-_8mKjx8q.css +0 -5
  434. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-BjMdT6E_.js +0 -1
  435. package/chunks/{chunk-TARRHLLG.js → chunk-QUGAUQGJ.js} +25 -25
  436. package/chunks/{chunk-U7ZFW55U.js → chunk-VOQXFAY5.js} +977 -977
  437. /package/chunks/{chunk-LXXMOYPL.js → chunk-VXZBKKQR.js} +0 -0
@@ -103,6 +103,24 @@ HTTP hooks send hook input as POST requests to specified URLs. They support URL
103
103
  - **DNS Validation**: Validates domain resolution before requests to prevent DNS rebinding attacks
104
104
  - **Environment Variable Interpolation**: `${VAR}` syntax, only allows variables in `allowedEnvVars` whitelist
105
105
 
106
+ #### Allowing private-network hooks (managed environments only)
107
+
108
+ By default, HTTP hooks cannot target private or link-local IP ranges. In platform-managed environments where the hook receiver is a first-party, VPC-internal endpoint (for example, an internal API gateway resolving to `172.16.0.0/12`), you can relax the IP-range checks with:
109
+
110
+ ```json
111
+ {
112
+ "security": {
113
+ "allowPrivateNetworkHooks": true
114
+ }
115
+ }
116
+ ```
117
+
118
+ - This setting is **only honored from User, System, and SystemDefaults settings scopes**. A value set in Workspace (project) settings is ignored and logged as a warning, so a cloned repository can never self-grant this bypass.
119
+ - The flag relaxes only the general private/CGNAT/link-local **range** checks. Cloud metadata endpoints stay blocked in every configuration: the `BLOCKED_HOSTS` list is matched literally (`metadata.google.internal`, `metadata.azure.internal`, ...), and the metadata IPs `169.254.169.254` and `100.100.100.200` are blocked in all serialized forms (including IPv4-mapped IPv6 such as `::ffff:a9fe:a9fe`) and after DNS resolution.
120
+ - The `security.allowedHttpHookUrls` whitelist still applies independently. In managed environments, pair this flag with a whitelist so only the intended internal endpoints are reachable.
121
+
122
+ > **Warning:** Enabling this flag lets hooks reach internal infrastructure on your network. Enable it only in trusted, managed settings — never in a repository you do not control.
123
+
106
124
  **Example:**
107
125
 
108
126
  ```json
@@ -129,6 +147,87 @@ HTTP hooks send hook input as POST requests to specified URLs. They support URL
129
147
  }
130
148
  ```
131
149
 
150
+ **Example: External Judgment Service Adapter**
151
+
152
+ The `remote-security-check` config above expects `http://127.0.0.1:8080/hooks/pre-tool-use` to
153
+ already be running a service that speaks this contract (POST `{tool_name, tool_input, ...}` in,
154
+ `hookSpecificOutput.permissionDecision` out). Here is a minimal, stdlib-only adapter that fills
155
+ in that missing half, wired to one concrete judgment backend so the whole thing is runnable and
156
+ testable end to end rather than a stub. Only the `review()` function is backend-specific — swap
157
+ its body and request/response shape for whichever service you use; everything else (the server,
158
+ the fail-open handling, the hook response shape) stays the same regardless of backend.
159
+
160
+ _Disclosure: the backend used below, [invinoveritas](https://api.babyblueviper.com), is a
161
+ service the author is affiliated with — used here because it was the one that could be
162
+ verified end to end for this example, not an endorsement. Any HTTP service that returns a
163
+ JSON verdict works equally well; only `review()` needs to change._
164
+
165
+ _Data handling: with `matcher: "*"`, the full `tool_input` of **every** tool call is sent to
166
+ the judgment backend — treat that input as sensitive (it may contain file contents, paths, or
167
+ secrets). Narrow the matcher (e.g. to `run_shell_command`) if you only need to judge shell
168
+ commands._
169
+
170
+ ```python
171
+ #!/usr/bin/env python3
172
+ # judgment_hook.py -- run: JUDGMENT_API_KEY=... python3 judgment_hook.py
173
+ import json, os, sys, urllib.request
174
+ from http.server import BaseHTTPRequestHandler, HTTPServer
175
+
176
+ JUDGMENT_API_KEY = os.environ["JUDGMENT_API_KEY"]
177
+ JUDGMENT_URL = os.environ.get("JUDGMENT_URL", "https://api.babyblueviper.com/review")
178
+
179
+ def review(tool_name, tool_input):
180
+ """POST the call to the judgment backend and return its verdict. This is the
181
+ one function to change for a different backend -- request/response shape
182
+ below matches invinoveritas's /review; adapt both to your own backend's
183
+ contract if you swap it out."""
184
+ body = json.dumps({
185
+ "artifact": json.dumps({"tool_name": tool_name, "tool_input": tool_input}),
186
+ "artifact_type": "shell_command" if tool_name in ("run_shell_command", "shell") else "general",
187
+ "context": f"qwen-code PreToolUse: {tool_name}",
188
+ }).encode()
189
+ req = urllib.request.Request(
190
+ JUDGMENT_URL, data=body,
191
+ headers={"Authorization": f"Bearer {JUDGMENT_API_KEY}", "Content-Type": "application/json"},
192
+ )
193
+ # Keep this below the HTTP hook's own timeout (10s in the config above), so a "deny"
194
+ # verdict is always returned before the hook gives up and fails open on its own.
195
+ with urllib.request.urlopen(req, timeout=8) as resp:
196
+ return json.loads(resp.read()) # response includes a "verdict" field: "reject" denies, anything else allows
197
+
198
+ class Handler(BaseHTTPRequestHandler):
199
+ def do_POST(self):
200
+ payload = json.loads(self.rfile.read(int(self.headers.get("Content-Length", 0))) or b"{}")
201
+ tool_name, tool_input = payload.get("tool_name", "unknown"), payload.get("tool_input", {})
202
+ try:
203
+ verdict = review(tool_name, tool_input)
204
+ decision = "deny" if verdict.get("verdict") == "reject" else "allow"
205
+ reason = verdict.get("summary", f"judgment verdict: {verdict.get('verdict')}")
206
+ except Exception as e:
207
+ decision, reason = "allow", "judgment backend unavailable, failing open" # never block on a review-side outage
208
+ print(f"judgment backend unavailable for {tool_name}, failing open: {e}", file=sys.stderr)
209
+ out = {"continue": True, "decision": decision, "hookSpecificOutput": {
210
+ "hookEventName": "PreToolUse", "permissionDecision": decision, "permissionDecisionReason": reason,
211
+ }}
212
+ body = json.dumps(out).encode()
213
+ self.send_response(200)
214
+ self.send_header("Content-Type", "application/json")
215
+ self.send_header("Content-Length", str(len(body)))
216
+ self.end_headers()
217
+ self.wfile.write(body)
218
+ def log_message(self, *a): pass
219
+
220
+ if __name__ == "__main__":
221
+ HTTPServer(("127.0.0.1", 8080), Handler).serve_forever()
222
+ ```
223
+
224
+ Tested live end to end against the real production API above: a genuinely destructive input
225
+ (`{"tool_name": "run_shell_command", "tool_input": {"command": "rm -rf /important_data"}}`)
226
+ returned `permissionDecision: "deny"` with a real explanation; a benign one (`ls -la`) returned
227
+ `"allow"`. Fails open on any network/timeout/malformed-response issue from the judgment
228
+ backend, so an outage never blocks legitimate tool calls — same discipline the `command`-hook
229
+ examples above apply with their own exit codes.
230
+
132
231
  ### Function Hooks
133
232
 
134
233
  Function hooks directly call registered JavaScript/TypeScript functions. They are used internally by the Skill system and are not currently exposed as a public API for end users.
@@ -139,6 +238,8 @@ Function hooks directly call registered JavaScript/TypeScript functions. They ar
139
238
 
140
239
  Prompt hooks use an LLM to evaluate hook input and return a decision. This is useful for making intelligent decisions based on context, such as determining whether to allow or block an operation.
141
240
 
241
+ > **Data handling:** A prompt hook sends its event input to the configured model provider. When file-backed debug logging is enabled, the fully expanded prompt-hook request is also written to the session debug log. Treat hook input and debug logs as potentially sensitive.
242
+
142
243
  **How it works:**
143
244
 
144
245
  1. The hook input JSON is injected into your prompt using the `$ARGUMENTS` placeholder
@@ -184,7 +285,7 @@ Prompt hooks can be used with most hook events, including:
184
285
  - `PostToolUse` - Evaluate tool results and potentially inject context
185
286
  - `Stop` - Determine whether to continue or stop
186
287
  - `SubagentStop` - Evaluate subagent results
187
- - `UserPromptSubmit` - Evaluate or enrich user prompts
288
+ - `UserPromptSubmit` - Evaluate or enrich eligible model-bound prompts
188
289
 
189
290
  **Example: Stop Hook**
190
291
 
@@ -235,24 +336,25 @@ When `ok` is `false`, Qwen Code will continue working and use the `reason` as co
235
336
 
236
337
  Hooks fire at specific points during a Qwen Code session. Different events support different matchers to filter trigger conditions.
237
338
 
238
- | Event | Triggered When | Matcher Target |
239
- | :------------------- | :---------------------------------------- | :------------------------------------------------------------- |
240
- | `PreToolUse` | Before tool execution | Tool id (`write_file`, `read_file`, `run_shell_command`, etc.) |
241
- | `PostToolUse` | After successful tool execution | Tool id |
242
- | `PostToolUseFailure` | After tool execution fails | Tool id |
243
- | `UserPromptSubmit` | After user submits prompt | None (always fires) |
244
- | `SessionStart` | When session starts or resumes | Source (`startup`, `resume`, `clear`, `compact`) |
245
- | `SessionEnd` | When session ends | Reason (`clear`, `logout`, `prompt_input_exit`, etc.) |
246
- | `MessageDisplay` | Repeatedly, as the reply streams | None (always fires) |
247
- | `Stop` | When Claude prepares to conclude response | None (always fires) |
248
- | `SubagentStart` | When subagent starts | Agent type (`Bash`, `Explorer`, `Plan`, etc.) |
249
- | `SubagentStop` | When subagent stops | Agent type |
250
- | `PreCompact` | Before conversation compaction | Trigger (`manual`, `auto`) |
251
- | `Notification` | When notifications are sent | Type (`permission_prompt`, `idle_prompt`, `auth_success`) |
252
- | `PermissionRequest` | When permission dialog is shown | Tool id |
253
- | `PermissionDenied` | When tool permission is denied | Tool id |
254
- | `TodoCreated` | When a new todo item is created | None (always fires) |
255
- | `TodoCompleted` | When a todo item is marked as completed | None (always fires) |
339
+ | Event | Triggered When | Matcher Target |
340
+ | :------------------- | :---------------------------------------------- | :------------------------------------------------------------- |
341
+ | `PreToolUse` | Before tool execution | Tool id (`write_file`, `read_file`, `run_shell_command`, etc.) |
342
+ | `PostToolUse` | After successful tool execution | Tool id |
343
+ | `PostToolUseFailure` | After tool execution fails | Tool id |
344
+ | `UserPromptSubmit` | Before supported model invocations | None |
345
+ | `SessionStart` | When session starts or resumes | Source (`startup`, `resume`, `clear`, `compact`) |
346
+ | `SessionEnd` | When session ends | Reason (`clear`, `logout`, `prompt_input_exit`, etc.) |
347
+ | `SessionDelete` | After an explicitly selected session is deleted | None |
348
+ | `MessageDisplay` | Repeatedly, as the reply streams | None (always fires) |
349
+ | `Stop` | When Claude prepares to conclude response | None (always fires) |
350
+ | `SubagentStart` | When subagent starts | Agent type (`Bash`, `Explorer`, `Plan`, etc.) |
351
+ | `SubagentStop` | When subagent stops | Agent type |
352
+ | `PreCompact` | Before conversation compaction | Trigger (`manual`, `auto`) |
353
+ | `Notification` | When notifications are sent | Type (`permission_prompt`, `idle_prompt`, `auth_success`) |
354
+ | `PermissionRequest` | When permission dialog is shown | Tool id |
355
+ | `PermissionDenied` | When tool permission is denied | Tool id |
356
+ | `TodoCreated` | When a new todo item is created | None (always fires) |
357
+ | `TodoCompleted` | When a todo item is marked as completed | None (always fires) |
256
358
 
257
359
  ### Matcher Patterns
258
360
 
@@ -264,6 +366,7 @@ Hooks fire at specific points during a Qwen Code session. Different events suppo
264
366
  | Subagent Events | `SubagentStart`, `SubagentStop` | ✅ Regex | Agent type: `Bash`, `Explorer`, etc. |
265
367
  | Session Events | `SessionStart` | ✅ Regex | Source: `startup`, `resume`, `clear`, `compact` |
266
368
  | Session Events | `SessionEnd` | ✅ Regex | Reason: `clear`, `logout`, `prompt_input_exit`, etc. |
369
+ | Session Events | `SessionDelete` | ❌ No | N/A |
267
370
  | Notification Events | `Notification` | ✅ Exact match | Type: `permission_prompt`, `idle_prompt`, `auth_success` |
268
371
  | Compact Events | `PreCompact` | ✅ Exact match | Trigger: `manual`, `auto` |
269
372
  | Todo Events | `TodoCreated`, `TodoCompleted` | ❌ No | N/A |
@@ -327,7 +430,18 @@ Hooks fire at specific points during a Qwen Code session. Different events suppo
327
430
 
328
431
  ### Hook Input Structure
329
432
 
330
- All hooks receive standardized input in JSON format through stdin (command) or POST body (http).
433
+ All hook executors receive the standardized event input. The delivery boundary depends on the executor:
434
+
435
+ | Hook type | Input recipient |
436
+ | :--------- | :-------------------------------------------------------------- |
437
+ | `command` | Child process through JSON on `stdin` |
438
+ | `http` | Configured endpoint through a JSON `POST` body |
439
+ | `function` | Trusted in-process callback |
440
+ | `prompt` | Configured model provider after the input replaces `$ARGUMENTS` |
441
+
442
+ Function hooks are trusted code running in the Qwen process. They receive an in-process object, so fields must not be treated as immutable against a function hook.
443
+
444
+ Qwen does not control whether a hook process, endpoint, callback, or model provider retains or forwards its input. Review each configured executor's data-handling policy.
331
445
 
332
446
  **Common Fields:**
333
447
 
@@ -343,6 +457,8 @@ All hooks receive standardized input in JSON format through stdin (command) or P
343
457
 
344
458
  Event-specific fields are added based on the hook type. When running in a subagent, `agent_id` and `agent_type` are additionally included.
345
459
 
460
+ Hook input is a forward-extensible JSON contract: new optional fields can be added to existing events. Consumers should ignore unknown fields. A strict decoder that rejects unknown properties must be updated to explicitly allow each new optional field before upgrading Qwen Code. For security-sensitive hooks, a decoder failure can change fail-open or fail-closed behavior, so administrators must validate the upgraded payload against the deployed hook before rollout.
461
+
346
462
  ### Hook Output Structure
347
463
 
348
464
  Hook output is returned via `stdout` (command) or HTTP response body (http) as JSON.
@@ -491,22 +607,41 @@ The `permissionDecision` value controls whether the tool runs:
491
607
 
492
608
  #### UserPromptSubmit
493
609
 
494
- **Purpose**: Executed when the user submits a prompt to modify, validate, or enrich the input.
610
+ **Purpose**: Executed before supported model invocations to validate, block, or enrich the current model-bound prompt. The event currently covers `UserQuery`, `ToolResult`, and `Hook` sends, while `Retry`, `Steer`, `Cron`, `Notification`, and `Teammate` sends are skipped. It can therefore occur on continuation paths, and `prompt` must not be assumed to be raw user input.
495
611
 
496
612
  **Event-specific fields**:
497
613
 
498
614
  ```json
499
615
  {
500
- "prompt": "the user's submitted prompt text"
616
+ "prompt": "current model-bound prompt for this hook invocation",
617
+ "submitted_prompt": "optional user text captured at a supported interactive TUI submission boundary"
501
618
  }
502
619
  ```
503
620
 
621
+ `submitted_prompt` is optional. It is present only when Qwen can carry provenance from a supported interactive TUI submission to a fresh `UserQuery`. It is omitted for unsupported producers and machine-driven paths such as same-turn steering, tool-result continuations, retries, cron, notifications, and teammate traffic. ACP, headless, `serve`, SDK, and remote-input paths do not produce it in this version.
622
+
623
+ Deferred input can retain the field when its provenance remains complete. A combined batch retains provenance only when every constituent item has it; edited, partially known, or otherwise ambiguous input omits the field. Prompt, command, and shell-history navigation or selected search matches, cross-restart stash restores, and conversation rewind restores also omit it because those paths can surface model-bound text without its original provenance. Consumers that require user-submitted text should treat absence as unavailable rather than falling back to `prompt`.
624
+
625
+ After restored or provenance-unavailable model-bound input is cleared or submitted, the composer also clears its undo and redo history. This prevents undo from restoring expanded text after its marker or sidecar has been consumed.
626
+
627
+ Large-paste placeholders remain compact in `submitted_prompt`; the expanded pasted content appears only in `prompt`. Consumers should treat the field as a TUI text projection rather than a byte-for-byte record of clipboard input.
628
+
629
+ Any non-empty input present while Vim mode is enabled omits `submitted_prompt`, including after Vim is disabled, because Vim registers do not carry provenance in this version. This conservative rule also covers drafts entered before enabling Vim. Clearing the composer starts a new eligible input.
630
+
631
+ This field is provenance, not authentication, tenant identity, authorization, or DLP. It is caller-supplied data. Every executor configured for this event receives it; in particular, HTTP hooks send it to their endpoint and prompt hooks send it to their model provider.
632
+
633
+ When both fields are present, prompt-hook payloads contain overlapping text and can consume additional model input tokens. There is no per-hook field suppression in this version.
634
+
635
+ Sequential UserPromptSubmit hooks can append `additionalContext` to `prompt`; `submitted_prompt` continues to represent the captured submission. Function hooks are trusted same-process code and are not constrained by an immutability guarantee.
636
+
504
637
  **Output Options**:
505
638
 
506
639
  - `decision`: "allow", "deny", "block", or "ask"
507
640
  - `reason`: human-readable explanation for the decision
508
641
  - `hookSpecificOutput.additionalContext`: additional context to append to the prompt (optional)
509
642
 
643
+ When sent to the model, injected `additionalContext` is appended as its own message part wrapped in a reserved `<qwen:user-prompt-submit-context>...</qwen:user-prompt-submit-context>` tag, so it stays distinguishable from user-authored text in model history and session transcripts. Angle brackets in hook output are escaped before wrapping, so hook content cannot close or forge the tag. The session transcript also records the user's original prompt text separately; the interactive TUI and the ACP/export transcript-replay path display that original text rather than the injected context.
644
+
510
645
  **Note**: Since UserPromptSubmitOutput extends HookOutput, all standard fields are available but only additionalContext in hookSpecificOutput is specifically defined for this event.
511
646
 
512
647
  **Example Output**:
@@ -567,6 +702,20 @@ The `permissionDecision` value controls whether the tool runs:
567
702
 
568
703
  - Standard hook output fields (typically not used for blocking)
569
704
 
705
+ #### SessionDelete
706
+
707
+ **Purpose**: Runs after an explicitly selected session has been permanently deleted. This event is fire-and-forget: output and failures cannot undo the deletion.
708
+
709
+ **Event-specific fields**:
710
+
711
+ ```json
712
+ {
713
+ "deleted_session_id": "the session that was deleted"
714
+ }
715
+ ```
716
+
717
+ The hook uses the deleting runtime's normal session fields (`session_id`, `transcript_path`, and `cwd`); over ACP, `transcript_path` is empty because the deleting runtime has no transcript of its own. `SessionDelete` currently fires for the interactive `/delete` flow and ACP's explicit `deleteSession` method; daemon REST batch deletion and internal cleanup do not emit it.
718
+
570
719
  #### MessageDisplay
571
720
 
572
721
  **Purpose**: Fires repeatedly as the assistant's reply streams — before `Stop`, which fires once at the end of the turn. Useful for live narration, incremental logging, or any consumer that wants to react to the reply as it's written rather than after the fact. This is a **fire-and-forget** event - hook output and exit codes are ignored.
@@ -633,13 +782,13 @@ The `context_usage`, `context_limit`, and `input_tokens` fields allow hook scrip
633
782
 
634
783
  #### StopFailure
635
784
 
636
- **Purpose**: Executed when the turn ends due to an API error (instead of Stop). This is a **fire-and-forget** event - hook output and exit codes are ignored.
785
+ **Purpose**: Executed when the turn ends due to an API error or loop detection (instead of Stop). This is a **fire-and-forget** event - hook output and exit codes are ignored.
637
786
 
638
787
  **Event-specific fields**:
639
788
 
640
789
  ```json
641
790
  {
642
- "error": "rate_limit | authentication_failed | billing_error | invalid_request | server_error | max_output_tokens | unknown",
791
+ "error": "rate_limit | authentication_failed | billing_error | invalid_request | server_error | max_output_tokens | loop_detected | unknown",
643
792
  "error_details": "detailed error message (optional)",
644
793
  "last_assistant_message": "the last message from the assistant before the error (optional)"
645
794
  }
@@ -1289,9 +1438,11 @@ A PostToolUse HTTP hook that sends all tool execution records to a remote audit
1289
1438
  }
1290
1439
  ```
1291
1440
 
1292
- ### Example 3: User Prompt Validation Hook
1441
+ ### Example 3: Interactive TUI Submitted Prompt Validation Hook
1442
+
1443
+ To inspect the current model-bound content instead, read `prompt`. That field can include generated or expanded content, is not the original user input, and does not imply that `UserPromptSubmit` covers every model send. Do not silently fall back from `submitted_prompt` to `prompt` when source provenance is required.
1293
1444
 
1294
- A UserPromptSubmit hook that validates user prompts for sensitive information and provides context for long prompts:
1445
+ A UserPromptSubmit hook that validates supported interactive TUI submissions for sensitive information and provides context for long prompts. It skips invocations where source provenance is unavailable. The keyword check is illustrative and is not a complete DLP policy:
1295
1446
 
1296
1447
  **prompt_validator.py**
1297
1448
 
@@ -1305,9 +1456,12 @@ try:
1305
1456
  input_data = json.load(sys.stdin)
1306
1457
  except json.JSONDecodeError as e:
1307
1458
  print(f"Error: Invalid JSON input: {e}", file=sys.stderr)
1308
- exit(1)
1459
+ sys.exit(1)
1309
1460
 
1310
- user_prompt = input_data.get("prompt", "")
1461
+ user_prompt = input_data.get("submitted_prompt")
1462
+ if user_prompt is None:
1463
+ # Do not mistake model-bound or machine-generated content for raw input.
1464
+ sys.exit(0)
1311
1465
 
1312
1466
  # Sensitive words list
1313
1467
  sensitive_words = ["password", "secret", "token", "api_key"]
@@ -1324,7 +1478,7 @@ for word in sensitive_words:
1324
1478
  }
1325
1479
  }
1326
1480
  print(json.dumps(output))
1327
- exit(0)
1481
+ sys.exit(0)
1328
1482
 
1329
1483
  # Check prompt length and add warning context if too long
1330
1484
  if len(user_prompt) > 1000:
@@ -1335,10 +1489,10 @@ if len(user_prompt) > 1000:
1335
1489
  }
1336
1490
  }
1337
1491
  print(json.dumps(output))
1338
- exit(0)
1492
+ sys.exit(0)
1339
1493
 
1340
1494
  # No processing needed for normal cases
1341
- exit(0)
1495
+ sys.exit(0)
1342
1496
  ```
1343
1497
 
1344
1498
  ## Troubleshooting
@@ -1347,5 +1501,5 @@ exit(0)
1347
1501
  - Verify hook script permissions and executability
1348
1502
  - Ensure proper JSON formatting in hook outputs
1349
1503
  - Use specific matcher patterns to avoid unintended hook execution
1350
- - Use `--debug` mode to see detailed hook matching and execution information
1504
+ - Use `--debug` mode to see detailed hook matching and execution information. Prompt-hook inputs can be written to the session debug log, so apply appropriate access and retention controls.
1351
1505
  - Temporarily disable all hooks: add `"disableAllHooks": true` in settings
@@ -295,7 +295,7 @@ The OAuth flow requires a redirect URI where the authorization provider sends th
295
295
 
296
296
  - **Local development**: By default, Qwen Code uses `http://localhost:7777/oauth/callback`. This works when running Qwen Code on your local machine with a local browser.
297
297
 
298
- - **Remote/cloud deployments**: When running Qwen Code on remote servers, cloud IDEs, or web terminals, the default `localhost` redirect will NOT work. You MUST configure `--oauth-redirect-uri` to point to a publicly accessible URL that can receive the OAuth callback.
298
+ - **Remote/cloud deployments**: When running Qwen Code on remote servers, cloud IDEs, or web terminals, the default `localhost` redirect will NOT work. Configure `--oauth-redirect-uri` with a public URL ending in `/oauth/callback`, then reverse-proxy that path to `http://127.0.0.1:7777/oauth/callback` on the machine running Qwen Code. Qwen Code does not terminate TLS; the proxy must do so.
299
299
 
300
300
  Example for remote servers:
301
301
 
@@ -304,6 +304,14 @@ qwen mcp add --transport sse remote-server https://api.example.com/sse/ \
304
304
  --oauth-redirect-uri https://your-remote-server.example.com/oauth/callback
305
305
  ```
306
306
 
307
+ For example, a reverse proxy can forward only this callback path to the local listener:
308
+
309
+ ```nginx
310
+ location = /oauth/callback {
311
+ proxy_pass http://127.0.0.1:7777;
312
+ }
313
+ ```
314
+
307
315
  #### Manual configuration via settings.json
308
316
 
309
317
  You can also configure OAuth by editing `settings.json` directly:
@@ -95,6 +95,33 @@ Auto-memory files live at `~/.qwen/projects/<project>/memory/`. All branches of
95
95
 
96
96
  Everything saved is plain markdown — you can open, edit, or delete any file at any time.
97
97
 
98
+ #### Pinned memory
99
+
100
+ Put hand-curated documents that automatic memory maintenance should preserve
101
+ under `pinned/` in a managed-memory directory, for example
102
+ `~/.qwen/projects/<project>/memory/pinned/architecture.md` or
103
+ `~/.qwen/memories/pinned/preferences.md`. Use the same frontmatter as other
104
+ memory documents. Valid pinned files are readable by Qwen and are included the
105
+ next time `MEMORY.md` is rebuilt, under the same size and file-count limits as
106
+ other memory documents.
107
+
108
+ Only the top-level `pinned/` directory directly inside a managed-memory root is
109
+ protected; nested directories such as `memory/project/pinned/` are ordinary
110
+ writable memory. Automatic extraction and Dream workers match the reserved
111
+ directory name case-insensitively.
112
+
113
+ Automatic extraction is instructed to leave pinned records and their valid
114
+ index entries unchanged, while Dream is instructed to skip `pinned/` during
115
+ consolidation. Both automatic extraction and forked Dream workers, including
116
+ background cleanup, enforce the pinned-file boundary on their write and edit
117
+ tools, including paths that resolve through a symlink into `pinned/`; their
118
+ existing read-only shell policy blocks command-line deletion. You still control
119
+ these files directly and can remove them with an explicit `/forget` request.
120
+
121
+ > **Note:** The visible `/dream` slash command runs on the main Agent. It
122
+ > receives the same skip instruction, but does not yet receive the forked
123
+ > worker's deterministic per-turn tool gate.
124
+
98
125
  ### Periodic cleanup
99
126
 
100
127
  Qwen periodically goes through its saved memories to remove duplicates and clean up outdated entries. This runs automatically in the background once a day after enough sessions have accumulated. You can trigger it manually with `/dream` if you want it to run now.
@@ -4,7 +4,9 @@
4
4
 
5
5
  Scheduled tasks let Qwen Code re-run a prompt automatically on an interval. Use them to poll a deployment, babysit a PR, check back on a long-running build, or remind yourself to do something later in the session.
6
6
 
7
- Tasks are session-scoped: they live in the current Qwen Code process and are gone when you exit. Nothing is written to disk.
7
+ Tasks created from the terminal are session-scoped: they live in the current Qwen Code process and are gone when you exit. Nothing is written to disk.
8
+
9
+ Messaging channels use a separate persistent scheduler so results can be pushed back to the originating chat after the current turn. See [Scheduled Channel Loops](./channels/overview#scheduled-channel-loops) for the channel commands, persistence behavior, and delivery constraints.
8
10
 
9
11
  > **Tip:** Scheduled tasks are enabled by default. To disable them, set `experimental.cron: false` in your [settings](../configuration/settings.md), or set `QWEN_CODE_DISABLE_CRON=1` in your environment.
10
12
 
@@ -68,6 +68,20 @@ Use project Skills for:
68
68
 
69
69
  Project Skills can be checked into git and automatically become available to teammates.
70
70
 
71
+ ### Maintain auto-generated project Skills
72
+
73
+ Qwen Code tracks successful uses of generated project Skills locally, including while new Auto Skill generation is disabled, so re-enabling maintenance cannot mistake a recently used skill for an inactive one. When **Auto Skill** is enabled, it periodically moves inactive generated Skills out of the active library. Only directories named `.qwen/skills/auto-skill-*` whose `SKILL.md` frontmatter contains `source: auto-skill` are managed; personal, extension, bundled, and hand-authored Skills are never selected.
74
+
75
+ - After 30 days without a successful use or `SKILL.md` edit, an auto-skill is marked stale.
76
+ - After 90 days, its complete directory is moved to `.qwen/archived-skills/`. Nothing is permanently deleted.
77
+ - Automatic maintenance runs at most once every 7 days in trusted workspaces. Each newly observed auto-skill gets a full grace period before maintenance begins.
78
+ - A pinned auto-skill is excluded from automatic stale and archive transitions until it is unpinned.
79
+ - Archived directory names remain reserved, and an existing archive destination skips only that collision rather than stopping maintenance for other skills.
80
+
81
+ Use `/curator` to see active, stale, archived, and pinned auto-skills. Run `/curator run --dry-run` to preview a maintenance pass, `/curator run` to apply it immediately, `/curator pin <directory>` or `/curator unpin <directory>` to control per-skill maintenance, or `/curator restore <directory>` to move an archived auto-skill back into the active library.
82
+
83
+ Status and dry-run previews are available in safe mode and untrusted workspaces. Applying maintenance, changing pins, and restoring archived auto-skills require a trusted workspace outside safe mode.
84
+
71
85
  ## Write `SKILL.md`
72
86
 
73
87
  Create a `SKILL.md` file with YAML frontmatter and Markdown content:
@@ -25,14 +25,61 @@ Only `subagent_type: "fork"` accepts `fork_turns`:
25
25
 
26
26
  Tool responses and pure system reminders do not count as user turns. Regular named subagents and agent-team teammates do not accept `fork_turns`; they keep their separate conversation context.
27
27
 
28
+ ## Restricting Fork Tool Execution with `fork_tools`
29
+
30
+ Only `subagent_type: "fork"` accepts `fork_tools`. The array may contain exact canonical tool names, such as `read_file` and `grep_search`, or MCP server patterns such as `mcp__github`. The fork still receives the same model-visible tool declarations as an unrestricted fork, preserving its prompt-cache prefix, but its task prompt identifies the restriction and a call not matched by `fork_tools` is rejected before scheduling or approval.
31
+
32
+ - Forks never execute `ask_user_question`; when user input is required, they report the blocker to their parent agent.
33
+ - Omitting `fork_tools` allows every other inherited tool.
34
+ - An empty array rejects every tool call.
35
+ - `*` is not accepted; omit `fork_tools` to allow every otherwise-executable inherited tool.
36
+ - Tool names cannot have surrounding whitespace. Wildcards are accepted only as `mcp__*` or as a trailing MCP tool-prefix pattern such as `mcp__github__read_*`.
37
+ - `mcp__*` intentionally allows every MCP tool while still denying unlisted built-in tools.
38
+ - Shell command argument patterns are not supported. Listing `run_shell_command` allows that tool to proceed through its normal permission checks but does not pre-approve any command.
39
+
40
+ This is a per-invocation restriction supplied by the caller. It narrows a child fork's capabilities but is not an administrator-enforced security sandbox because the caller can omit or expand the list.
41
+
42
+ ## Reusing Fork Restrictions with `fork_profile`
43
+
44
+ A project can save a named fork restriction in `.qwen/fork-profiles/<name>.md` and select it with `fork_profile`. This is useful when several calls need the same tool boundary and task guidance:
45
+
46
+ ```markdown
47
+ ---
48
+ name: ro-research
49
+ tools:
50
+ - read_file
51
+ - grep_search
52
+ - glob
53
+ - mcp__search__*
54
+ promptHint: |
55
+ Work read-only. Prefer targeted searches and cite file evidence.
56
+ ---
57
+ ```
58
+
59
+ Then launch the fork with:
60
+
61
+ ```text
62
+ agent(description="Research", prompt="Inspect the retry path", subagent_type="fork", fork_profile="ro-research")
63
+ ```
64
+
65
+ - `fork_profile` is valid only for a fork and cannot be combined with `fork_tools` or a named teammate.
66
+ - Profiles are currently project-only. The requested name, filename, and frontmatter `name` must match exactly. The profile must resolve to a regular file inside `.qwen/fork-profiles/` and cannot exceed 64 KiB.
67
+ - `tools` is required and follows the `fork_tools` rules, including empty-array deny-all behavior.
68
+ - `promptHint` is optional and limited to 200 characters. It is escaped and framed as project-supplied guidance after the fork directive and before the authoritative tool restriction; it does not change the inherited system instruction or model-visible tool declarations. Profile files are frontmatter-only, so non-blank Markdown after the closing `---` is rejected instead of silently ignored.
69
+ - The profile is resolved once at launch. A retained fork continues with the resolved tool snapshot even if the project file later changes.
70
+ - Project fork profiles are unavailable in safe mode and bare mode, which disable local customizations.
71
+
72
+ Like `fork_tools`, a fork profile is a caller-selected restriction rather than an administrator sandbox. Its optional prompt guidance is project-controlled content.
73
+
28
74
  ### How Fork Differs from Named Subagents
29
75
 
30
- | | Named Subagent | Fork Subagent |
31
- | ------------- | -------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
32
- | Context | Starts fresh with no parent conversation history | Inherits all parent history by default; `fork_turns` can select a bounded recent window |
33
- | System prompt | Uses its own configured prompt | Uses parent's exact system prompt (for cache sharing) |
34
- | Execution | Background by default; supports an explicit foreground opt-out | Always detached; parent continues immediately |
35
- | Use case | Specialized tasks (testing, docs) | Parallel tasks that need the current context |
76
+ | | Named Subagent | Fork Subagent |
77
+ | ------------- | -------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
78
+ | Context | Starts fresh with no parent conversation history | Inherits all parent history by default; `fork_turns` can select a bounded recent window |
79
+ | System prompt | Uses its own configured prompt | Uses parent's exact system prompt (for cache sharing) |
80
+ | Tools | Configured declaration set without interactive question tools | Keeps the parent-derived declaration set for caching; execution always rejects `ask_user_question`, and `fork_tools` or `fork_profile` can independently narrow it without changing that declaration |
81
+ | Execution | Background by default; supports an explicit foreground opt-out | Always detached; parent continues immediately |
82
+ | Use case | Specialized tasks (testing, docs) | Parallel tasks that need the current context |
36
83
 
37
84
  ### When Fork is Used
38
85
 
@@ -46,9 +93,9 @@ The AI automatically uses fork when it needs to:
46
93
 
47
94
  All forks share the parent's exact API request prefix (system prompt, tools, conversation history), enabling DashScope prompt cache hits. When 3 forks run in parallel, the shared prefix is cached once and reused — saving 80%+ token costs compared to independent subagents.
48
95
 
49
- ### Recursive Fork Prevention
96
+ ### Recursive Delegation Prevention
50
97
 
51
- Fork children cannot create further forks. This is enforced at runtime — if a fork attempts to spawn another fork, it receives an error instructing it to execute tasks directly.
98
+ Fork children cannot spawn any further sub-agent. This is enforced at runtime — if a fork calls the Agent tool, it receives an error instructing it to execute tasks directly.
52
99
 
53
100
  ### Current Limitation
54
101
 
@@ -242,6 +289,26 @@ This setting accepts the same selectors described above. It is applied only
242
289
  when Qwen Code resolves the built-in Explore definition; a session, project,
243
290
  user, or extension agent named Explore keeps its own `model` setting.
244
291
 
292
+ To let the model select from user-defined grades without exposing concrete
293
+ model IDs, configure `agents.modelGrades` and optionally restrict them with
294
+ `agents.allowedGrades`:
295
+
296
+ ```json
297
+ {
298
+ "agents": {
299
+ "modelGrades": {
300
+ "small": "fast",
301
+ "high": "qwen-max"
302
+ },
303
+ "allowedGrades": ["small", "high"]
304
+ }
305
+ }
306
+ ```
307
+
308
+ The Agent tool then accepts `model: "small"` or `model: "high"` for regular
309
+ subagents. Unknown, disallowed, fork, and named-teammate grade selections are
310
+ rejected. A custom agent's explicit model still takes precedence over a grade.
311
+
245
312
  #### Permission Mode
246
313
 
247
314
  Use the optional `approvalMode` frontmatter field to control how a subagent's tool calls are approved. Valid values:
@@ -1,6 +1,6 @@
1
1
  # Tool-Use Summaries
2
2
 
3
- Qwen Code can generate a short, git-commit-subject-style label after each tool batch completes, summarizing what the batch accomplished. The label appears inline: for a completed tool group in the main view it replaces the generic `Tool × N` header; when the group is force-expanded (in the `Ctrl+O` full-detail transcript, or for error / user-initiated batches) it appears as a dim `● <label>` line below the group.
3
+ Qwen Code can generate a short, git-commit-subject-style label after each tool batch completes, summarizing what the batch accomplished. The label appears inline: for a completed tool group in the main view it replaces the generic `Tool × N` header; when the group is force-expanded (in `Ctrl+O` expanded detail mode, or for error / user-initiated batches) it appears as a dim `● <label>` line below the group.
4
4
 
5
5
  This is a UX aid for parallel tool calls: when the model fans out into several `Read` + `Grep` + `Bash` calls at once, the summary tells you the intent at a glance instead of forcing you to scan the tool list.
6
6
 
@@ -18,11 +18,11 @@ In the main transcript, a completed collapsible batch folds into a single labele
18
18
  ╰──────────────────────────────────────────────╯
19
19
  ```
20
20
 
21
- The full per-tool output is a keystroke away: press `Ctrl+O` to open the full-detail transcript.
21
+ The full per-tool output is a keystroke away: press `Ctrl+O` to toggle expanded detail mode.
22
22
 
23
- ### Full-detail transcript (`Ctrl+O`) and force-expanded groups
23
+ ### Expanded detail mode (`Ctrl+O`) and force-expanded groups
24
24
 
25
- When a group is force-expanded — in the `Ctrl+O` transcript, or for error / user-initiated batches in the main view — each tool renders individually and the summary appears as a dim badge line below the group:
25
+ When a group is force-expanded — in `Ctrl+O` expanded detail mode, or for error / user-initiated batches in the main view — each tool renders individually and the summary appears as a dim badge line below the group:
26
26
 
27
27
  ```
28
28
  ╭──────────────────────────────────────────────╮
@@ -122,7 +122,7 @@ These settings can be configured in `settings.json`:
122
122
 
123
123
  Three points that tend to trip up a first read of this feature:
124
124
 
125
- 1. **One generation per batch, shared by both display modes.** The fast-model call happens exactly once in `handleCompletedTools` when a tool batch finalizes. Opening the `Ctrl+O` transcript afterwards does **not** trigger a new call — both the main view and the full-detail transcript read from the same `tool_use_summary` history entry that was captured the first time.
125
+ 1. **One generation per batch, shared by both display modes.** The fast-model call happens exactly once in `handleCompletedTools` when a tool batch finalizes. Toggling `Ctrl+O` expanded detail mode afterwards does **not** trigger a new call — both the collapsed and the expanded rendering read from the same `tool_use_summary` history entry that was captured the first time.
126
126
  2. **No backfill on toggle or on session resume.** A `tool_group` that completed before the feature was enabled (or before you flipped the setting on, or in a resumed session — `ChatRecordingService` does not persist summary entries) will never get a label. There is no "sweep existing history" pass. If you turn this setting on mid-session, only _future_ batches will show a label; older groups keep the default rendering with no indicator that a label is missing.
127
127
  3. **Main-agent batches only.** The trigger lives in the main session's turn loop (`useGeminiStream`), so:
128
128
  - ✅ Shell, MCP, file operations, and the `Task` / subagent tool _call itself_ (as it appears in the main batch) are summarized.
@@ -132,7 +132,7 @@ Three points that tend to trip up a first read of this feature:
132
132
 
133
133
  ## Display behavior
134
134
 
135
- The main view already folds a completed collapsible batch into a single labeled row (`✓ Read 4 text files`) — the summary does the work of the old per-tool list. For full per-tool detail, press `Ctrl+O` to open the full-detail transcript, where each tool renders individually with the summary as a trailing `● <label>` line below the group.
135
+ The main view already folds a completed collapsible batch into a single labeled row (`✓ Read 4 text files`) — the summary does the work of the old per-tool list. For full per-tool detail, press `Ctrl+O` to toggle expanded detail mode, where each tool renders individually with the summary as a trailing `● <label>` line below the group.
136
136
 
137
137
  ```json
138
138
  {
@@ -170,5 +170,5 @@ If you do not want the extra cost, turn the feature off via `experimental.emitTo
170
170
 
171
171
  ## Related
172
172
 
173
- - [Full-detail transcript](../configuration/settings#ui) — press `Ctrl+O` to open the frozen full-detail transcript; the summary replaces the generic tool-group header for completed groups in the main view.
173
+ - [Expanded detail mode](../configuration/settings#ui) — press `Ctrl+O` to expand all tool outputs inline; the summary replaces the generic tool-group header for completed groups in the main view.
174
174
  - [Followup Suggestions](./followup-suggestions) — another fast-model-driven UX enhancement that shares the same `fastModel` setting.