cx-viewer 1.0.0

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 (864) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +221 -0
  3. package/cli.js +735 -0
  4. package/concepts/ar/BodyDiffJSON.md +32 -0
  5. package/concepts/ar/BodyFields.md +42 -0
  6. package/concepts/ar/CacheRebuild.md +36 -0
  7. package/concepts/ar/GlobalSettings.md +232 -0
  8. package/concepts/ar/KVCacheContent.md +49 -0
  9. package/concepts/ar/MainAgent.md +23 -0
  10. package/concepts/ar/ProxySwitch.md +50 -0
  11. package/concepts/ar/QRCode.md +25 -0
  12. package/concepts/ar/ResponseFields.md +50 -0
  13. package/concepts/ar/SubAgent-Search.md +20 -0
  14. package/concepts/ar/Teammate.md +26 -0
  15. package/concepts/ar/Tool-Agent.md +125 -0
  16. package/concepts/ar/Tool-AskUserQuestion.md +75 -0
  17. package/concepts/ar/Tool-Bash.md +167 -0
  18. package/concepts/ar/Tool-Edit.md +46 -0
  19. package/concepts/ar/Tool-EnterPlanMode.md +128 -0
  20. package/concepts/ar/Tool-EnterWorktree.md +56 -0
  21. package/concepts/ar/Tool-ExitPlanMode.md +62 -0
  22. package/concepts/ar/Tool-Glob.md +39 -0
  23. package/concepts/ar/Tool-Grep.md +57 -0
  24. package/concepts/ar/Tool-NotebookEdit.md +33 -0
  25. package/concepts/ar/Tool-Read.md +56 -0
  26. package/concepts/ar/Tool-SendMessage.md +41 -0
  27. package/concepts/ar/Tool-Skill.md +56 -0
  28. package/concepts/ar/Tool-Task.md +51 -0
  29. package/concepts/ar/Tool-TaskCreate.md +78 -0
  30. package/concepts/ar/Tool-TaskGet.md +56 -0
  31. package/concepts/ar/Tool-TaskList.md +56 -0
  32. package/concepts/ar/Tool-TaskOutput.md +40 -0
  33. package/concepts/ar/Tool-TaskStop.md +32 -0
  34. package/concepts/ar/Tool-TaskUpdate.md +123 -0
  35. package/concepts/ar/Tool-TeamCreate.md +38 -0
  36. package/concepts/ar/Tool-TeamDelete.md +30 -0
  37. package/concepts/ar/Tool-WebFetch.md +55 -0
  38. package/concepts/ar/Tool-WebSearch.md +58 -0
  39. package/concepts/ar/Tool-Write.md +39 -0
  40. package/concepts/ar/Tool-executeCode.md +41 -0
  41. package/concepts/ar/Tool-getDiagnostics.md +32 -0
  42. package/concepts/ar/Tools.md +67 -0
  43. package/concepts/ar/ToolsFirst.md +77 -0
  44. package/concepts/ar/TranslateContextPollution.md +46 -0
  45. package/concepts/ar/UltraPlan.md +55 -0
  46. package/concepts/da/BodyDiffJSON.md +32 -0
  47. package/concepts/da/BodyFields.md +42 -0
  48. package/concepts/da/CacheRebuild.md +36 -0
  49. package/concepts/da/GlobalSettings.md +232 -0
  50. package/concepts/da/KVCacheContent.md +49 -0
  51. package/concepts/da/MainAgent.md +23 -0
  52. package/concepts/da/ProxySwitch.md +50 -0
  53. package/concepts/da/QRCode.md +25 -0
  54. package/concepts/da/ResponseFields.md +50 -0
  55. package/concepts/da/SubAgent-Search.md +20 -0
  56. package/concepts/da/Teammate.md +26 -0
  57. package/concepts/da/Tool-Agent.md +125 -0
  58. package/concepts/da/Tool-AskUserQuestion.md +75 -0
  59. package/concepts/da/Tool-Bash.md +167 -0
  60. package/concepts/da/Tool-Edit.md +46 -0
  61. package/concepts/da/Tool-EnterPlanMode.md +128 -0
  62. package/concepts/da/Tool-EnterWorktree.md +56 -0
  63. package/concepts/da/Tool-ExitPlanMode.md +62 -0
  64. package/concepts/da/Tool-Glob.md +39 -0
  65. package/concepts/da/Tool-Grep.md +57 -0
  66. package/concepts/da/Tool-NotebookEdit.md +33 -0
  67. package/concepts/da/Tool-Read.md +56 -0
  68. package/concepts/da/Tool-SendMessage.md +41 -0
  69. package/concepts/da/Tool-Skill.md +56 -0
  70. package/concepts/da/Tool-Task.md +51 -0
  71. package/concepts/da/Tool-TaskCreate.md +78 -0
  72. package/concepts/da/Tool-TaskGet.md +56 -0
  73. package/concepts/da/Tool-TaskList.md +56 -0
  74. package/concepts/da/Tool-TaskOutput.md +40 -0
  75. package/concepts/da/Tool-TaskStop.md +32 -0
  76. package/concepts/da/Tool-TaskUpdate.md +123 -0
  77. package/concepts/da/Tool-TeamCreate.md +38 -0
  78. package/concepts/da/Tool-TeamDelete.md +30 -0
  79. package/concepts/da/Tool-WebFetch.md +55 -0
  80. package/concepts/da/Tool-WebSearch.md +58 -0
  81. package/concepts/da/Tool-Write.md +39 -0
  82. package/concepts/da/Tool-executeCode.md +41 -0
  83. package/concepts/da/Tool-getDiagnostics.md +32 -0
  84. package/concepts/da/Tools.md +67 -0
  85. package/concepts/da/ToolsFirst.md +77 -0
  86. package/concepts/da/TranslateContextPollution.md +46 -0
  87. package/concepts/da/UltraPlan.md +55 -0
  88. package/concepts/de/BodyDiffJSON.md +32 -0
  89. package/concepts/de/BodyFields.md +42 -0
  90. package/concepts/de/CacheRebuild.md +36 -0
  91. package/concepts/de/GlobalSettings.md +232 -0
  92. package/concepts/de/KVCacheContent.md +49 -0
  93. package/concepts/de/MainAgent.md +23 -0
  94. package/concepts/de/ProxySwitch.md +50 -0
  95. package/concepts/de/QRCode.md +25 -0
  96. package/concepts/de/ResponseFields.md +50 -0
  97. package/concepts/de/SubAgent-Search.md +20 -0
  98. package/concepts/de/Teammate.md +26 -0
  99. package/concepts/de/Tool-Agent.md +125 -0
  100. package/concepts/de/Tool-AskUserQuestion.md +75 -0
  101. package/concepts/de/Tool-Bash.md +167 -0
  102. package/concepts/de/Tool-Edit.md +46 -0
  103. package/concepts/de/Tool-EnterPlanMode.md +128 -0
  104. package/concepts/de/Tool-EnterWorktree.md +56 -0
  105. package/concepts/de/Tool-ExitPlanMode.md +62 -0
  106. package/concepts/de/Tool-Glob.md +39 -0
  107. package/concepts/de/Tool-Grep.md +57 -0
  108. package/concepts/de/Tool-NotebookEdit.md +33 -0
  109. package/concepts/de/Tool-Read.md +56 -0
  110. package/concepts/de/Tool-SendMessage.md +41 -0
  111. package/concepts/de/Tool-Skill.md +56 -0
  112. package/concepts/de/Tool-Task.md +51 -0
  113. package/concepts/de/Tool-TaskCreate.md +78 -0
  114. package/concepts/de/Tool-TaskGet.md +56 -0
  115. package/concepts/de/Tool-TaskList.md +56 -0
  116. package/concepts/de/Tool-TaskOutput.md +40 -0
  117. package/concepts/de/Tool-TaskStop.md +32 -0
  118. package/concepts/de/Tool-TaskUpdate.md +123 -0
  119. package/concepts/de/Tool-TeamCreate.md +38 -0
  120. package/concepts/de/Tool-TeamDelete.md +30 -0
  121. package/concepts/de/Tool-WebFetch.md +55 -0
  122. package/concepts/de/Tool-WebSearch.md +58 -0
  123. package/concepts/de/Tool-Write.md +39 -0
  124. package/concepts/de/Tool-executeCode.md +41 -0
  125. package/concepts/de/Tool-getDiagnostics.md +32 -0
  126. package/concepts/de/Tools.md +67 -0
  127. package/concepts/de/ToolsFirst.md +77 -0
  128. package/concepts/de/TranslateContextPollution.md +46 -0
  129. package/concepts/de/UltraPlan.md +55 -0
  130. package/concepts/en/BodyDiffJSON.md +32 -0
  131. package/concepts/en/BodyFields.md +42 -0
  132. package/concepts/en/CacheRebuild.md +36 -0
  133. package/concepts/en/GlobalSettings.md +232 -0
  134. package/concepts/en/KVCacheContent.md +49 -0
  135. package/concepts/en/MainAgent.md +23 -0
  136. package/concepts/en/ProxySwitch.md +50 -0
  137. package/concepts/en/QRCode.md +29 -0
  138. package/concepts/en/ResponseFields.md +50 -0
  139. package/concepts/en/SubAgent-Search.md +20 -0
  140. package/concepts/en/Teammate.md +26 -0
  141. package/concepts/en/Tool-Agent.md +125 -0
  142. package/concepts/en/Tool-AskUserQuestion.md +75 -0
  143. package/concepts/en/Tool-Bash.md +167 -0
  144. package/concepts/en/Tool-Edit.md +46 -0
  145. package/concepts/en/Tool-EnterPlanMode.md +128 -0
  146. package/concepts/en/Tool-EnterWorktree.md +56 -0
  147. package/concepts/en/Tool-ExitPlanMode.md +62 -0
  148. package/concepts/en/Tool-Glob.md +39 -0
  149. package/concepts/en/Tool-Grep.md +57 -0
  150. package/concepts/en/Tool-NotebookEdit.md +33 -0
  151. package/concepts/en/Tool-Read.md +56 -0
  152. package/concepts/en/Tool-SendMessage.md +41 -0
  153. package/concepts/en/Tool-Skill.md +56 -0
  154. package/concepts/en/Tool-Task.md +51 -0
  155. package/concepts/en/Tool-TaskCreate.md +78 -0
  156. package/concepts/en/Tool-TaskGet.md +56 -0
  157. package/concepts/en/Tool-TaskList.md +56 -0
  158. package/concepts/en/Tool-TaskOutput.md +40 -0
  159. package/concepts/en/Tool-TaskStop.md +32 -0
  160. package/concepts/en/Tool-TaskUpdate.md +123 -0
  161. package/concepts/en/Tool-TeamCreate.md +38 -0
  162. package/concepts/en/Tool-TeamDelete.md +30 -0
  163. package/concepts/en/Tool-WebFetch.md +55 -0
  164. package/concepts/en/Tool-WebSearch.md +58 -0
  165. package/concepts/en/Tool-Write.md +39 -0
  166. package/concepts/en/Tool-executeCode.md +41 -0
  167. package/concepts/en/Tool-getDiagnostics.md +32 -0
  168. package/concepts/en/Tools.md +67 -0
  169. package/concepts/en/ToolsFirst.md +77 -0
  170. package/concepts/en/TranslateContextPollution.md +46 -0
  171. package/concepts/en/UltraPlan.md +55 -0
  172. package/concepts/es/BodyDiffJSON.md +32 -0
  173. package/concepts/es/BodyFields.md +42 -0
  174. package/concepts/es/CacheRebuild.md +36 -0
  175. package/concepts/es/GlobalSettings.md +232 -0
  176. package/concepts/es/KVCacheContent.md +49 -0
  177. package/concepts/es/MainAgent.md +23 -0
  178. package/concepts/es/ProxySwitch.md +50 -0
  179. package/concepts/es/QRCode.md +25 -0
  180. package/concepts/es/ResponseFields.md +50 -0
  181. package/concepts/es/SubAgent-Search.md +20 -0
  182. package/concepts/es/Teammate.md +26 -0
  183. package/concepts/es/Tool-Agent.md +125 -0
  184. package/concepts/es/Tool-AskUserQuestion.md +75 -0
  185. package/concepts/es/Tool-Bash.md +167 -0
  186. package/concepts/es/Tool-Edit.md +46 -0
  187. package/concepts/es/Tool-EnterPlanMode.md +128 -0
  188. package/concepts/es/Tool-EnterWorktree.md +56 -0
  189. package/concepts/es/Tool-ExitPlanMode.md +62 -0
  190. package/concepts/es/Tool-Glob.md +39 -0
  191. package/concepts/es/Tool-Grep.md +57 -0
  192. package/concepts/es/Tool-NotebookEdit.md +33 -0
  193. package/concepts/es/Tool-Read.md +56 -0
  194. package/concepts/es/Tool-SendMessage.md +41 -0
  195. package/concepts/es/Tool-Skill.md +56 -0
  196. package/concepts/es/Tool-Task.md +51 -0
  197. package/concepts/es/Tool-TaskCreate.md +78 -0
  198. package/concepts/es/Tool-TaskGet.md +56 -0
  199. package/concepts/es/Tool-TaskList.md +56 -0
  200. package/concepts/es/Tool-TaskOutput.md +40 -0
  201. package/concepts/es/Tool-TaskStop.md +32 -0
  202. package/concepts/es/Tool-TaskUpdate.md +123 -0
  203. package/concepts/es/Tool-TeamCreate.md +38 -0
  204. package/concepts/es/Tool-TeamDelete.md +30 -0
  205. package/concepts/es/Tool-WebFetch.md +55 -0
  206. package/concepts/es/Tool-WebSearch.md +58 -0
  207. package/concepts/es/Tool-Write.md +39 -0
  208. package/concepts/es/Tool-executeCode.md +41 -0
  209. package/concepts/es/Tool-getDiagnostics.md +32 -0
  210. package/concepts/es/Tools.md +67 -0
  211. package/concepts/es/ToolsFirst.md +77 -0
  212. package/concepts/es/TranslateContextPollution.md +46 -0
  213. package/concepts/es/UltraPlan.md +55 -0
  214. package/concepts/fr/BodyDiffJSON.md +32 -0
  215. package/concepts/fr/BodyFields.md +42 -0
  216. package/concepts/fr/CacheRebuild.md +36 -0
  217. package/concepts/fr/GlobalSettings.md +232 -0
  218. package/concepts/fr/KVCacheContent.md +49 -0
  219. package/concepts/fr/MainAgent.md +23 -0
  220. package/concepts/fr/ProxySwitch.md +50 -0
  221. package/concepts/fr/QRCode.md +25 -0
  222. package/concepts/fr/ResponseFields.md +50 -0
  223. package/concepts/fr/SubAgent-Search.md +20 -0
  224. package/concepts/fr/Teammate.md +26 -0
  225. package/concepts/fr/Tool-Agent.md +125 -0
  226. package/concepts/fr/Tool-AskUserQuestion.md +75 -0
  227. package/concepts/fr/Tool-Bash.md +167 -0
  228. package/concepts/fr/Tool-Edit.md +46 -0
  229. package/concepts/fr/Tool-EnterPlanMode.md +128 -0
  230. package/concepts/fr/Tool-EnterWorktree.md +56 -0
  231. package/concepts/fr/Tool-ExitPlanMode.md +62 -0
  232. package/concepts/fr/Tool-Glob.md +39 -0
  233. package/concepts/fr/Tool-Grep.md +57 -0
  234. package/concepts/fr/Tool-NotebookEdit.md +33 -0
  235. package/concepts/fr/Tool-Read.md +56 -0
  236. package/concepts/fr/Tool-SendMessage.md +41 -0
  237. package/concepts/fr/Tool-Skill.md +56 -0
  238. package/concepts/fr/Tool-Task.md +51 -0
  239. package/concepts/fr/Tool-TaskCreate.md +78 -0
  240. package/concepts/fr/Tool-TaskGet.md +56 -0
  241. package/concepts/fr/Tool-TaskList.md +56 -0
  242. package/concepts/fr/Tool-TaskOutput.md +40 -0
  243. package/concepts/fr/Tool-TaskStop.md +32 -0
  244. package/concepts/fr/Tool-TaskUpdate.md +123 -0
  245. package/concepts/fr/Tool-TeamCreate.md +38 -0
  246. package/concepts/fr/Tool-TeamDelete.md +30 -0
  247. package/concepts/fr/Tool-WebFetch.md +55 -0
  248. package/concepts/fr/Tool-WebSearch.md +58 -0
  249. package/concepts/fr/Tool-Write.md +39 -0
  250. package/concepts/fr/Tool-executeCode.md +41 -0
  251. package/concepts/fr/Tool-getDiagnostics.md +32 -0
  252. package/concepts/fr/Tools.md +67 -0
  253. package/concepts/fr/ToolsFirst.md +77 -0
  254. package/concepts/fr/TranslateContextPollution.md +46 -0
  255. package/concepts/fr/UltraPlan.md +55 -0
  256. package/concepts/it/BodyDiffJSON.md +32 -0
  257. package/concepts/it/BodyFields.md +42 -0
  258. package/concepts/it/CacheRebuild.md +36 -0
  259. package/concepts/it/GlobalSettings.md +232 -0
  260. package/concepts/it/KVCacheContent.md +49 -0
  261. package/concepts/it/MainAgent.md +23 -0
  262. package/concepts/it/ProxySwitch.md +50 -0
  263. package/concepts/it/QRCode.md +25 -0
  264. package/concepts/it/ResponseFields.md +50 -0
  265. package/concepts/it/SubAgent-Search.md +20 -0
  266. package/concepts/it/Teammate.md +26 -0
  267. package/concepts/it/Tool-Agent.md +125 -0
  268. package/concepts/it/Tool-AskUserQuestion.md +75 -0
  269. package/concepts/it/Tool-Bash.md +167 -0
  270. package/concepts/it/Tool-Edit.md +46 -0
  271. package/concepts/it/Tool-EnterPlanMode.md +128 -0
  272. package/concepts/it/Tool-EnterWorktree.md +56 -0
  273. package/concepts/it/Tool-ExitPlanMode.md +62 -0
  274. package/concepts/it/Tool-Glob.md +39 -0
  275. package/concepts/it/Tool-Grep.md +57 -0
  276. package/concepts/it/Tool-NotebookEdit.md +33 -0
  277. package/concepts/it/Tool-Read.md +56 -0
  278. package/concepts/it/Tool-SendMessage.md +41 -0
  279. package/concepts/it/Tool-Skill.md +56 -0
  280. package/concepts/it/Tool-Task.md +51 -0
  281. package/concepts/it/Tool-TaskCreate.md +78 -0
  282. package/concepts/it/Tool-TaskGet.md +56 -0
  283. package/concepts/it/Tool-TaskList.md +56 -0
  284. package/concepts/it/Tool-TaskOutput.md +40 -0
  285. package/concepts/it/Tool-TaskStop.md +32 -0
  286. package/concepts/it/Tool-TaskUpdate.md +123 -0
  287. package/concepts/it/Tool-TeamCreate.md +38 -0
  288. package/concepts/it/Tool-TeamDelete.md +30 -0
  289. package/concepts/it/Tool-WebFetch.md +55 -0
  290. package/concepts/it/Tool-WebSearch.md +58 -0
  291. package/concepts/it/Tool-Write.md +39 -0
  292. package/concepts/it/Tool-executeCode.md +41 -0
  293. package/concepts/it/Tool-getDiagnostics.md +32 -0
  294. package/concepts/it/Tools.md +67 -0
  295. package/concepts/it/ToolsFirst.md +77 -0
  296. package/concepts/it/TranslateContextPollution.md +46 -0
  297. package/concepts/it/UltraPlan.md +55 -0
  298. package/concepts/ja/BodyDiffJSON.md +32 -0
  299. package/concepts/ja/BodyFields.md +42 -0
  300. package/concepts/ja/CacheRebuild.md +36 -0
  301. package/concepts/ja/GlobalSettings.md +232 -0
  302. package/concepts/ja/KVCacheContent.md +49 -0
  303. package/concepts/ja/MainAgent.md +23 -0
  304. package/concepts/ja/ProxySwitch.md +50 -0
  305. package/concepts/ja/QRCode.md +25 -0
  306. package/concepts/ja/ResponseFields.md +50 -0
  307. package/concepts/ja/SubAgent-Search.md +20 -0
  308. package/concepts/ja/Teammate.md +26 -0
  309. package/concepts/ja/Tool-Agent.md +125 -0
  310. package/concepts/ja/Tool-AskUserQuestion.md +75 -0
  311. package/concepts/ja/Tool-Bash.md +167 -0
  312. package/concepts/ja/Tool-Edit.md +46 -0
  313. package/concepts/ja/Tool-EnterPlanMode.md +128 -0
  314. package/concepts/ja/Tool-EnterWorktree.md +56 -0
  315. package/concepts/ja/Tool-ExitPlanMode.md +62 -0
  316. package/concepts/ja/Tool-Glob.md +39 -0
  317. package/concepts/ja/Tool-Grep.md +57 -0
  318. package/concepts/ja/Tool-NotebookEdit.md +33 -0
  319. package/concepts/ja/Tool-Read.md +56 -0
  320. package/concepts/ja/Tool-SendMessage.md +41 -0
  321. package/concepts/ja/Tool-Skill.md +56 -0
  322. package/concepts/ja/Tool-Task.md +51 -0
  323. package/concepts/ja/Tool-TaskCreate.md +78 -0
  324. package/concepts/ja/Tool-TaskGet.md +56 -0
  325. package/concepts/ja/Tool-TaskList.md +56 -0
  326. package/concepts/ja/Tool-TaskOutput.md +40 -0
  327. package/concepts/ja/Tool-TaskStop.md +32 -0
  328. package/concepts/ja/Tool-TaskUpdate.md +123 -0
  329. package/concepts/ja/Tool-TeamCreate.md +38 -0
  330. package/concepts/ja/Tool-TeamDelete.md +30 -0
  331. package/concepts/ja/Tool-WebFetch.md +55 -0
  332. package/concepts/ja/Tool-WebSearch.md +58 -0
  333. package/concepts/ja/Tool-Write.md +39 -0
  334. package/concepts/ja/Tool-executeCode.md +41 -0
  335. package/concepts/ja/Tool-getDiagnostics.md +32 -0
  336. package/concepts/ja/Tools.md +67 -0
  337. package/concepts/ja/ToolsFirst.md +77 -0
  338. package/concepts/ja/TranslateContextPollution.md +46 -0
  339. package/concepts/ja/UltraPlan.md +55 -0
  340. package/concepts/ko/BodyDiffJSON.md +32 -0
  341. package/concepts/ko/BodyFields.md +42 -0
  342. package/concepts/ko/CacheRebuild.md +36 -0
  343. package/concepts/ko/GlobalSettings.md +232 -0
  344. package/concepts/ko/KVCacheContent.md +49 -0
  345. package/concepts/ko/MainAgent.md +23 -0
  346. package/concepts/ko/ProxySwitch.md +50 -0
  347. package/concepts/ko/QRCode.md +25 -0
  348. package/concepts/ko/ResponseFields.md +50 -0
  349. package/concepts/ko/SubAgent-Search.md +20 -0
  350. package/concepts/ko/Teammate.md +26 -0
  351. package/concepts/ko/Tool-Agent.md +125 -0
  352. package/concepts/ko/Tool-AskUserQuestion.md +75 -0
  353. package/concepts/ko/Tool-Bash.md +167 -0
  354. package/concepts/ko/Tool-Edit.md +46 -0
  355. package/concepts/ko/Tool-EnterPlanMode.md +128 -0
  356. package/concepts/ko/Tool-EnterWorktree.md +56 -0
  357. package/concepts/ko/Tool-ExitPlanMode.md +62 -0
  358. package/concepts/ko/Tool-Glob.md +39 -0
  359. package/concepts/ko/Tool-Grep.md +57 -0
  360. package/concepts/ko/Tool-NotebookEdit.md +33 -0
  361. package/concepts/ko/Tool-Read.md +56 -0
  362. package/concepts/ko/Tool-SendMessage.md +41 -0
  363. package/concepts/ko/Tool-Skill.md +56 -0
  364. package/concepts/ko/Tool-Task.md +51 -0
  365. package/concepts/ko/Tool-TaskCreate.md +78 -0
  366. package/concepts/ko/Tool-TaskGet.md +56 -0
  367. package/concepts/ko/Tool-TaskList.md +56 -0
  368. package/concepts/ko/Tool-TaskOutput.md +40 -0
  369. package/concepts/ko/Tool-TaskStop.md +32 -0
  370. package/concepts/ko/Tool-TaskUpdate.md +123 -0
  371. package/concepts/ko/Tool-TeamCreate.md +38 -0
  372. package/concepts/ko/Tool-TeamDelete.md +30 -0
  373. package/concepts/ko/Tool-WebFetch.md +55 -0
  374. package/concepts/ko/Tool-WebSearch.md +58 -0
  375. package/concepts/ko/Tool-Write.md +39 -0
  376. package/concepts/ko/Tool-executeCode.md +41 -0
  377. package/concepts/ko/Tool-getDiagnostics.md +32 -0
  378. package/concepts/ko/Tools.md +67 -0
  379. package/concepts/ko/ToolsFirst.md +77 -0
  380. package/concepts/ko/TranslateContextPollution.md +46 -0
  381. package/concepts/ko/UltraPlan.md +55 -0
  382. package/concepts/no/BodyDiffJSON.md +32 -0
  383. package/concepts/no/BodyFields.md +42 -0
  384. package/concepts/no/CacheRebuild.md +36 -0
  385. package/concepts/no/GlobalSettings.md +232 -0
  386. package/concepts/no/KVCacheContent.md +49 -0
  387. package/concepts/no/MainAgent.md +23 -0
  388. package/concepts/no/ProxySwitch.md +50 -0
  389. package/concepts/no/QRCode.md +25 -0
  390. package/concepts/no/ResponseFields.md +50 -0
  391. package/concepts/no/SubAgent-Search.md +20 -0
  392. package/concepts/no/Teammate.md +26 -0
  393. package/concepts/no/Tool-Agent.md +125 -0
  394. package/concepts/no/Tool-AskUserQuestion.md +75 -0
  395. package/concepts/no/Tool-Bash.md +167 -0
  396. package/concepts/no/Tool-Edit.md +46 -0
  397. package/concepts/no/Tool-EnterPlanMode.md +128 -0
  398. package/concepts/no/Tool-EnterWorktree.md +56 -0
  399. package/concepts/no/Tool-ExitPlanMode.md +62 -0
  400. package/concepts/no/Tool-Glob.md +39 -0
  401. package/concepts/no/Tool-Grep.md +57 -0
  402. package/concepts/no/Tool-NotebookEdit.md +33 -0
  403. package/concepts/no/Tool-Read.md +56 -0
  404. package/concepts/no/Tool-SendMessage.md +41 -0
  405. package/concepts/no/Tool-Skill.md +56 -0
  406. package/concepts/no/Tool-Task.md +51 -0
  407. package/concepts/no/Tool-TaskCreate.md +78 -0
  408. package/concepts/no/Tool-TaskGet.md +56 -0
  409. package/concepts/no/Tool-TaskList.md +56 -0
  410. package/concepts/no/Tool-TaskOutput.md +40 -0
  411. package/concepts/no/Tool-TaskStop.md +32 -0
  412. package/concepts/no/Tool-TaskUpdate.md +123 -0
  413. package/concepts/no/Tool-TeamCreate.md +38 -0
  414. package/concepts/no/Tool-TeamDelete.md +30 -0
  415. package/concepts/no/Tool-WebFetch.md +55 -0
  416. package/concepts/no/Tool-WebSearch.md +58 -0
  417. package/concepts/no/Tool-Write.md +39 -0
  418. package/concepts/no/Tool-executeCode.md +41 -0
  419. package/concepts/no/Tool-getDiagnostics.md +32 -0
  420. package/concepts/no/Tools.md +67 -0
  421. package/concepts/no/ToolsFirst.md +77 -0
  422. package/concepts/no/TranslateContextPollution.md +46 -0
  423. package/concepts/no/UltraPlan.md +55 -0
  424. package/concepts/pl/BodyDiffJSON.md +32 -0
  425. package/concepts/pl/BodyFields.md +42 -0
  426. package/concepts/pl/CacheRebuild.md +36 -0
  427. package/concepts/pl/GlobalSettings.md +232 -0
  428. package/concepts/pl/KVCacheContent.md +49 -0
  429. package/concepts/pl/MainAgent.md +23 -0
  430. package/concepts/pl/ProxySwitch.md +50 -0
  431. package/concepts/pl/QRCode.md +25 -0
  432. package/concepts/pl/ResponseFields.md +50 -0
  433. package/concepts/pl/SubAgent-Search.md +20 -0
  434. package/concepts/pl/Teammate.md +26 -0
  435. package/concepts/pl/Tool-Agent.md +125 -0
  436. package/concepts/pl/Tool-AskUserQuestion.md +75 -0
  437. package/concepts/pl/Tool-Bash.md +167 -0
  438. package/concepts/pl/Tool-Edit.md +46 -0
  439. package/concepts/pl/Tool-EnterPlanMode.md +128 -0
  440. package/concepts/pl/Tool-EnterWorktree.md +56 -0
  441. package/concepts/pl/Tool-ExitPlanMode.md +62 -0
  442. package/concepts/pl/Tool-Glob.md +39 -0
  443. package/concepts/pl/Tool-Grep.md +57 -0
  444. package/concepts/pl/Tool-NotebookEdit.md +33 -0
  445. package/concepts/pl/Tool-Read.md +56 -0
  446. package/concepts/pl/Tool-SendMessage.md +41 -0
  447. package/concepts/pl/Tool-Skill.md +56 -0
  448. package/concepts/pl/Tool-Task.md +51 -0
  449. package/concepts/pl/Tool-TaskCreate.md +78 -0
  450. package/concepts/pl/Tool-TaskGet.md +56 -0
  451. package/concepts/pl/Tool-TaskList.md +56 -0
  452. package/concepts/pl/Tool-TaskOutput.md +40 -0
  453. package/concepts/pl/Tool-TaskStop.md +32 -0
  454. package/concepts/pl/Tool-TaskUpdate.md +123 -0
  455. package/concepts/pl/Tool-TeamCreate.md +38 -0
  456. package/concepts/pl/Tool-TeamDelete.md +30 -0
  457. package/concepts/pl/Tool-WebFetch.md +55 -0
  458. package/concepts/pl/Tool-WebSearch.md +58 -0
  459. package/concepts/pl/Tool-Write.md +39 -0
  460. package/concepts/pl/Tool-executeCode.md +41 -0
  461. package/concepts/pl/Tool-getDiagnostics.md +32 -0
  462. package/concepts/pl/Tools.md +67 -0
  463. package/concepts/pl/ToolsFirst.md +77 -0
  464. package/concepts/pl/TranslateContextPollution.md +46 -0
  465. package/concepts/pl/UltraPlan.md +55 -0
  466. package/concepts/pt-BR/BodyDiffJSON.md +32 -0
  467. package/concepts/pt-BR/BodyFields.md +42 -0
  468. package/concepts/pt-BR/CacheRebuild.md +36 -0
  469. package/concepts/pt-BR/GlobalSettings.md +232 -0
  470. package/concepts/pt-BR/KVCacheContent.md +49 -0
  471. package/concepts/pt-BR/MainAgent.md +23 -0
  472. package/concepts/pt-BR/ProxySwitch.md +50 -0
  473. package/concepts/pt-BR/QRCode.md +25 -0
  474. package/concepts/pt-BR/ResponseFields.md +50 -0
  475. package/concepts/pt-BR/SubAgent-Search.md +20 -0
  476. package/concepts/pt-BR/Teammate.md +26 -0
  477. package/concepts/pt-BR/Tool-Agent.md +125 -0
  478. package/concepts/pt-BR/Tool-AskUserQuestion.md +75 -0
  479. package/concepts/pt-BR/Tool-Bash.md +167 -0
  480. package/concepts/pt-BR/Tool-Edit.md +46 -0
  481. package/concepts/pt-BR/Tool-EnterPlanMode.md +128 -0
  482. package/concepts/pt-BR/Tool-EnterWorktree.md +56 -0
  483. package/concepts/pt-BR/Tool-ExitPlanMode.md +62 -0
  484. package/concepts/pt-BR/Tool-Glob.md +39 -0
  485. package/concepts/pt-BR/Tool-Grep.md +57 -0
  486. package/concepts/pt-BR/Tool-NotebookEdit.md +33 -0
  487. package/concepts/pt-BR/Tool-Read.md +56 -0
  488. package/concepts/pt-BR/Tool-SendMessage.md +41 -0
  489. package/concepts/pt-BR/Tool-Skill.md +56 -0
  490. package/concepts/pt-BR/Tool-Task.md +51 -0
  491. package/concepts/pt-BR/Tool-TaskCreate.md +78 -0
  492. package/concepts/pt-BR/Tool-TaskGet.md +56 -0
  493. package/concepts/pt-BR/Tool-TaskList.md +56 -0
  494. package/concepts/pt-BR/Tool-TaskOutput.md +40 -0
  495. package/concepts/pt-BR/Tool-TaskStop.md +32 -0
  496. package/concepts/pt-BR/Tool-TaskUpdate.md +123 -0
  497. package/concepts/pt-BR/Tool-TeamCreate.md +38 -0
  498. package/concepts/pt-BR/Tool-TeamDelete.md +30 -0
  499. package/concepts/pt-BR/Tool-WebFetch.md +55 -0
  500. package/concepts/pt-BR/Tool-WebSearch.md +58 -0
  501. package/concepts/pt-BR/Tool-Write.md +39 -0
  502. package/concepts/pt-BR/Tool-executeCode.md +41 -0
  503. package/concepts/pt-BR/Tool-getDiagnostics.md +32 -0
  504. package/concepts/pt-BR/Tools.md +67 -0
  505. package/concepts/pt-BR/ToolsFirst.md +77 -0
  506. package/concepts/pt-BR/TranslateContextPollution.md +46 -0
  507. package/concepts/pt-BR/UltraPlan.md +55 -0
  508. package/concepts/ru/BodyDiffJSON.md +32 -0
  509. package/concepts/ru/BodyFields.md +42 -0
  510. package/concepts/ru/CacheRebuild.md +36 -0
  511. package/concepts/ru/GlobalSettings.md +232 -0
  512. package/concepts/ru/KVCacheContent.md +49 -0
  513. package/concepts/ru/MainAgent.md +23 -0
  514. package/concepts/ru/ProxySwitch.md +50 -0
  515. package/concepts/ru/QRCode.md +25 -0
  516. package/concepts/ru/ResponseFields.md +50 -0
  517. package/concepts/ru/SubAgent-Search.md +20 -0
  518. package/concepts/ru/Teammate.md +26 -0
  519. package/concepts/ru/Tool-Agent.md +125 -0
  520. package/concepts/ru/Tool-AskUserQuestion.md +75 -0
  521. package/concepts/ru/Tool-Bash.md +167 -0
  522. package/concepts/ru/Tool-Edit.md +46 -0
  523. package/concepts/ru/Tool-EnterPlanMode.md +128 -0
  524. package/concepts/ru/Tool-EnterWorktree.md +56 -0
  525. package/concepts/ru/Tool-ExitPlanMode.md +62 -0
  526. package/concepts/ru/Tool-Glob.md +39 -0
  527. package/concepts/ru/Tool-Grep.md +57 -0
  528. package/concepts/ru/Tool-NotebookEdit.md +33 -0
  529. package/concepts/ru/Tool-Read.md +56 -0
  530. package/concepts/ru/Tool-SendMessage.md +41 -0
  531. package/concepts/ru/Tool-Skill.md +56 -0
  532. package/concepts/ru/Tool-Task.md +51 -0
  533. package/concepts/ru/Tool-TaskCreate.md +78 -0
  534. package/concepts/ru/Tool-TaskGet.md +56 -0
  535. package/concepts/ru/Tool-TaskList.md +56 -0
  536. package/concepts/ru/Tool-TaskOutput.md +40 -0
  537. package/concepts/ru/Tool-TaskStop.md +32 -0
  538. package/concepts/ru/Tool-TaskUpdate.md +123 -0
  539. package/concepts/ru/Tool-TeamCreate.md +38 -0
  540. package/concepts/ru/Tool-TeamDelete.md +30 -0
  541. package/concepts/ru/Tool-WebFetch.md +55 -0
  542. package/concepts/ru/Tool-WebSearch.md +58 -0
  543. package/concepts/ru/Tool-Write.md +39 -0
  544. package/concepts/ru/Tool-executeCode.md +41 -0
  545. package/concepts/ru/Tool-getDiagnostics.md +32 -0
  546. package/concepts/ru/Tools.md +67 -0
  547. package/concepts/ru/ToolsFirst.md +77 -0
  548. package/concepts/ru/TranslateContextPollution.md +46 -0
  549. package/concepts/ru/UltraPlan.md +55 -0
  550. package/concepts/th/BodyDiffJSON.md +32 -0
  551. package/concepts/th/BodyFields.md +42 -0
  552. package/concepts/th/CacheRebuild.md +36 -0
  553. package/concepts/th/GlobalSettings.md +232 -0
  554. package/concepts/th/KVCacheContent.md +49 -0
  555. package/concepts/th/MainAgent.md +23 -0
  556. package/concepts/th/ProxySwitch.md +50 -0
  557. package/concepts/th/QRCode.md +25 -0
  558. package/concepts/th/ResponseFields.md +50 -0
  559. package/concepts/th/SubAgent-Search.md +20 -0
  560. package/concepts/th/Teammate.md +26 -0
  561. package/concepts/th/Tool-Agent.md +125 -0
  562. package/concepts/th/Tool-AskUserQuestion.md +75 -0
  563. package/concepts/th/Tool-Bash.md +167 -0
  564. package/concepts/th/Tool-Edit.md +46 -0
  565. package/concepts/th/Tool-EnterPlanMode.md +128 -0
  566. package/concepts/th/Tool-EnterWorktree.md +56 -0
  567. package/concepts/th/Tool-ExitPlanMode.md +62 -0
  568. package/concepts/th/Tool-Glob.md +39 -0
  569. package/concepts/th/Tool-Grep.md +57 -0
  570. package/concepts/th/Tool-NotebookEdit.md +33 -0
  571. package/concepts/th/Tool-Read.md +56 -0
  572. package/concepts/th/Tool-SendMessage.md +41 -0
  573. package/concepts/th/Tool-Skill.md +56 -0
  574. package/concepts/th/Tool-Task.md +51 -0
  575. package/concepts/th/Tool-TaskCreate.md +78 -0
  576. package/concepts/th/Tool-TaskGet.md +56 -0
  577. package/concepts/th/Tool-TaskList.md +56 -0
  578. package/concepts/th/Tool-TaskOutput.md +40 -0
  579. package/concepts/th/Tool-TaskStop.md +32 -0
  580. package/concepts/th/Tool-TaskUpdate.md +123 -0
  581. package/concepts/th/Tool-TeamCreate.md +38 -0
  582. package/concepts/th/Tool-TeamDelete.md +30 -0
  583. package/concepts/th/Tool-WebFetch.md +55 -0
  584. package/concepts/th/Tool-WebSearch.md +58 -0
  585. package/concepts/th/Tool-Write.md +39 -0
  586. package/concepts/th/Tool-executeCode.md +41 -0
  587. package/concepts/th/Tool-getDiagnostics.md +32 -0
  588. package/concepts/th/Tools.md +67 -0
  589. package/concepts/th/ToolsFirst.md +77 -0
  590. package/concepts/th/TranslateContextPollution.md +46 -0
  591. package/concepts/th/UltraPlan.md +55 -0
  592. package/concepts/tr/BodyDiffJSON.md +32 -0
  593. package/concepts/tr/BodyFields.md +42 -0
  594. package/concepts/tr/CacheRebuild.md +36 -0
  595. package/concepts/tr/GlobalSettings.md +232 -0
  596. package/concepts/tr/KVCacheContent.md +49 -0
  597. package/concepts/tr/MainAgent.md +23 -0
  598. package/concepts/tr/ProxySwitch.md +50 -0
  599. package/concepts/tr/QRCode.md +25 -0
  600. package/concepts/tr/ResponseFields.md +50 -0
  601. package/concepts/tr/SubAgent-Search.md +20 -0
  602. package/concepts/tr/Teammate.md +26 -0
  603. package/concepts/tr/Tool-Agent.md +125 -0
  604. package/concepts/tr/Tool-AskUserQuestion.md +75 -0
  605. package/concepts/tr/Tool-Bash.md +167 -0
  606. package/concepts/tr/Tool-Edit.md +46 -0
  607. package/concepts/tr/Tool-EnterPlanMode.md +128 -0
  608. package/concepts/tr/Tool-EnterWorktree.md +56 -0
  609. package/concepts/tr/Tool-ExitPlanMode.md +62 -0
  610. package/concepts/tr/Tool-Glob.md +39 -0
  611. package/concepts/tr/Tool-Grep.md +57 -0
  612. package/concepts/tr/Tool-NotebookEdit.md +33 -0
  613. package/concepts/tr/Tool-Read.md +56 -0
  614. package/concepts/tr/Tool-SendMessage.md +41 -0
  615. package/concepts/tr/Tool-Skill.md +56 -0
  616. package/concepts/tr/Tool-Task.md +51 -0
  617. package/concepts/tr/Tool-TaskCreate.md +78 -0
  618. package/concepts/tr/Tool-TaskGet.md +56 -0
  619. package/concepts/tr/Tool-TaskList.md +56 -0
  620. package/concepts/tr/Tool-TaskOutput.md +40 -0
  621. package/concepts/tr/Tool-TaskStop.md +32 -0
  622. package/concepts/tr/Tool-TaskUpdate.md +123 -0
  623. package/concepts/tr/Tool-TeamCreate.md +38 -0
  624. package/concepts/tr/Tool-TeamDelete.md +30 -0
  625. package/concepts/tr/Tool-WebFetch.md +55 -0
  626. package/concepts/tr/Tool-WebSearch.md +58 -0
  627. package/concepts/tr/Tool-Write.md +39 -0
  628. package/concepts/tr/Tool-executeCode.md +41 -0
  629. package/concepts/tr/Tool-getDiagnostics.md +32 -0
  630. package/concepts/tr/Tools.md +67 -0
  631. package/concepts/tr/ToolsFirst.md +77 -0
  632. package/concepts/tr/TranslateContextPollution.md +46 -0
  633. package/concepts/tr/UltraPlan.md +55 -0
  634. package/concepts/uk/BodyDiffJSON.md +32 -0
  635. package/concepts/uk/BodyFields.md +42 -0
  636. package/concepts/uk/CacheRebuild.md +36 -0
  637. package/concepts/uk/GlobalSettings.md +232 -0
  638. package/concepts/uk/KVCacheContent.md +49 -0
  639. package/concepts/uk/MainAgent.md +23 -0
  640. package/concepts/uk/ProxySwitch.md +50 -0
  641. package/concepts/uk/QRCode.md +25 -0
  642. package/concepts/uk/ResponseFields.md +50 -0
  643. package/concepts/uk/SubAgent-Search.md +20 -0
  644. package/concepts/uk/Teammate.md +26 -0
  645. package/concepts/uk/Tool-Agent.md +125 -0
  646. package/concepts/uk/Tool-AskUserQuestion.md +75 -0
  647. package/concepts/uk/Tool-Bash.md +167 -0
  648. package/concepts/uk/Tool-Edit.md +46 -0
  649. package/concepts/uk/Tool-EnterPlanMode.md +128 -0
  650. package/concepts/uk/Tool-EnterWorktree.md +56 -0
  651. package/concepts/uk/Tool-ExitPlanMode.md +62 -0
  652. package/concepts/uk/Tool-Glob.md +39 -0
  653. package/concepts/uk/Tool-Grep.md +57 -0
  654. package/concepts/uk/Tool-NotebookEdit.md +33 -0
  655. package/concepts/uk/Tool-Read.md +56 -0
  656. package/concepts/uk/Tool-SendMessage.md +41 -0
  657. package/concepts/uk/Tool-Skill.md +56 -0
  658. package/concepts/uk/Tool-Task.md +51 -0
  659. package/concepts/uk/Tool-TaskCreate.md +78 -0
  660. package/concepts/uk/Tool-TaskGet.md +56 -0
  661. package/concepts/uk/Tool-TaskList.md +56 -0
  662. package/concepts/uk/Tool-TaskOutput.md +40 -0
  663. package/concepts/uk/Tool-TaskStop.md +32 -0
  664. package/concepts/uk/Tool-TaskUpdate.md +123 -0
  665. package/concepts/uk/Tool-TeamCreate.md +38 -0
  666. package/concepts/uk/Tool-TeamDelete.md +30 -0
  667. package/concepts/uk/Tool-WebFetch.md +55 -0
  668. package/concepts/uk/Tool-WebSearch.md +58 -0
  669. package/concepts/uk/Tool-Write.md +39 -0
  670. package/concepts/uk/Tool-executeCode.md +41 -0
  671. package/concepts/uk/Tool-getDiagnostics.md +32 -0
  672. package/concepts/uk/Tools.md +67 -0
  673. package/concepts/uk/ToolsFirst.md +77 -0
  674. package/concepts/uk/TranslateContextPollution.md +46 -0
  675. package/concepts/uk/UltraPlan.md +55 -0
  676. package/concepts/zh/BodyDiffJSON.md +32 -0
  677. package/concepts/zh/BodyFields.md +42 -0
  678. package/concepts/zh/CacheRebuild.md +36 -0
  679. package/concepts/zh/GlobalSettings.md +232 -0
  680. package/concepts/zh/KVCacheContent.md +49 -0
  681. package/concepts/zh/MainAgent.md +23 -0
  682. package/concepts/zh/ProxySwitch.md +50 -0
  683. package/concepts/zh/QRCode.md +29 -0
  684. package/concepts/zh/ResponseFields.md +50 -0
  685. package/concepts/zh/SubAgent-Search.md +20 -0
  686. package/concepts/zh/Teammate.md +26 -0
  687. package/concepts/zh/Tool-Agent.md +125 -0
  688. package/concepts/zh/Tool-AskUserQuestion.md +75 -0
  689. package/concepts/zh/Tool-Bash.md +167 -0
  690. package/concepts/zh/Tool-Edit.md +46 -0
  691. package/concepts/zh/Tool-EnterPlanMode.md +128 -0
  692. package/concepts/zh/Tool-EnterWorktree.md +56 -0
  693. package/concepts/zh/Tool-ExitPlanMode.md +62 -0
  694. package/concepts/zh/Tool-Glob.md +39 -0
  695. package/concepts/zh/Tool-Grep.md +57 -0
  696. package/concepts/zh/Tool-NotebookEdit.md +33 -0
  697. package/concepts/zh/Tool-Read.md +56 -0
  698. package/concepts/zh/Tool-SendMessage.md +41 -0
  699. package/concepts/zh/Tool-Skill.md +56 -0
  700. package/concepts/zh/Tool-Task.md +51 -0
  701. package/concepts/zh/Tool-TaskCreate.md +78 -0
  702. package/concepts/zh/Tool-TaskGet.md +56 -0
  703. package/concepts/zh/Tool-TaskList.md +56 -0
  704. package/concepts/zh/Tool-TaskOutput.md +40 -0
  705. package/concepts/zh/Tool-TaskStop.md +32 -0
  706. package/concepts/zh/Tool-TaskUpdate.md +123 -0
  707. package/concepts/zh/Tool-TeamCreate.md +38 -0
  708. package/concepts/zh/Tool-TeamDelete.md +30 -0
  709. package/concepts/zh/Tool-WebFetch.md +55 -0
  710. package/concepts/zh/Tool-WebSearch.md +58 -0
  711. package/concepts/zh/Tool-Write.md +39 -0
  712. package/concepts/zh/Tool-executeCode.md +41 -0
  713. package/concepts/zh/Tool-getDiagnostics.md +32 -0
  714. package/concepts/zh/Tools.md +67 -0
  715. package/concepts/zh/ToolsFirst.md +77 -0
  716. package/concepts/zh/TranslateContextPollution.md +46 -0
  717. package/concepts/zh/UltraPlan.md +55 -0
  718. package/concepts/zh-TW/BodyDiffJSON.md +32 -0
  719. package/concepts/zh-TW/BodyFields.md +42 -0
  720. package/concepts/zh-TW/CacheRebuild.md +36 -0
  721. package/concepts/zh-TW/GlobalSettings.md +232 -0
  722. package/concepts/zh-TW/KVCacheContent.md +49 -0
  723. package/concepts/zh-TW/MainAgent.md +23 -0
  724. package/concepts/zh-TW/ProxySwitch.md +50 -0
  725. package/concepts/zh-TW/QRCode.md +25 -0
  726. package/concepts/zh-TW/ResponseFields.md +50 -0
  727. package/concepts/zh-TW/SubAgent-Search.md +20 -0
  728. package/concepts/zh-TW/Teammate.md +26 -0
  729. package/concepts/zh-TW/Tool-Agent.md +125 -0
  730. package/concepts/zh-TW/Tool-AskUserQuestion.md +75 -0
  731. package/concepts/zh-TW/Tool-Bash.md +167 -0
  732. package/concepts/zh-TW/Tool-Edit.md +46 -0
  733. package/concepts/zh-TW/Tool-EnterPlanMode.md +128 -0
  734. package/concepts/zh-TW/Tool-EnterWorktree.md +56 -0
  735. package/concepts/zh-TW/Tool-ExitPlanMode.md +62 -0
  736. package/concepts/zh-TW/Tool-Glob.md +39 -0
  737. package/concepts/zh-TW/Tool-Grep.md +57 -0
  738. package/concepts/zh-TW/Tool-NotebookEdit.md +33 -0
  739. package/concepts/zh-TW/Tool-Read.md +56 -0
  740. package/concepts/zh-TW/Tool-SendMessage.md +41 -0
  741. package/concepts/zh-TW/Tool-Skill.md +56 -0
  742. package/concepts/zh-TW/Tool-Task.md +51 -0
  743. package/concepts/zh-TW/Tool-TaskCreate.md +78 -0
  744. package/concepts/zh-TW/Tool-TaskGet.md +56 -0
  745. package/concepts/zh-TW/Tool-TaskList.md +56 -0
  746. package/concepts/zh-TW/Tool-TaskOutput.md +40 -0
  747. package/concepts/zh-TW/Tool-TaskStop.md +32 -0
  748. package/concepts/zh-TW/Tool-TaskUpdate.md +123 -0
  749. package/concepts/zh-TW/Tool-TeamCreate.md +38 -0
  750. package/concepts/zh-TW/Tool-TeamDelete.md +30 -0
  751. package/concepts/zh-TW/Tool-WebFetch.md +55 -0
  752. package/concepts/zh-TW/Tool-WebSearch.md +58 -0
  753. package/concepts/zh-TW/Tool-Write.md +39 -0
  754. package/concepts/zh-TW/Tool-executeCode.md +41 -0
  755. package/concepts/zh-TW/Tool-getDiagnostics.md +32 -0
  756. package/concepts/zh-TW/Tools.md +67 -0
  757. package/concepts/zh-TW/ToolsFirst.md +77 -0
  758. package/concepts/zh-TW/TranslateContextPollution.md +46 -0
  759. package/concepts/zh-TW/UltraPlan.md +55 -0
  760. package/dist/assets/App-BzrN42Qt.js +41 -0
  761. package/dist/assets/App-fG2r3jFq.css +1 -0
  762. package/dist/assets/AppHeader-B3hrnZr-.css +41 -0
  763. package/dist/assets/AppHeader.module-BMU2vyC4.js +1246 -0
  764. package/dist/assets/Mobile-BnDkLcBv.css +1 -0
  765. package/dist/assets/Mobile-C9wxQTXV.js +10 -0
  766. package/dist/assets/_baseUniq-CXWHShmB.js +1 -0
  767. package/dist/assets/arc-qbol0NJo.js +1 -0
  768. package/dist/assets/architectureDiagram-Q4EWVU46-COZebb1N.js +36 -0
  769. package/dist/assets/blockDiagram-DXYQGD6D-COCgzPKy.js +132 -0
  770. package/dist/assets/c4Diagram-AHTNJAMY-Bs5XvLEo.js +10 -0
  771. package/dist/assets/channel-DvLUZ3Xf.js +1 -0
  772. package/dist/assets/chunk-4BX2VUAB-CyGriz9d.js +1 -0
  773. package/dist/assets/chunk-4TB4RGXK-DlT_q-fl.js +206 -0
  774. package/dist/assets/chunk-55IACEB6-NHN99ZNC.js +1 -0
  775. package/dist/assets/chunk-EDXVE4YY-fK4f9Na9.js +1 -0
  776. package/dist/assets/chunk-FMBD7UC4-DL-dQIq1.js +15 -0
  777. package/dist/assets/chunk-OYMX7WX6-6uruB4VY.js +231 -0
  778. package/dist/assets/chunk-QZHKN3VN-CCWIqLO8.js +1 -0
  779. package/dist/assets/chunk-YZCP3GAM-Cu84DMJo.js +1 -0
  780. package/dist/assets/classDiagram-6PBFFD2Q-ByKhp2Tk.js +1 -0
  781. package/dist/assets/classDiagram-v2-HSJHXN6E-ByKhp2Tk.js +1 -0
  782. package/dist/assets/clone-DZHpE494.js +1 -0
  783. package/dist/assets/cose-bilkent-S5V4N54A-Dqi4iU3-.js +1 -0
  784. package/dist/assets/cytoscape.esm-DxGcaOPV.js +331 -0
  785. package/dist/assets/dagre-KV5264BT-Dl-EJ9rb.js +4 -0
  786. package/dist/assets/default-avatar-CT9tlZjd.svg +1 -0
  787. package/dist/assets/default-model-avatar-DlbUPjyv.svg +1 -0
  788. package/dist/assets/defaultLocale-DX6XiGOO.js +1 -0
  789. package/dist/assets/diagram-5BDNPKRD-BYtyzF0D.js +10 -0
  790. package/dist/assets/diagram-G4DWMVQ6-BuETHFNU.js +24 -0
  791. package/dist/assets/diagram-MMDJMWI5-Z02oZp6I.js +43 -0
  792. package/dist/assets/diagram-TYMM5635-BpGlKv8l.js +24 -0
  793. package/dist/assets/erDiagram-SMLLAGMA-C4YngeQh.js +85 -0
  794. package/dist/assets/flowDiagram-DWJPFMVM-BWddFffg.js +162 -0
  795. package/dist/assets/ganttDiagram-T4ZO3ILL-Bg0jOD4m.js +292 -0
  796. package/dist/assets/gitGraphDiagram-UUTBAWPF-Bz-3sTXZ.js +106 -0
  797. package/dist/assets/graph-XiH8DkIu.js +1 -0
  798. package/dist/assets/html2canvas.esm-QH1iLAAe.js +22 -0
  799. package/dist/assets/index-BuUsWKGZ.js +41 -0
  800. package/dist/assets/index-DCtZ2KSX.css +1 -0
  801. package/dist/assets/infoDiagram-42DDH7IO-DLo-lOCE.js +2 -0
  802. package/dist/assets/init-Gi6I4Gst.js +1 -0
  803. package/dist/assets/ishikawaDiagram-UXIWVN3A-BsIzT5eO.js +70 -0
  804. package/dist/assets/journeyDiagram-VCZTEJTY-C3bOkKqv.js +139 -0
  805. package/dist/assets/kanban-definition-6JOO6SKY-D-rJRNbp.js +89 -0
  806. package/dist/assets/katex-DkKDou_j.js +257 -0
  807. package/dist/assets/layout-Bqp8Hh1c.js +1 -0
  808. package/dist/assets/linear-BWRSipGb.js +1 -0
  809. package/dist/assets/loading-pet-12a9GTQC.gif +0 -0
  810. package/dist/assets/mermaid.core-CJa7klhs.js +308 -0
  811. package/dist/assets/min-CQ_VyzMd.js +1 -0
  812. package/dist/assets/mindmap-definition-QFDTVHPH-Bnj7DDSx.js +96 -0
  813. package/dist/assets/model-deepseek-LDuqTN2N.svg +2 -0
  814. package/dist/assets/ordinal-Cboi1Yqb.js +1 -0
  815. package/dist/assets/pieDiagram-DEJITSTG-CC8a7Ylw.js +30 -0
  816. package/dist/assets/quadrantDiagram-34T5L4WZ-CrmL1WUV.js +7 -0
  817. package/dist/assets/requirementDiagram-MS252O5E-TfkX4u_6.js +84 -0
  818. package/dist/assets/sankeyDiagram-XADWPNL6-DMwBbND7.js +10 -0
  819. package/dist/assets/sequenceDiagram-FGHM5R23-CFghMYsm.js +157 -0
  820. package/dist/assets/stateDiagram-FHFEXIEX-1H6JIM7l.js +1 -0
  821. package/dist/assets/stateDiagram-v2-QKLJ7IA2-CtXMaKcb.js +1 -0
  822. package/dist/assets/timeline-definition-GMOUNBTQ-DnLMBlVa.js +120 -0
  823. package/dist/assets/vennDiagram-DHZGUBPP-DoIkY_KL.js +34 -0
  824. package/dist/assets/wardley-RL74JXVD-3n5XmOD5.js +162 -0
  825. package/dist/assets/wardleyDiagram-NUSXRM2D-UMOq3ofC.js +20 -0
  826. package/dist/assets/xychartDiagram-5P7HB3ND-CNDuQ5Cg.js +7 -0
  827. package/dist/favicon.ico +0 -0
  828. package/dist/index.html +15 -0
  829. package/findcx.js +204 -0
  830. package/i18n.js +2413 -0
  831. package/interceptor.js +698 -0
  832. package/lib/appserver-bridge.js +584 -0
  833. package/lib/ask-bridge.js +126 -0
  834. package/lib/codex-config.js +146 -0
  835. package/lib/constants.js +26 -0
  836. package/lib/context-watcher.js +85 -0
  837. package/lib/cxv-editor.js +73 -0
  838. package/lib/delta-reconstructor.js +256 -0
  839. package/lib/ensure-hooks.js +88 -0
  840. package/lib/extract-plugin-name.mjs +18 -0
  841. package/lib/file-api.js +128 -0
  842. package/lib/git-diff.js +89 -0
  843. package/lib/interceptor-core.js +270 -0
  844. package/lib/kv-cache-analyzer.js +164 -0
  845. package/lib/log-management.js +198 -0
  846. package/lib/log-stream.js +310 -0
  847. package/lib/log-watcher.js +245 -0
  848. package/lib/otel-adapter.js +251 -0
  849. package/lib/otel-receiver.js +198 -0
  850. package/lib/perm-bridge.js +142 -0
  851. package/lib/plugin-loader.js +161 -0
  852. package/lib/plugin-manager.js +118 -0
  853. package/lib/proxy-env.js +23 -0
  854. package/lib/proxy-errors.js +18 -0
  855. package/lib/sdk-adapter.js +77 -0
  856. package/lib/sdk-manager.js +464 -0
  857. package/lib/stats-worker.js +384 -0
  858. package/lib/updater.js +123 -0
  859. package/lib/user-profile.js +43 -0
  860. package/package.json +115 -0
  861. package/proxy.js +369 -0
  862. package/pty-manager.js +407 -0
  863. package/server.js +3226 -0
  864. package/workspace-registry.js +151 -0
@@ -0,0 +1,36 @@
1
+ # Cache Rebuild(缓存重建)
2
+
3
+ ## 背景
4
+
5
+ Anthropic 的 prompt caching 机制会将请求中的 system → tools → messages(到 cache breakpoint)按顺序拼接为缓存键。当缓存键与上一次请求完全一致时,API 返回 `cache_read_input_tokens`(缓存命中);当缓存键发生变化,API 会重新创建缓存,返回大量 `cache_creation_input_tokens`,即缓存重建。
6
+
7
+ 缓存重建意味着额外的 token 计费(cache creation 的价格高于 cache read),因此识别重建原因对费用优化有直接价值。
8
+
9
+ ## 缓存重建原因分类
10
+
11
+ cx-viewer 通过对比前后两个 MainAgent 请求的 body,精确判断缓存重建的原因:
12
+
13
+ | reason | 含义 | 判断方式 |
14
+ |--------|------|----------|
15
+ | `ttl` | 缓存过期 | 距上一个 MainAgent 请求超过 5 分钟 |
16
+ | `system_change` | system prompt 变更 | `JSON.stringify(prev.system) !== JSON.stringify(curr.system)` |
17
+ | `tools_change` | 工具定义变更 | `JSON.stringify(prev.tools) !== JSON.stringify(curr.tools)` |
18
+ | `model_change` | 模型切换 | `prev.model !== curr.model` |
19
+ | `msg_truncated` | 消息栈被截断 | 当前请求的 messages 数量少于上一个请求,通常因上下文窗口溢出触发截断 |
20
+ | `msg_modified` | 历史消息修改 | 前缀消息内容不一致(正常追加时前缀应完全相同) |
21
+ | `key_change` | 未知键变更 | 以上条件均不匹配时的 fallback |
22
+
23
+ ## 判断优先级
24
+
25
+ 1. 首先检查时间间隔——超过 5 分钟直接判定为 `ttl`,不再做 body 对比
26
+ 2. 然后依次检查 model、system、tools、messages
27
+ 3. 一个请求可能同时命中多个原因(如模型切换 + system prompt 变更),此时 `reasons` 数组包含所有匹配项,tooltip 换行显示
28
+
29
+ ## 常见场景
30
+
31
+ - **`ttl`**:用户暂停操作超过 5 分钟后继续,缓存自然过期
32
+ - **`system_change`**:Codex 更新了 system prompt(如加载新的 CLAUDE.md、project instructions 变化)
33
+ - **`tools_change`**:MCP server 连接/断开导致可用工具列表变化
34
+ - **`model_change`**:用户通过 `/model` 命令切换模型
35
+ - **`msg_truncated`**:对话过长触发上下文窗口管理,Codex 截断早期消息
36
+ - **`msg_modified`**:Codex 对历史消息做了编辑(如 `/compact` 压缩摘要替换原始消息)
@@ -0,0 +1,232 @@
1
+ # CX-Viewer 全局配置参考
2
+
3
+ ## 一、全局设置面板(UI)
4
+
5
+ 通过左上角菜单 → "全局设置" 打开。
6
+
7
+ | 配置项 | 类型 | 默认值 | 说明 |
8
+ |--------|------|--------|------|
9
+ | 过滤无关请求 | 开关 | 开 | 隐藏心跳、count_tokens、子代理等非主代理请求 |
10
+ | 默认展开 Body Diff JSON | 开关 | 关 | 请求详情面板中的 Body Diff 区域默认展开 |
11
+ | 日志目录设置 | 文本输入 | `~/.codex/cx-viewer` | 项目日志的读写根目录,支持 `~/` 展开。修改后回车或失焦保存,立即生效 |
12
+
13
+ ## 二、显示设置面板(UI)
14
+
15
+ 通过左上角菜单 → "显示设置" 打开。
16
+
17
+ | 配置项 | 类型 | 默认值 | 说明 |
18
+ |--------|------|--------|------|
19
+ | 折叠工具结果 | 开关 | 开 | 聊天视图中折叠工具调用结果块 |
20
+ | 展开思考过程 | 开关 | 开 | 默认展开 Claude 的思考/推理过程块 |
21
+ | 完整展示所有内容 | 开关 | 关 | 显示完整的工具调用内容,不截断 |
22
+ | 自动恢复会话 | 开关 + 选项 | 关 | 遇到会话恢复提示时自动选择:`继续` 或 `新建` |
23
+
24
+ ## 三、偏好设置文件
25
+
26
+ 所有 UI 设置持久化到 `<日志目录>/preferences.json`,通过 `/api/preferences` 接口读写。
27
+
28
+ ```json
29
+ {
30
+ "lang": "zh",
31
+ "filterIrrelevant": true,
32
+ "expandDiff": false,
33
+ "collapseToolResults": true,
34
+ "expandThinking": true,
35
+ "showFullToolContent": false,
36
+ "logDir": "~/.codex/cx-viewer",
37
+ "resumeAutoChoice": null,
38
+ "disabledPlugins": [],
39
+ "presetShortcuts": []
40
+ }
41
+ ```
42
+
43
+ | 字段 | 类型 | 说明 |
44
+ |------|------|------|
45
+ | `lang` | string | 界面语言(zh/en/zh-TW/ko/ja/de/es/fr/it/da/pl/ru/ar/no/pt-BR/th/tr/uk) |
46
+ | `filterIrrelevant` | boolean | 过滤无关请求 |
47
+ | `expandDiff` | boolean | 默认展开 Body Diff JSON |
48
+ | `collapseToolResults` | boolean | 折叠工具结果 |
49
+ | `expandThinking` | boolean | 展开思考过程 |
50
+ | `showFullToolContent` | boolean | 完整展示内容 |
51
+ | `logDir` | string | 日志目录路径 |
52
+ | `resumeAutoChoice` | null / "continue" / "new" | 自动恢复会话选择 |
53
+ | `disabledPlugins` | string[] | 已禁用的插件文件名列表 |
54
+ | `presetShortcuts` | array | Agent Team 快捷指令预设 |
55
+
56
+ ## 四、环境变量
57
+
58
+ ### CX-Viewer 专有
59
+
60
+ | 变量名 | 默认值 | 说明 |
61
+ |--------|--------|------|
62
+ | `CXV_LOG_DIR` | `~/.codex/cx-viewer` | 日志存储根目录。特殊值:`tmp`/`temp` 使用系统临时目录 |
63
+ | `CXV_CLI_MODE` | 未设置 | `=1` 启用 CLI 模式(PTY 终端) |
64
+ | `CXV_SDK_MODE` | 未设置 | `=1` 启用 Agent SDK 模式(无终端) |
65
+ | `CXV_WORKSPACE_MODE` | 未设置 | `=1` 启用工作空间选择模式 |
66
+ | `CXV_PROJECT_DIR` | `process.cwd()` | 项目工作目录,用于文件操作和 Git 命令 |
67
+ | `CXV_PROXY_PORT` | 未设置 | 本地 MITM 代理端口 |
68
+ | `CXV_BYPASS_PERMISSIONS` | 未设置 | `=1` 跳过工具权限审批(配合 `--dangerously-skip-permissions`) |
69
+ | `CXV_DISABLE_DELTA` | 未设置 | `=1` 禁用增量日志存储,每次写入完整消息 |
70
+ | `CXV_DEBUG` | 未设置 | `=1` 启用 HTTP 代理调试日志 |
71
+ | `CXV_DEBUG_PLUGINS` | 未设置 | `=1` 启用插件加载调试日志 |
72
+
73
+ ### 内部 IPC
74
+
75
+ | 变量名 | 说明 |
76
+ |--------|------|
77
+ | `CXVIEWER_PORT` | 服务端口,供 ask-bridge/perm-bridge 通信 |
78
+ | `CXV_EDITOR_PORT` | 服务端口,供 ccv-editor 文件编辑桥接 |
79
+
80
+ ### 外部变量(读取)
81
+
82
+ | 变量名 | 说明 |
83
+ |--------|------|
84
+ | `OPENAI_BASE_URL` | 自定义 Anthropic API 地址 |
85
+ | `SHELL` | 用户 Shell(PTY 启动和 Shell 配置检测) |
86
+ | `http_proxy` / `HTTPS_PROXY` 等 | HTTP 代理配置(通过 undici EnvHttpProxyAgent) |
87
+
88
+ ## 五、CLI 命令参数
89
+
90
+ ```
91
+ ccv [选项] [claude 参数...]
92
+ ```
93
+
94
+ ### CX-Viewer 专有选项
95
+
96
+ | 参数 | 说明 |
97
+ |------|------|
98
+ | `-logger` | 安装/修复 Codex hooks |
99
+ | `--uninstall` / `-uninstall` | 卸载所有 CX-Viewer 集成 |
100
+ | `--help` / `-h` / `help` | 显示帮助信息 |
101
+ | `--version` / `-v` | 显示版本号 |
102
+ | `-SDK` / `--sdk` | 使用 Agent SDK 模式 |
103
+ | `--d` | `--dangerously-skip-permissions` 简写 |
104
+ | `--ad` | `--allow-dangerously-skip-permissions` 简写 |
105
+ | `run` | 通过代理运行命令(`ccv run -- claude ...`) |
106
+
107
+ ### Claude 透传参数(常用)
108
+
109
+ | 参数 | 说明 |
110
+ |------|------|
111
+ | `-c` / `--continue` | 继续上一次会话 |
112
+ | `-r` / `--resume` | 恢复指定会话 |
113
+ | `-p` / `--print` | 非交互式输出 |
114
+ | `--model` | 指定模型 |
115
+ | `--permission-mode` | 权限模式 |
116
+ | `--system-prompt` | 自定义系统提示词 |
117
+ | `--max-budget-usd` | 最大预算 |
118
+
119
+ ## 六、Hook 配置
120
+
121
+ CX-Viewer 自动注册到 `~/.claude/settings.json` 的 `hooks.PreToolUse` 中:
122
+
123
+ ### 1. AskUserQuestion 桥接
124
+ - **匹配器**: `"AskUserQuestion"`
125
+ - **命令**: `node <安装目录>/lib/ask-bridge.js`
126
+ - **作用**: 将 Claude 的问题转发到 Web UI,等待用户回答
127
+
128
+ ### 2. 权限审批桥接
129
+ - **匹配器**: `""` (空 = 匹配所有工具)
130
+ - **命令**: `node <安装目录>/lib/perm-bridge.js`
131
+ - **作用**: 仅 `Bash`/`Edit`/`Write`/`NotebookEdit` 需要 Web UI 审批,其余自动放行
132
+
133
+ ## 七、Shell 集成
134
+
135
+ CX-Viewer 在 `~/.zshrc`(或 `.bashrc`)中注入 `claude()` 函数:
136
+
137
+ ```bash
138
+ # >>> CX-Viewer Auto-Inject >>>
139
+ claude() { ... }
140
+ # <<< CX-Viewer Auto-Inject <<<
141
+ ```
142
+
143
+ 所有 `claude` 命令自动通过 CX-Viewer 代理,实现日志捕获和 Web UI 功能。
144
+
145
+ 卸载:`ccv --uninstall` 或手动删除标记之间的内容。
146
+
147
+ ## 八、代理配置(Proxy Profile)
148
+
149
+ 存储在 `<日志目录>/profile.json`,通过 UI 的"代理切换"面板管理。
150
+
151
+ ```json
152
+ {
153
+ "active": "max",
154
+ "profiles": [
155
+ { "id": "max", "name": "Default" },
156
+ { "id": "my-proxy", "name": "自定义", "baseURL": "https://...", "apiKey": "sk-..." }
157
+ ]
158
+ }
159
+ ```
160
+
161
+ | 字段 | 说明 |
162
+ |------|------|
163
+ | `active` | 当前激活的配置 ID(`"max"` = 直连,无代理) |
164
+ | `id` | 唯一标识 |
165
+ | `name` | 显示名称 |
166
+ | `baseURL` | 代理 API 地址(替换请求 origin) |
167
+ | `apiKey` | 代理 API 密钥(替换认证头) |
168
+ | `models` | 可用模型列表 |
169
+ | `activeModel` | 当前选中的模型 |
170
+
171
+ ## 九、插件系统
172
+
173
+ 插件目录:`<日志目录>/plugins/`
174
+
175
+ ### 支持的 Hook 类型
176
+
177
+ | Hook | 类型 | 说明 |
178
+ |------|------|------|
179
+ | `httpsOptions` | 瀑布 | 提供 HTTPS 证书(返回 `{ cert, key }` 或 `{ pfx }`) |
180
+ | `localUrl` | 瀑布 | 修改本地访问 URL |
181
+ | `serverStarted` | 并行 | 服务器启动通知 |
182
+ | `serverStopping` | 并行 | 服务器停止通知 |
183
+ | `onNewEntry` | 并行 | 新日志条目写入通知 |
184
+
185
+ 插件启用/禁用通过 `preferences.json` 的 `disabledPlugins` 数组管理。
186
+
187
+ ## 十、目录结构
188
+
189
+ ```
190
+ ~/.codex/cx-viewer/ # 日志根目录
191
+ ├── preferences.json # 用户偏好设置
192
+ ├── workspaces.json # 工作空间注册表
193
+ ├── profile.json # 代理配置
194
+ ├── plugins/ # 插件目录
195
+ │ └── my-plugin.js
196
+ ├── <项目名>/ # 每个项目的日志目录
197
+ │ ├── <项目名>_20260404_123456.jsonl # JSONL 日志文件
198
+ │ ├── <项目名>.json # 统计数据(后台生成)
199
+ │ └── images/ # 上传图片的持久副本
200
+ └── ...
201
+
202
+ /tmp/cx-viewer-uploads/ # 临时上传文件目录
203
+ ```
204
+
205
+ ## 十一、服务器配置
206
+
207
+ | 配置 | 值 | 说明 |
208
+ |------|-----|------|
209
+ | 端口范围 | 7008-7099 | 自动扫描可用端口 |
210
+ | 绑定地址 | 0.0.0.0 | 所有网络接口 |
211
+ | 访问令牌 | 随机 16 字节 hex | 局域网访问需要 `?token=xxx`,本机免认证 |
212
+ | HTTPS | 仅通过插件 | 需要插件提供 `httpsOptions` hook |
213
+ | CORS | `*` | 允许所有来源 |
214
+ | 上传限制 | 50MB | 单文件最大上传大小 |
215
+
216
+ ## 十二、URL 参数
217
+
218
+ | 参数 | 说明 |
219
+ |------|------|
220
+ | `?token=xxx` | 局域网访问认证令牌 |
221
+ | `?logfile=path` | 打开指定历史日志文件(只读模式) |
222
+
223
+ ## 十三、localStorage 配置
224
+
225
+ | 键 | 说明 |
226
+ |-----|------|
227
+ | `cxv_cacheExpireAt` | 缓存倒计时到期时间 |
228
+ | `cxv_cacheType` | 缓存类型标签 |
229
+ | `ccv_sseSlim` | 启用 SSE 增量裁剪(桌面端性能优化) |
230
+ | `ccv_calibrationModel` | KV-Cache 上下文窗口校准模型 |
231
+ | `ccv_fileExplorerOpen` | 文件浏览器面板开关 |
232
+ | `cx-viewer-terminal-width` | 终端面板宽度(像素) |
@@ -0,0 +1,49 @@
1
+ # KV-Cache 缓存内容
2
+
3
+ ## 什么是 Prompt Caching?
4
+
5
+ 当你与 Claude 对话时,每次 API 请求都会发送完整的对话上下文(system prompt + 工具定义 + 历史消息)。Anthropic 的 prompt caching 机制会将已经计算过的前缀内容缓存在服务端,后续请求如果前缀一致,则直接复用缓存结果,跳过重复计算,大幅降低延迟和费用。
6
+
7
+ cx-viewer 中将这一机制称为"KV-Cache",对应的是 Anthropic API 层面的 prompt caching,而非 LLM 内部 transformer 注意力层的 key-value cache。
8
+
9
+ ## 缓存的工作原理
10
+
11
+ Anthropic 的 prompt caching 按照固定顺序拼接缓存键:
12
+
13
+ ```
14
+ Tools → System Prompt → Messages(到 cache breakpoint)
15
+ ```
16
+
17
+ 只要这个前缀与 TTL 窗口内的任意一次请求完全一致,API 就会命中缓存(返回 `cache_read_input_tokens`),而非重新计算(`cache_creation_input_tokens`)。
18
+
19
+ > **Codex 对 `cache_control` 属性并不强依赖,服务端会配合剔除部分这些属性,但依然能够很好的创建缓存,所以没有看到 `cache_control` 属性并不代表没有被缓存**
20
+ >
21
+ > 对于 Codex 这类特殊客户端,Anthropic 服务端并不完全依赖请求中的 `cache_control` 属性来决定缓存行为。服务端会对特定字段(如 system prompt、tools 定义)自动执行缓存策略,即使请求中未显式携带 `cache_control` 标记。因此,当你在请求体中没有看到该属性时不必疑惑——服务端已在幕后完成了缓存操作,只是未将此信息暴露给客户端。这是 Codex 与 Anthropic API 之间的一种默契。
22
+
23
+ ## "当前 KV-Cache 缓存内容"是什么?
24
+
25
+ cx-viewer 中显示的"当前 KV-Cache 缓存内容",是从最近一次 MainAgent 请求中提取的、位于缓存边界(cache breakpoint)之前的内容。具体包括:
26
+
27
+ - **System Prompt**:Codex 的系统指令,包含核心 agent 指令、工具使用规范、CLAUDE.md 项目指令、环境信息等
28
+ - **Tools**:当前可用的工具定义列表(如 Read、Write、Bash、Agent、MCP 工具等)
29
+ - **Messages**:对话历史中被缓存的部分(通常是较早的消息,直到最后一个 `cache_control` 标记处)
30
+
31
+ ## 为什么要查看缓存内容?
32
+
33
+ 1. **理解上下文**:了解 Claude 当前"记住"了哪些内容,帮助你判断它的行为是否符合预期
34
+ 2. **费用优化**:缓存命中时费用远低于重新计算。查看缓存内容可以帮助你理解为什么某些请求触发了缓存重建(cache rebuild)
35
+ 3. **调试对话**:当 Claude 的回答不符合预期时,检查缓存内容可以确认 system prompt 和历史消息是否正确
36
+ 4. **上下文质量监控**:在调试、修改配置或调整 prompt 的过程中,KV-Cache-Text 提供了一个集中的视角,帮助你快速确认核心上下文是否出现劣化或被意外内容污染——无需逐条翻阅原始报文
37
+
38
+ ## 多级缓存策略
39
+
40
+ Codex 对应的 KV-Cache 并非只有一份。服务端会为 Tools 和 System Prompt 单独生成不同的缓存,与 Messages 部分的缓存相互独立。这样设计的好处是:当 messages 堆栈出现错乱(如上下文截断、消息修改等)需要重建时,不会连带 Tools 和 System Prompt 的缓存一起失效,避免全部重新计算。
41
+
42
+ 这是现阶段服务端的一个优化策略——因为 Tools 定义和 System Prompt 在正常使用过程中都相对稳定,很少变化,单独缓存它们可以最大限度地减少不必要的重建开销。所以你在观察 Cache 的时候会发现,除了 Tools 重建需要全部重新刷新缓存以外,System Prompt 和 Messages 的破坏都仍然有可以继承的缓存可用。
43
+
44
+ ## 缓存的生命周期
45
+
46
+ - **创建**:首次请求或缓存失效后,API 会创建新缓存(`cache_creation_input_tokens`)
47
+ - **命中**:后续请求前缀一致时复用缓存(`cache_read_input_tokens`)
48
+ - **过期**:缓存有 5 分钟的 TTL(存活时间),超时后自动失效
49
+ - **重建**:当 system prompt、工具列表、模型或消息内容发生变化时,缓存键不匹配,触发对应级别的缓存重建
@@ -0,0 +1,23 @@
1
+ # MainAgent
2
+
3
+ ## 定义
4
+
5
+ MainAgent 是 Codex 在非 agent team 状态下的主干请求链路。每一次用户与 Codex 的交互,都会产生一系列 API 请求,其中 MainAgent 请求构成了核心对话链路——它们携带完整的 system prompt、工具定义和消息历史。
6
+
7
+ ## 识别方式
8
+
9
+ 在 cx-viewer 中,MainAgent 通过 `req.mainAgent === true` 标识,由 `interceptor.js` 在请求捕获时自动标记。
10
+
11
+ 判定条件(满足全部):
12
+ - 请求体包含 `system` 字段(system prompt)
13
+ - 请求体包含 `tools` 数组(工具定义)
14
+ - system prompt 中包含 "Codex" 特征文本
15
+
16
+ ## 与 SubAgent 的区别
17
+
18
+ | 特征 | MainAgent | SubAgent |
19
+ |------|-----------|----------|
20
+ | system prompt | 完整的 Codex 主 prompt | 精简的任务专用 prompt |
21
+ | tools 数组 | 包含全部可用工具 | 通常只包含任务所需的少量工具 |
22
+ | 消息历史 | 累积完整对话上下文 | 仅包含子任务相关消息 |
23
+ | 缓存行为 | 有 prompt caching(5 分钟 TTL) | 通常无缓存或缓存较小 |
@@ -0,0 +1,50 @@
1
+ # 代理热切换
2
+
3
+ ## 功能说明
4
+
5
+ 代理热切换允许你在不重启 Codex 的情况下,动态切换 API 请求的目标地址和认证信息。适用于使用第三方 API 代理服务的场景。
6
+
7
+ > ⚠️ 如果你是 Claude 官方 Max 订阅用户,请勿使用该功能。
8
+
9
+ ## 字段说明
10
+
11
+ | 字段 | 必填 | 说明 |
12
+ |------|------|------|
13
+ | **名称** | ✅ | 代理的显示名称,方便区分不同代理 |
14
+ | **地址 (Base URL)** | ✅ | API 服务的基础地址(如 `https://api.example.com`),原始请求的 origin 会被替换为此地址 |
15
+ | **API Key** | ✅ | 代理服务的 API 密钥,会替换原始请求中的认证信息 |
16
+ | **模型** | ❌ | 代理支持的模型列表,用逗号分隔(如 `model-a, model-b`) |
17
+ | **当前模型** | ❌ | 从模型列表中选择当前使用的模型,请求中的 `model` 字段会被替换 |
18
+
19
+ ## 工作原理
20
+
21
+ 切换代理后,`interceptor.js` 会在每次 API 请求发出前执行以下操作:
22
+
23
+ 1. **URL 重写** — 将请求的 origin 替换为代理的 Base URL
24
+ 2. **认证替换** — 将请求头中的 `x-api-key` 或 `Authorization` 替换为代理的 API Key
25
+ 3. **模型替换** — 如果指定了当前模型,将请求体中的 `model` 字段替换
26
+
27
+ ## 配置文件
28
+
29
+ 配置存储在 `~/.codex/cx-viewer/profile.json`,你可以点击标题旁的文件夹图标直接打开目录编辑:
30
+
31
+ ```json
32
+ {
33
+ "active": "my-proxy",
34
+ "profiles": [
35
+ { "id": "max", "name": "Max" },
36
+ {
37
+ "id": "my-proxy",
38
+ "name": "My Proxy",
39
+ "baseURL": "https://api.example.com",
40
+ "apiKey": "sk-xxx",
41
+ "models": ["model-a", "model-b"],
42
+ "activeModel": "model-a"
43
+ }
44
+ ]
45
+ }
46
+ ```
47
+
48
+ - `active` — 当前使用的 profile ID,设为 `"max"` 表示直连(不走代理)
49
+ - `profiles` — profile 列表,`id: "max"` 为内置直连模式,不可删除
50
+ - 修改文件后约 1.5 秒自动生效(通过 `fs.watchFile` 监听),无需重启
@@ -0,0 +1,29 @@
1
+ # 手机扫码编程
2
+
3
+ ## 工作原理
4
+
5
+ CX Viewer 在本机启动 HTTP 服务后,会生成一个**局域网地址**(如 `http://192.168.1.100:7008`)。手机扫描二维码后,通过同一 WiFi 网络访问该地址,即可在手机上操作 Codex。
6
+
7
+ ## 为什么扫码后无法连接?
8
+
9
+ 最常见的原因:
10
+
11
+ 1. **不在同一局域网** — 手机和电脑必须连接到同一个 WiFi 网络(同路由器/同网络名)
12
+ 2. **防火墙拦截** — macOS/Windows 防火墙可能阻止了入站连接,需要允许 CX Viewer 的端口通过
13
+ 3. **公司/学校网络隔离** — 部分企业网络会隔离设备间的直接通信(AP 隔离)
14
+ 4. **VPN 干扰** — 如果电脑或手机开启了 VPN,可能导致网络路径不通
15
+
16
+ ## 网络安全提示
17
+
18
+ > ⚠️ CX Viewer 的局域网服务默认对同一网络内的所有设备可访问。
19
+
20
+ - 在**公共 WiFi**(咖啡厅、机场等)下使用时请注意安全,同一网络的其他人理论上可以访问你的服务
21
+ - CX Viewer 使用 **Token 验证**保护局域网访问(URL 中自动附带 token),未携带正确 token 的请求会被拒绝
22
+ - 建议在可信的家庭或办公网络中使用
23
+
24
+ ## 突破局域网限制
25
+
26
+ 如果你需要在不同网络环境下(如外出时)远程访问电脑上的 Codex,可以通过以下方式:
27
+
28
+ - **内网穿透工具** — 如 frp、ngrok、Tailscale 等,将本地服务暴露到公网
29
+ - **CX Viewer 插件** — 支持通过插件机制配置中间代理,实现跨网络访问(详见插件文档)
@@ -0,0 +1,50 @@
1
+ # Response Body 字段说明
2
+
3
+ Claude API `/v1/messages` 响应体的字段说明。
4
+
5
+ ## 顶层字段
6
+
7
+ | 字段 | 类型 | 说明 |
8
+ |------|------|------|
9
+ | **model** | string | 实际使用的模型名称,如 `claude-opus-4-6` |
10
+ | **id** | string | 本次响应的唯一标识符,如 `msg_01Tgsr2QeH8AVXGoP2wAXRvU` |
11
+ | **type** | string | 固定为 `"message"` |
12
+ | **role** | string | 固定为 `"assistant"` |
13
+ | **content** | array | 模型输出的内容块数组,包含文本、工具调用、思考过程等 |
14
+ | **stop_reason** | string | 停止原因:`"end_turn"`(正常结束)、`"tool_use"`(需要执行工具)、`"max_tokens"`(达到 token 上限) |
15
+ | **stop_sequence** | string/null | 触发停止的序列,通常为 `null` |
16
+ | **usage** | object | Token 用量统计(详见下方) |
17
+
18
+ ## content 块类型
19
+
20
+ | 类型 | 说明 |
21
+ |------|------|
22
+ | **text** | 模型的文本回复,含 `text` 字段 |
23
+ | **tool_use** | 工具调用请求,含 `name`(工具名)、`input`(参数)、`id`(调用 ID,用于匹配 tool_result) |
24
+ | **thinking** | 扩展思考内容(仅在开启 thinking 模式时出现),含 `thinking` 字段 |
25
+
26
+ ## usage 字段详解
27
+
28
+ | 字段 | 说明 |
29
+ |------|------|
30
+ | **input_tokens** | 未命中缓存的输入 token 数(需要全价计费) |
31
+ | **cache_creation_input_tokens** | 本次新创建缓存的 token 数(缓存写入,计费高于普通输入) |
32
+ | **cache_read_input_tokens** | 命中缓存的 token 数(缓存读取,计费远低于普通输入) |
33
+ | **output_tokens** | 模型输出的 token 数 |
34
+ | **service_tier** | 服务等级,如 `"standard"` |
35
+ | **inference_geo** | 推理地域,如 `"not_available"` 表示未提供地域信息 |
36
+
37
+ ## cache_creation 子字段
38
+
39
+ | 字段 | 说明 |
40
+ |------|------|
41
+ | **ephemeral_5m_input_tokens** | 5 分钟 TTL 的短期缓存创建 token 数 |
42
+ | **ephemeral_1h_input_tokens** | 1 小时 TTL 的长期缓存创建 token 数 |
43
+
44
+ > **关于缓存计费**:`cache_read_input_tokens` 的单价远低于 `input_tokens`,而 `cache_creation_input_tokens` 的单价略高于普通输入。因此,在持续对话中保持高缓存命中率可以显著降低费用。通过 cx-viewer 的"命中率"指标可以直观监控这一比例。
45
+
46
+ ## stop_reason 含义
47
+
48
+ - **end_turn**:模型正常完成回复
49
+ - **tool_use**:模型需要调用工具,content 中会包含 `tool_use` 块。下一轮请求需要在 messages 中追加 `tool_result` 才能继续对话
50
+ - **max_tokens**:达到 `max_tokens` 限制被截断,回复可能不完整
@@ -0,0 +1,20 @@
1
+ # SubAgent: Search
2
+
3
+ ## 定义
4
+
5
+ Search 是由 Codex 主 agent 生成的子 agent 类型,用于执行代码库搜索。它使用 Glob、Grep 和 Read 等工具执行有针对性的文件和内容搜索,然后将结果返回给父 agent。
6
+
7
+ ## 行为
8
+
9
+ - 当主 agent 需要搜索或探索代码库时自动生成
10
+ - 在具有只读访问权限的隔离上下文中运行
11
+ - 使用 Glob 进行文件模式匹配,使用 Grep 进行内容搜索,使用 Read 进行文件检查
12
+ - 将搜索结果返回给父 agent 以供进一步处理
13
+
14
+ ## 出现时机
15
+
16
+ Search 子 agent 通常在以下情况出现:
17
+
18
+ 1. 主 agent 需要查找特定文件、函数或代码模式时
19
+ 2. 用户请求进行广泛的代码库探索时
20
+ 3. agent 正在调查依赖关系、引用或使用模式时
@@ -0,0 +1,26 @@
1
+ # Teammate
2
+
3
+ ## 定义
4
+
5
+ Teammate 是 Codex Agent Team 模式下的协作 agent。当主 agent 通过 `TeamCreate` 创建团队并使用 `Agent` 工具生成 teammate 时,每个 teammate 作为独立的 agent 进程运行,拥有自己的上下文窗口和工具集,通过 `SendMessage` 与团队成员通信。
6
+
7
+ ## 与 SubAgent 的区别
8
+
9
+ | 特征 | Teammate | SubAgent |
10
+ |------|----------|----------|
11
+ | 生命周期 | 持续存在,可接收多次消息 | 一次性任务,完成即销毁 |
12
+ | 通信方式 | SendMessage 双向消息 | 父→子单向调用,返回结果 |
13
+ | 上下文 | 独立完整上下文,跨轮次保留 | 隔离的任务上下文 |
14
+ | 协作模式 | 团队协作,可相互通信 | 层级结构,只与父 agent 交互 |
15
+ | 任务类型 | 复杂的多步骤任务 | 搜索、探索等单一任务 |
16
+
17
+ ## 行为
18
+
19
+ - 由主 agent(team lead)通过 `Agent` 工具创建并分配 `team_name`
20
+ - 通过 `TaskList` / `TaskGet` / `TaskUpdate` 共享任务列表
21
+ - 每轮执行完毕后进入 idle 状态,等待新消息唤醒
22
+ - 可通过 `shutdown_request` 优雅终止
23
+
24
+ ## 统计面板说明
25
+
26
+ Teammate 统计面板显示每个 teammate 的 API 调用次数。`Name` 列为 teammate 名称(如 `reviewer-security`、`reviewer-pipeline`),`次数` 列为该 teammate 产生的 API 请求总数。
@@ -0,0 +1,125 @@
1
+ # Agent
2
+
3
+ ## 定义
4
+
5
+ 启动一个子 agent(SubAgent)来自主处理复杂的多步骤任务。子 agent 是独立的子进程,拥有各自专用的工具集和上下文。Agent 是新版 Codex 中 Task 工具的重命名版本。
6
+
7
+ ## 参数
8
+
9
+ | 参数 | 类型 | 必填 | 说明 |
10
+ |------|------|------|------|
11
+ | `prompt` | string | 是 | 子 agent 要执行的任务描述 |
12
+ | `description` | string | 是 | 3-5 个词的简短摘要 |
13
+ | `subagent_type` | string | 是 | 子 agent 类型,决定可用工具集 |
14
+ | `model` | enum | 否 | 指定模型(sonnet / opus / haiku),默认继承父级 |
15
+ | `max_turns` | integer | 否 | 最大 agentic 轮次数 |
16
+ | `run_in_background` | boolean | 否 | 是否后台运行,后台任务返回 output_file 路径 |
17
+ | `resume` | string | 否 | 要恢复的 agent ID,从上次执行继续。适用于在不丢失上下文的情况下接续之前的子 agent |
18
+ | `isolation` | enum | 否 | 隔离模式,`worktree` 创建临时 git worktree |
19
+
20
+ ## 子 agent 类型
21
+
22
+ | 类型 | 用途 | 可用工具 |
23
+ |------|------|----------|
24
+ | `Bash` | 命令执行,git 操作 | Bash |
25
+ | `general-purpose` | 通用多步骤任务 | 全部工具 |
26
+ | `Explore` | 快速探索代码库 | 除 Agent/Edit/Write/NotebookEdit/ExitPlanMode 外的所有工具 |
27
+ | `Plan` | 设计实施方案 | 除 Agent/Edit/Write/NotebookEdit/ExitPlanMode 外的所有工具 |
28
+ | `claude-code-guide` | Codex 使用指南问答 | Glob, Grep, Read, WebFetch, WebSearch |
29
+ | `statusline-setup` | 配置状态栏 | Read, Edit |
30
+
31
+ ## 使用场景
32
+
33
+ **适合使用:**
34
+ - 需要多步骤自主完成的复杂任务
35
+ - 代码库探索和深度研究(使用 Explore 类型)
36
+ - 需要隔离环境的并行工作
37
+ - 需要后台运行的长时间任务
38
+
39
+ **不适合使用:**
40
+ - 读取特定文件路径——直接用 Read 或 Glob
41
+ - 在 2-3 个已知文件中搜索——直接用 Read
42
+ - 搜索特定类定义——直接用 Glob
43
+
44
+ ## 注意事项
45
+
46
+ - 子 agent 完成后返回单条消息,其结果对用户不可见,需要主 agent 转述
47
+ - 可以在单条消息中发起多个并行 Agent 调用以提高效率
48
+ - 后台任务通过 TaskOutput 工具检查进度
49
+ - Explore 类型比直接调用 Glob/Grep 慢,仅在简单搜索不够时使用
50
+ - 长时间运行且不需要立即结果的任务建议使用 `run_in_background: true`;需要结果后才能继续时使用前台模式(默认)
51
+ - `resume` 参数允许继续之前启动的子 agent 会话,保留其积累的上下文
52
+
53
+ ## 原文
54
+
55
+ <textarea readonly>Launch a new agent to handle complex, multi-step tasks autonomously.
56
+
57
+ The Agent tool launches specialized agents (subprocesses) that autonomously handle complex tasks. Each agent type has specific capabilities and tools available to it.
58
+
59
+ Available agent types and the tools they have access to:
60
+ - general-purpose: General-purpose agent for researching complex questions, searching for code, and executing multi-step tasks. When you are searching for a keyword or file and are not confident that you will find the right match in the first few tries use this agent to perform the search for you. (Tools: *)
61
+ - statusline-setup: Use this agent to configure the user's Codex status line setting. (Tools: Read, Edit)
62
+ - Explore: Fast agent specialized for exploring codebases. Use this when you need to quickly find files by patterns (eg. "src/components/**/*.tsx"), search code for keywords (eg. "API endpoints"), or answer questions about the codebase (eg. "how do API endpoints work?"). When calling this agent, specify the desired thoroughness level: "quick" for basic searches, "medium" for moderate exploration, or "very thorough" for comprehensive analysis across multiple locations and naming conventions. (Tools: All tools except Agent, ExitPlanMode, Edit, Write, NotebookEdit)
63
+ - Plan: Software architect agent for designing implementation plans. Use this when you need to plan the implementation strategy for a task. Returns step-by-step plans, identifies critical files, and considers architectural trade-offs. (Tools: All tools except Agent, ExitPlanMode, Edit, Write, NotebookEdit)
64
+ - claude-code-guide: Use this agent when the user asks questions ("Can Claude...", "Does Claude...", "How do I...") about: (1) Codex (the CLI tool) - features, hooks, slash commands, MCP servers, settings, IDE integrations, keyboard shortcuts; (2) Claude Agent SDK - building custom agents; (3) Claude API (formerly Anthropic API) - API usage, tool use, Anthropic SDK usage. **IMPORTANT:** Before spawning a new agent, check if there is already a running or recently completed claude-code-guide agent that you can resume using the "resume" parameter. (Tools: Glob, Grep, Read, WebFetch, WebSearch)
65
+
66
+ When using the Agent tool, you must specify a subagent_type parameter to select which agent type to use.
67
+
68
+ When NOT to use the Agent tool:
69
+ - If you want to read a specific file path, use the Read or Glob tool instead of the Agent tool, to find the match more quickly
70
+ - If you are searching for a specific class definition like "class Foo", use the Glob tool instead, to find the match more quickly
71
+ - If you are searching for code within a specific file or set of 2-3 files, use the Read tool instead of the Agent tool, to find the match more quickly
72
+ - Other tasks that are not related to the agent descriptions above
73
+
74
+ Usage notes:
75
+ - Always include a short description (3-5 words) summarizing what the agent will do
76
+ - Launch multiple agents concurrently whenever possible, to maximize performance; to do that, use a single message with multiple tool uses
77
+ - When the agent is done, it will return a single message back to you. The result returned by the agent is not visible to the user. To show the user the result, you should send a text message back to the user with a concise summary of the result.
78
+ - You can optionally run agents in the background using the run_in_background parameter. When an agent runs in the background, you will be automatically notified when it completes — do NOT sleep, poll, or proactively check on its progress. Continue with other work or respond to the user instead.
79
+ - **Foreground vs background**: Use foreground (default) when you need the agent's results before you can proceed — e.g., research agents whose findings inform your next steps. Use background when you have genuinely independent work to do in parallel.
80
+ - Agents can be resumed using the `resume` parameter by passing the agent ID from a previous invocation. When resumed, the agent continues with its full previous context preserved. When NOT resuming, each invocation starts fresh and you should provide a detailed task description with all necessary context.
81
+ - When the agent is done, it will return a single message back to you along with its agent ID. You can use this ID to resume the agent later if needed for follow-up work.
82
+ - Provide clear, detailed prompts so the agent can work autonomously and return exactly the information you need.
83
+ - Agents with "access to current context" can see the full conversation history before the tool call. When using these agents, you can write concise prompts that reference earlier context (e.g., "investigate the error discussed above") instead of repeating information. The agent will receive all prior messages and understand the context.
84
+ - The agent's outputs should generally be trusted
85
+ - Clearly tell the agent whether you expect it to write code or just to do research (search, file reads, web fetches, etc.), since it is not aware of the user's intent
86
+ - If the agent description mentions that it should be used proactively, then you should try your best to use it without the user having to ask for it first. Use your judgement.
87
+ - If the user specifies that they want you to run agents "in parallel", you MUST send a single message with multiple Agent tool use content blocks. For example, if you need to launch both a build-validator agent and a test-runner agent in parallel, send a single message with both tool calls.
88
+ - You can optionally set `isolation: "worktree"` to run the agent in a temporary git worktree, giving it an isolated copy of the repository. The worktree is automatically cleaned up if the agent makes no changes; if changes are made, the worktree path and branch are returned in the result.
89
+
90
+ Example usage:
91
+
92
+ <example_agent_descriptions>
93
+ "test-runner": use this agent after you are done writing code to run tests
94
+ "greeting-responder": use this agent to respond to user greetings with a friendly joke
95
+ </example_agent_descriptions>
96
+
97
+ <example>
98
+ user: "Please write a function that checks if a number is prime"
99
+ assistant: Sure let me write a function that checks if a number is prime
100
+ assistant: First let me use the Write tool to write a function that checks if a number is prime
101
+ assistant: I'm going to use the Write tool to write the following code:
102
+ <code>
103
+ function isPrime(n) {
104
+ if (n <= 1) return false
105
+ for (let i = 2; i * i <= n; i++) {
106
+ if (n % i === 0) return false
107
+ }
108
+ return true
109
+ }
110
+ </code>
111
+ <commentary>
112
+ Since a significant piece of code was written and the task was completed, now use the test-runner agent to run the tests
113
+ </commentary>
114
+ assistant: Now let me use the test-runner agent to run the tests
115
+ assistant: Uses the Agent tool to launch the test-runner agent
116
+ </example>
117
+
118
+ <example>
119
+ user: "Hello"
120
+ <commentary>
121
+ Since the user is greeting, use the greeting-responder agent to respond with a friendly joke
122
+ </commentary>
123
+ assistant: "I'm going to use the Agent tool to launch the greeting-responder agent"
124
+ </example>
125
+ </textarea>