@tencent-ai/codebuddy-code 2.97.4-next.d5db7de.20260522 → 2.97.5-next.4404f36.20260522
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/codebuddy-headless.js +78 -78
- package/dist/codebuddy.js +77 -77
- package/package.json +1 -1
- package/product.cloudhosted.json +279 -2
- package/product.internal.json +2 -2
- package/product.ioa.json +2 -2
- package/product.json +4 -4
- package/product.selfhosted.json +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tencent-ai/codebuddy-code",
|
|
3
|
-
"version": "2.97.
|
|
3
|
+
"version": "2.97.5-next.4404f36.20260522",
|
|
4
4
|
"description": "Use CodeBuddy, Tencent's AI assistant, right from your terminal. CodeBuddy can understand your codebase, edit files, run terminal commands, and handle entire workflows for you.",
|
|
5
5
|
"main": "lib/node/index.js",
|
|
6
6
|
"typings": "lib/node/index.d.ts",
|
package/product.cloudhosted.json
CHANGED
|
@@ -389,6 +389,283 @@
|
|
|
389
389
|
"maxAllowedSize": 164000
|
|
390
390
|
},
|
|
391
391
|
{
|
|
392
|
+
"credits": "x0.25 credits",
|
|
393
|
+
"id": "deepseek-v4-pro",
|
|
394
|
+
"name": "Deepseek-V4-Pro",
|
|
395
|
+
"vendor": "f",
|
|
396
|
+
"maxOutputTokens": 50000,
|
|
397
|
+
"maxInputTokens": 1000000,
|
|
398
|
+
"supportsToolCall": true,
|
|
399
|
+
"supportsImages": true,
|
|
400
|
+
"maxAllowedSize": 1000000,
|
|
401
|
+
"supportsReasoning": true,
|
|
402
|
+
"onlyReasoning": true,
|
|
403
|
+
"temperature": 1,
|
|
404
|
+
"reasoning": {
|
|
405
|
+
"effort": "high",
|
|
406
|
+
"summary": "auto"
|
|
407
|
+
},
|
|
408
|
+
"descriptionEn": "DeepSeek flagship model, supporting 1M context window",
|
|
409
|
+
"descriptionZh": "DeepSeek 旗舰模型,支持 1M 上下文窗口"
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"credits": "x0.13 credits",
|
|
413
|
+
"id": "deepseek-v4-flash",
|
|
414
|
+
"name": "Deepseek-V4-Flash",
|
|
415
|
+
"vendor": "f",
|
|
416
|
+
"maxOutputTokens": 50000,
|
|
417
|
+
"maxInputTokens": 1000000,
|
|
418
|
+
"supportsToolCall": true,
|
|
419
|
+
"supportsImages": true,
|
|
420
|
+
"maxAllowedSize": 1000000,
|
|
421
|
+
"supportsReasoning": true,
|
|
422
|
+
"onlyReasoning": true,
|
|
423
|
+
"temperature": 1,
|
|
424
|
+
"reasoning": {
|
|
425
|
+
"effort": "high",
|
|
426
|
+
"summary": "auto"
|
|
427
|
+
},
|
|
428
|
+
"descriptionEn": "DeepSeek flagship model, supporting 1M context window",
|
|
429
|
+
"descriptionZh": "DeepSeek 旗舰模型,支持 1M 上下文窗口"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"credits": "x0.18 credits",
|
|
433
|
+
"id": "minimax-m2.5",
|
|
434
|
+
"name": "MiniMax-M2.5",
|
|
435
|
+
"vendor": "e",
|
|
436
|
+
"maxOutputTokens": 48000,
|
|
437
|
+
"maxInputTokens": 200000,
|
|
438
|
+
"supportsToolCall": true,
|
|
439
|
+
"supportsImages": false,
|
|
440
|
+
"maxAllowedSize": 200000,
|
|
441
|
+
"supportsReasoning": true,
|
|
442
|
+
"onlyReasoning": true,
|
|
443
|
+
"temperature": 1,
|
|
444
|
+
"reasoning": {
|
|
445
|
+
"effort": "high",
|
|
446
|
+
"summary": "auto"
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"credits": "x0.26 credits",
|
|
451
|
+
"id": "minimax-m2.7",
|
|
452
|
+
"name": "MiniMax-M2.7",
|
|
453
|
+
"vendor": "f",
|
|
454
|
+
"maxOutputTokens": 48000,
|
|
455
|
+
"maxInputTokens": 200000,
|
|
456
|
+
"supportsToolCall": true,
|
|
457
|
+
"supportsImages": true,
|
|
458
|
+
"maxAllowedSize": 200000,
|
|
459
|
+
"supportsReasoning": true,
|
|
460
|
+
"onlyReasoning": true,
|
|
461
|
+
"temperature": 1,
|
|
462
|
+
"reasoning": {
|
|
463
|
+
"effort": "medium",
|
|
464
|
+
"summary": "auto"
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"credits": "x1.06 credits",
|
|
469
|
+
"id": "glm-5.1",
|
|
470
|
+
"name": "GLM-5.1",
|
|
471
|
+
"vendor": "e",
|
|
472
|
+
"maxOutputTokens": 48000,
|
|
473
|
+
"maxInputTokens": 200000,
|
|
474
|
+
"supportsToolCall": true,
|
|
475
|
+
"supportsImages": false,
|
|
476
|
+
"maxAllowedSize": 200000,
|
|
477
|
+
"supportsReasoning": true,
|
|
478
|
+
"onlyReasoning": true,
|
|
479
|
+
"temperature": 1,
|
|
480
|
+
"reasoning": {
|
|
481
|
+
"effort": "medium",
|
|
482
|
+
"summary": "auto"
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"credits": "x0.80 credits",
|
|
487
|
+
"id": "glm-5.0",
|
|
488
|
+
"name": "GLM-5.0",
|
|
489
|
+
"vendor": "e",
|
|
490
|
+
"maxOutputTokens": 48000,
|
|
491
|
+
"maxInputTokens": 200000,
|
|
492
|
+
"supportsToolCall": true,
|
|
493
|
+
"supportsImages": false,
|
|
494
|
+
"disabledMultimodal": true,
|
|
495
|
+
"maxAllowedSize": 200000,
|
|
496
|
+
"supportsReasoning": true,
|
|
497
|
+
"temperature": 1
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"credits": "x0.95 credits",
|
|
501
|
+
"id": "glm-5.0-turbo",
|
|
502
|
+
"name": "GLM-5.0-Turbo",
|
|
503
|
+
"vendor": "e",
|
|
504
|
+
"maxOutputTokens": 48000,
|
|
505
|
+
"maxInputTokens": 200000,
|
|
506
|
+
"supportsToolCall": true,
|
|
507
|
+
"supportsImages": false,
|
|
508
|
+
"maxAllowedSize": 200000,
|
|
509
|
+
"supportsReasoning": true,
|
|
510
|
+
"onlyReasoning": true,
|
|
511
|
+
"temperature": 1,
|
|
512
|
+
"reasoning": {
|
|
513
|
+
"effort": "medium",
|
|
514
|
+
"summary": "auto"
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
"credits": "x0.95 credits",
|
|
519
|
+
"id": "glm-5v-turbo",
|
|
520
|
+
"name": "GLM-5v-Turbo",
|
|
521
|
+
"vendor": "e",
|
|
522
|
+
"maxOutputTokens": 38000,
|
|
523
|
+
"maxInputTokens": 200000,
|
|
524
|
+
"supportsToolCall": true,
|
|
525
|
+
"supportsImages": true,
|
|
526
|
+
"maxAllowedSize": 200000,
|
|
527
|
+
"supportsReasoning": true,
|
|
528
|
+
"onlyReasoning": true,
|
|
529
|
+
"temperature": 1,
|
|
530
|
+
"reasoning": {
|
|
531
|
+
"effort": "medium",
|
|
532
|
+
"summary": "auto"
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
"credits": "x0.11 credits",
|
|
537
|
+
"id": "glm-4.6v",
|
|
538
|
+
"name": "GLM-4.6V",
|
|
539
|
+
"vendor": "e",
|
|
540
|
+
"maxOutputTokens": 32000,
|
|
541
|
+
"maxInputTokens": 128000,
|
|
542
|
+
"supportsToolCall": true,
|
|
543
|
+
"supportsImages": true,
|
|
544
|
+
"supportsReasoning": true,
|
|
545
|
+
"temperature": 1,
|
|
546
|
+
"reasoning": {
|
|
547
|
+
"effort": "high",
|
|
548
|
+
"summary": "auto"
|
|
549
|
+
},
|
|
550
|
+
"maxAllowedSize": 128000
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"credits": "x0.59 credits",
|
|
554
|
+
"id": "kimi-k2.6",
|
|
555
|
+
"name": "Kimi-K2.6",
|
|
556
|
+
"vendor": "f",
|
|
557
|
+
"maxOutputTokens": 32000,
|
|
558
|
+
"maxInputTokens": 256000,
|
|
559
|
+
"supportsToolCall": true,
|
|
560
|
+
"supportsImages": true,
|
|
561
|
+
"supportsReasoning": true,
|
|
562
|
+
"temperature": 1,
|
|
563
|
+
"onlyReasoning": true,
|
|
564
|
+
"reasoning": {
|
|
565
|
+
"effort": "medium",
|
|
566
|
+
"summary": "auto"
|
|
567
|
+
},
|
|
568
|
+
"maxAllowedSize": 256000
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
"credits": "x0.45 credits",
|
|
572
|
+
"id": "kimi-k2.5",
|
|
573
|
+
"name": "Kimi-K2.5",
|
|
574
|
+
"vendor": "f",
|
|
575
|
+
"maxOutputTokens": 32000,
|
|
576
|
+
"maxInputTokens": 164000,
|
|
577
|
+
"supportsToolCall": true,
|
|
578
|
+
"supportsImages": true,
|
|
579
|
+
"supportsReasoning": true,
|
|
580
|
+
"temperature": 1,
|
|
581
|
+
"onlyReasoning": true,
|
|
582
|
+
"reasoning": {
|
|
583
|
+
"effort": "high",
|
|
584
|
+
"summary": "auto"
|
|
585
|
+
},
|
|
586
|
+
"maxAllowedSize": 164000
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
"credits": "x0.37 credits",
|
|
590
|
+
"id": "hy3-preview",
|
|
591
|
+
"name": "Hy3 preview",
|
|
592
|
+
"vendor": "j",
|
|
593
|
+
"maxOutputTokens": 64000,
|
|
594
|
+
"maxInputTokens": 192000,
|
|
595
|
+
"maxAllowedSize": 192000,
|
|
596
|
+
"supportsToolCall": true,
|
|
597
|
+
"supportsImages": true,
|
|
598
|
+
"disabledMultimodal": false,
|
|
599
|
+
"supportsReasoning": true,
|
|
600
|
+
"temperature": 0.9,
|
|
601
|
+
"onlyReasoning": true,
|
|
602
|
+
"top_p": 1,
|
|
603
|
+
"reasoning": {
|
|
604
|
+
"effort": "high",
|
|
605
|
+
"summary": "auto"
|
|
606
|
+
}
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
"id": "auto",
|
|
610
|
+
"name": "Auto",
|
|
611
|
+
"vendor": "f",
|
|
612
|
+
"maxOutputTokens": 32000,
|
|
613
|
+
"maxInputTokens": 168000,
|
|
614
|
+
"supportsToolCall": true,
|
|
615
|
+
"supportsImages": true,
|
|
616
|
+
"disabledMultimodal": false,
|
|
617
|
+
"maxAllowedSize": 168000,
|
|
618
|
+
"isDefault": true,
|
|
619
|
+
"temperature": 1,
|
|
620
|
+
"descriptionEn": "Balanced performance and speed",
|
|
621
|
+
"descriptionZh": "平衡效果与速度",
|
|
622
|
+
"tags": [
|
|
623
|
+
"craft"
|
|
624
|
+
]
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
"credits": "x0.25 credits",
|
|
628
|
+
"id": "deepseek-v4-pro-exclusive",
|
|
629
|
+
"name": "Deepseek-V4-Pro",
|
|
630
|
+
"vendor": "f",
|
|
631
|
+
"maxOutputTokens": 50000,
|
|
632
|
+
"maxInputTokens": 1000000,
|
|
633
|
+
"supportsToolCall": true,
|
|
634
|
+
"supportsImages": true,
|
|
635
|
+
"maxAllowedSize": 1000000,
|
|
636
|
+
"supportsReasoning": true,
|
|
637
|
+
"onlyReasoning": true,
|
|
638
|
+
"temperature": 1,
|
|
639
|
+
"reasoning": {
|
|
640
|
+
"effort": "high",
|
|
641
|
+
"summary": "auto"
|
|
642
|
+
},
|
|
643
|
+
"descriptionEn": "DeepSeek flagship model, supporting 1M context window",
|
|
644
|
+
"descriptionZh": "DeepSeek 旗舰模型,支持 1M 上下文窗口"
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
"credits": "x0.04 credits",
|
|
648
|
+
"id": "hunyuan-2.0-instruct",
|
|
649
|
+
"name": "Hunyuan-2.0-Instruct",
|
|
650
|
+
"vendor": "j",
|
|
651
|
+
"maxOutputTokens": 16000,
|
|
652
|
+
"maxInputTokens": 128000,
|
|
653
|
+
"supportsToolCall": true,
|
|
654
|
+
"supportsImages": true,
|
|
655
|
+
"disabledMultimodal": false,
|
|
656
|
+
"supportsReasoning": true,
|
|
657
|
+
"temperature": 0.7,
|
|
658
|
+
"onlyReasoning": true,
|
|
659
|
+
"top_p": 0.8,
|
|
660
|
+
"top_k": 20,
|
|
661
|
+
"repetition_penalty": 1.05,
|
|
662
|
+
"reasoning": {
|
|
663
|
+
"effort": "medium",
|
|
664
|
+
"summary": "auto"
|
|
665
|
+
}
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"credits": "x5.00 credits",
|
|
392
669
|
"id": "hunyuan-image-v3.0",
|
|
393
670
|
"name": "Hunyuan Image V3",
|
|
394
671
|
"tags": [
|
|
@@ -417,6 +694,6 @@
|
|
|
417
694
|
"SkillManage": false,
|
|
418
695
|
"SelectImage": true
|
|
419
696
|
},
|
|
420
|
-
"commit": "
|
|
421
|
-
"date": "2026-05-
|
|
697
|
+
"commit": "4404f362a42cb984be44bfccb30878f4e6539040",
|
|
698
|
+
"date": "2026-05-22T10:20:23.046Z"
|
|
422
699
|
}
|
package/product.internal.json
CHANGED
package/product.ioa.json
CHANGED
package/product.json
CHANGED
|
@@ -725,7 +725,7 @@
|
|
|
725
725
|
},
|
|
726
726
|
{
|
|
727
727
|
"name": "tool-teamdelete-description",
|
|
728
|
-
"template": "# TeamDelete\n\nRemove team and task directories when the swarm work is complete.\n\nThis operation:\n- Removes the team directory (`{{codebuddyHome}}/teams/{team-name}/`)\n- Removes the task directory (`{{codebuddyHome}}/tasks/{team-name}/`)\n- Clears team context from the current session\n\n**IMPORTANT**: TeamDelete will fail if the team still has active members. Gracefully terminate teammates first
|
|
728
|
+
"template": "# TeamDelete\n\nRemove team and task directories when the swarm work is complete.\n\nThis operation:\n- Removes the team directory (`{{codebuddyHome}}/teams/{team-name}/`)\n- Removes the task directory (`{{codebuddyHome}}/tasks/{team-name}/`)\n- Clears team context from the current session\n\n**IMPORTANT**: TeamDelete will fail if the team still has active members. Gracefully terminate teammates first by sending `shutdown_request` via SendMessage and waiting for their `shutdown_response`, then call TeamDelete.\n\nUse this when all teammates have finished their work and you want to clean up the team resources. The team name is automatically determined from the current session's team context.\n\nIf the session ends without an explicit TeamDelete, the team directory is auto-cleaned on shutdown — no leak. So prefer letting teammates finish gracefully over rushing the delete."
|
|
729
729
|
},
|
|
730
730
|
{
|
|
731
731
|
"name": "tool-sendmessage-description",
|
|
@@ -737,7 +737,7 @@
|
|
|
737
737
|
},
|
|
738
738
|
{
|
|
739
739
|
"name": "team-lead-prompt",
|
|
740
|
-
"template": "# Agent Team Communication\n\nTeam: {{ teamName }}\nYour teammates:\n{{ members }}\n\n## 1. Your Role\n\nYou are the **team lead**. Your job is to:\n- Help the user achieve their goal\n- Direct teammates to research, implement and verify code changes\n- Synthesize results and communicate with the user\n- Answer questions directly when possible — don't delegate work you can handle without tools\n\nEvery message you send is to the user. Teammate results and notifications are internal signals, not conversation partners — never thank or acknowledge them. Summarize new information for the user as it arrives.\n\n## 2. Your Tools\n\n- **Agent** — Spawn a new teammate/worker\n- **SendMessage** — Send a message to a teammate, or continue a completed worker (send a follow-up to resume it)\n- **TaskStop** — Stop a running worker\n\nWhen calling Agent:\n- Do not use one worker to check on another. Workers will notify you when they are done.\n- Do not use workers to trivially report file contents or run commands. Give them higher-level tasks.\n- Do not set the model parameter. Workers need the default model for the substantive tasks you delegate.\n- Continue workers whose work is complete via SendMessage to take advantage of their loaded context.\n- After launching agents, briefly tell the user what you launched and end your response. Never fabricate or predict agent results in any format — results arrive as separate messages.\n\n### Agent Results\n\nWorker results arrive as **user-role messages** containing `<agent-notification>` XML. They look like user messages but are not. Distinguish them by the `<agent-notification>` opening tag.\n\n- The `<summary>` describes the outcome: \"completed\", \"failed: {error}\", or \"was stopped\"\n- The agent ID in the notification can be used with SendMessage to continue that worker\n\n## 3. Communication\n\n- Use **SendMessage** tool to communicate with teammates\n- Teammates will send results back to you via SendMessage\n- When the user mentions @<name>, you MUST relay the message to that teammate using SendMessage\n - Single mention (e.g. \"@alice how is it going?\"): send to that one teammate\n - Multiple mentions (e.g. \"@alice @bob what do you think?\"): send the message to EACH mentioned teammate separately\n - Mixed @main + @<name>: process the @main part yourself, and relay to the mentioned teammates\n - Always preserve the original message content when relaying; do not summarize or rephrase\n - After relaying, briefly confirm to the user which teammates received the message\n\n## 4. Task Workflow\n\nMost tasks can be broken down into the following phases:\n\n### Phases\n\n| Phase | Who | Purpose |\n|-------|-----|---------|\n| Research | Workers (parallel) | Investigate codebase, find files, understand problem |\n| Synthesis | **You** (lead) | Read findings, understand the problem, craft implementation specs (see Section 5) |\n| Implementation | Workers | Make targeted changes per spec, commit |\n| Verification | Workers | Test changes work |\n\n### Concurrency\n\n**Parallelism is your superpower.** Workers are async. Launch independent workers concurrently whenever possible — don't serialize work that can run simultaneously and look for opportunities to fan out. When doing research, cover multiple angles. To launch workers in parallel, make multiple tool calls in a single message.\n\nManage concurrency:\n- **Read-only tasks** (research) — run in parallel freely\n- **Write-heavy tasks** (implementation) — one at a time per set of files\n- **Verification** can sometimes run alongside implementation on different file areas\n\n### What Real Verification Looks Like\n\nVerification means **proving the code works**, not confirming it exists. A verifier that rubber-stamps weak work undermines everything.\n\n- Run tests **with the feature enabled** — not just \"tests pass\"\n- Run typechecks and **investigate errors** — don't dismiss as \"unrelated\"\n- Be skeptical — if something looks off, dig in\n- **Test independently** — prove the change works, don't rubber-stamp\n\n### Handling Worker Failures\n\nWhen a worker reports failure (tests failed, build errors, file not found):\n- Continue the same worker with SendMessage — it has the full error context\n- If a correction attempt fails, try a different approach or report to the user\n\n### Stopping Workers\n\nUse TaskStop to stop a worker you sent in the wrong direction — for example, when you realize mid-flight that the approach is wrong, or the user changes requirements after you launched the worker. Stopped workers can be continued with SendMessage.\n\n## 5. Writing Worker Prompts\n\n**Workers can't see your conversation.** Every prompt must be self-contained with everything the worker needs. After research completes, you always do two things: (1) synthesize findings into a specific prompt, and (2) choose whether to continue that worker via SendMessage or spawn a fresh one.\n\n### Always synthesize — your most important job\n\nWhen workers report research findings, **you must understand them before directing follow-up work**. Read the findings. Identify the approach. Then write a prompt that proves you understood by including specific file paths, line numbers, and exactly what to change.\n\nNever write \"based on your findings\" or \"based on the research.\" These phrases delegate understanding to the worker instead of doing it yourself. You never hand off understanding to another worker.\n\nAnti-patterns (bad whether continuing or spawning):\n- \"Based on your findings, fix the auth bug\"\n- \"The worker found an issue in the auth module. Please fix it.\"\n\nGood — synthesized spec:\n- \"Fix the null pointer in src/auth/validate.ts:42. The user field on Session (src/auth/types.ts:15) is undefined when sessions expire but the token remains cached. Add a null check before user.id access — if null, return 401 with 'Session expired'. Commit and report the hash.\"\n\nA well-synthesized spec gives the worker everything it needs in a few sentences. It does not matter whether the worker is fresh or continued — the spec quality determines the outcome.\n\n### Add a purpose statement\n\nInclude a brief purpose so workers can calibrate depth and emphasis:\n- \"This research will inform a PR description — focus on user-facing changes.\"\n- \"I need this to plan an implementation — report file paths, line numbers, and type signatures.\"\n- \"This is a quick check before we merge — just verify the happy path.\"\n\n### Choose continue vs. spawn by context overlap\n\nAfter synthesizing, decide whether the worker's existing context helps or hurts:\n\n| Situation | Action | Why |\n|-----------|--------|-----|\n| Research explored exactly the files that need editing | **Continue** (SendMessage) | Worker already has the files in context |\n| Research was broad but implementation is narrow | **Spawn fresh** (Agent) | Avoid dragging along exploration noise |\n| Correcting a failure or extending recent work | **Continue** | Worker has the error context and knows what it just tried |\n| Verifying code a different worker just wrote | **Spawn fresh** | Verifier should see the code with fresh eyes |\n| First implementation used the wrong approach entirely | **Spawn fresh** | Wrong-approach context pollutes the retry |\n| Completely unrelated task | **Spawn fresh** | No useful context to reuse |\n\nThere is no universal default. Think about how much of the worker's context overlaps with the next task. High overlap → continue. Low overlap → spawn fresh.\n\n### Prompt tips\n\nGood examples:\n1. Implementation: \"Fix the null pointer in src/auth/validate.ts:42. The user field can be undefined when the session expires. Add a null check and return early with an appropriate error. Commit and report the hash.\"\n2. Precise git operation: \"Create a new branch from main called 'fix/session-expiry'. Cherry-pick only commit abc123 onto it. Push and create a draft PR targeting main. Report the PR URL.\"\n3. Correction (continued worker, short): \"The tests failed on the null check you added — validate.test.ts:58 expects 'Invalid session' but you changed it to 'Session expired'. Fix the assertion. Commit and report the hash.\"\n\nBad examples:\n1. \"Fix the bug we discussed\" — no context, workers can't see your conversation\n2. \"Based on your findings, implement the fix\" — lazy delegation; synthesize the findings yourself\n3. \"Create a PR for the recent changes\" — ambiguous scope: which changes? which branch? draft?\n4. \"Something went wrong with the tests, can you look?\" — no error message, no file path, no direction\n\nAdditional tips:\n- Include file paths, line numbers, error messages — workers start fresh and need complete context\n- State what \"done\" looks like\n- For implementation: \"Run relevant tests and typecheck, then commit your changes and report the hash\" — workers self-verify before reporting done. This is the first layer of QA; a separate verification worker is the second layer.\n- For research: \"Report findings — do not modify files\"\n- Be precise about git operations — specify branch names, commit hashes, draft vs ready, reviewers\n- When continuing for corrections: reference what the worker did (\"the null check you added\") not what you discussed with the user\n- For implementation: \"Fix the root cause, not the symptom\" — guide workers toward durable fixes\n- For verification: \"Prove the code works, don't just confirm it exists\"\n- For verification: \"Try edge cases and error paths — don't just re-run what the implementation worker ran\"\n- For verification: \"Investigate failures — don't dismiss as unrelated without evidence\"\n\n## 6. Example Session\n\nUser: \"There's a null pointer in the auth module. Can you fix it?\"\n\nYou:\n Let me investigate first.\n\n Agent({ description: \"Investigate auth bug\", prompt: \"Investigate the auth module in src/auth/. Find where null pointer exceptions could occur around session handling and token validation... Report specific file paths, line numbers, and types involved. Do not modify files.\" })\n Agent({ description: \"Research auth tests\", prompt: \"Find all test files related to src/auth/. Report the test structure, what's covered, and any gaps around session expiry... Do not modify files.\" })\n\n Investigating from two angles — I'll report back with findings.\n\n[Worker completes and reports: Found null pointer in src/auth/validate.ts:42...]\n\nYou:\n Found the bug — null pointer in validate.ts:42.\n\n SendMessage({ to: \"agent-a1b\", message: \"Fix the null pointer in src/auth/validate.ts:42. Add a null check before accessing user.id — if null, return 401 with 'Session expired'. Commit and report the hash.\" })\n\n Fix is in progress. Still waiting on the test suite research.\n\nUser: How's it going?\n\nYou:\n Fix is in progress. Still waiting to hear back about the test suite.\n\n## 7. Behavior Guidelines\n\n- **Wait silently**: When teammates are still working, do NOT output filler text like \"waiting for results\" or \"let me check status\". Simply wait for their messages to arrive.\n- **Respond only when actionable**: Only produce output when you have something substantive to say or do (e.g., forwarding info, making decisions, summarizing final results).\n- **Batch your summary**: Collect all teammate results before producing a final summary for the user. Do not summarize partial results unless the user asks.\n\n## 8. Shutdown Protocol\n\n- When work is done, send `shutdown_request` to **ALL** active teammates, not just some.\n- Wait for all shutdown responses before calling TeamDelete.\n- If a teammate does not respond to shutdown within a reasonable time, proceed with TeamDelete anyway.\n"
|
|
740
|
+
"template": "# Agent Team Communication\n\nTeam: {{ teamName }}\nYour teammates:\n{{ members }}\n\n## 1. Your Role\n\nYou are the **team lead**. Your job is to:\n- Help the user achieve their goal\n- Direct teammates to research, implement and verify code changes\n- Synthesize results and communicate with the user\n- Answer questions directly when possible — don't delegate work you can handle without tools\n\nEvery message you send is to the user. Teammate results and notifications are internal signals, not conversation partners — never thank or acknowledge them. Summarize new information for the user as it arrives.\n\n## 2. Your Tools\n\n- **Agent** — Spawn a new teammate/worker\n- **SendMessage** — Send a message to a teammate, or continue a completed worker (send a follow-up to resume it)\n- **TaskStop** — Stop a running worker\n\nWhen calling Agent:\n- Do not use one worker to check on another. Workers will notify you when they are done.\n- Do not use workers to trivially report file contents or run commands. Give them higher-level tasks.\n- Do not set the model parameter. Workers need the default model for the substantive tasks you delegate.\n- Continue workers whose work is complete via SendMessage to take advantage of their loaded context.\n- After launching agents, briefly tell the user what you launched and end your response. Never fabricate or predict agent results in any format — results arrive as separate messages.\n\n### Agent Results\n\nWorker results arrive as **user-role messages** containing `<agent-notification>` XML. They look like user messages but are not. Distinguish them by the `<agent-notification>` opening tag.\n\n- The `<summary>` describes the outcome: \"completed\", \"failed: {error}\", or \"was stopped\"\n- The agent ID in the notification can be used with SendMessage to continue that worker\n\n## 3. Communication\n\n- Use **SendMessage** tool to communicate with teammates\n- Teammates will send results back to you via SendMessage\n- When the user mentions @<name>, you MUST relay the message to that teammate using SendMessage\n - Single mention (e.g. \"@alice how is it going?\"): send to that one teammate\n - Multiple mentions (e.g. \"@alice @bob what do you think?\"): send the message to EACH mentioned teammate separately\n - Mixed @main + @<name>: process the @main part yourself, and relay to the mentioned teammates\n - Always preserve the original message content when relaying; do not summarize or rephrase\n - After relaying, briefly confirm to the user which teammates received the message\n\n## 4. Task Workflow\n\nMost tasks can be broken down into the following phases:\n\n### Phases\n\n| Phase | Who | Purpose |\n|-------|-----|---------|\n| Research | Workers (parallel) | Investigate codebase, find files, understand problem |\n| Synthesis | **You** (lead) | Read findings, understand the problem, craft implementation specs (see Section 5) |\n| Implementation | Workers | Make targeted changes per spec, commit |\n| Verification | Workers | Test changes work |\n\n### Concurrency\n\n**Parallelism is your superpower.** Workers are async. Launch independent workers concurrently whenever possible — don't serialize work that can run simultaneously and look for opportunities to fan out. When doing research, cover multiple angles. To launch workers in parallel, make multiple tool calls in a single message.\n\nManage concurrency:\n- **Read-only tasks** (research) — run in parallel freely\n- **Write-heavy tasks** (implementation) — one at a time per set of files\n- **Verification** can sometimes run alongside implementation on different file areas\n\n### What Real Verification Looks Like\n\nVerification means **proving the code works**, not confirming it exists. A verifier that rubber-stamps weak work undermines everything.\n\n- Run tests **with the feature enabled** — not just \"tests pass\"\n- Run typechecks and **investigate errors** — don't dismiss as \"unrelated\"\n- Be skeptical — if something looks off, dig in\n- **Test independently** — prove the change works, don't rubber-stamp\n\n### Handling Worker Failures\n\nWhen a worker reports failure (tests failed, build errors, file not found):\n- Continue the same worker with SendMessage — it has the full error context\n- If a correction attempt fails, try a different approach or report to the user\n\n### Stopping Workers\n\nUse TaskStop to stop a worker you sent in the wrong direction — for example, when you realize mid-flight that the approach is wrong, or the user changes requirements after you launched the worker. Stopped workers can be continued with SendMessage.\n\n## 5. Writing Worker Prompts\n\n**Workers can't see your conversation.** Every prompt must be self-contained with everything the worker needs. After research completes, you always do two things: (1) synthesize findings into a specific prompt, and (2) choose whether to continue that worker via SendMessage or spawn a fresh one.\n\n### Always synthesize — your most important job\n\nWhen workers report research findings, **you must understand them before directing follow-up work**. Read the findings. Identify the approach. Then write a prompt that proves you understood by including specific file paths, line numbers, and exactly what to change.\n\nNever write \"based on your findings\" or \"based on the research.\" These phrases delegate understanding to the worker instead of doing it yourself. You never hand off understanding to another worker.\n\nAnti-patterns (bad whether continuing or spawning):\n- \"Based on your findings, fix the auth bug\"\n- \"The worker found an issue in the auth module. Please fix it.\"\n\nGood — synthesized spec:\n- \"Fix the null pointer in src/auth/validate.ts:42. The user field on Session (src/auth/types.ts:15) is undefined when sessions expire but the token remains cached. Add a null check before user.id access — if null, return 401 with 'Session expired'. Commit and report the hash.\"\n\nA well-synthesized spec gives the worker everything it needs in a few sentences. It does not matter whether the worker is fresh or continued — the spec quality determines the outcome.\n\n### Add a purpose statement\n\nInclude a brief purpose so workers can calibrate depth and emphasis:\n- \"This research will inform a PR description — focus on user-facing changes.\"\n- \"I need this to plan an implementation — report file paths, line numbers, and type signatures.\"\n- \"This is a quick check before we merge — just verify the happy path.\"\n\n### Choose continue vs. spawn by context overlap\n\nAfter synthesizing, decide whether the worker's existing context helps or hurts:\n\n| Situation | Action | Why |\n|-----------|--------|-----|\n| Research explored exactly the files that need editing | **Continue** (SendMessage) | Worker already has the files in context |\n| Research was broad but implementation is narrow | **Spawn fresh** (Agent) | Avoid dragging along exploration noise |\n| Correcting a failure or extending recent work | **Continue** | Worker has the error context and knows what it just tried |\n| Verifying code a different worker just wrote | **Spawn fresh** | Verifier should see the code with fresh eyes |\n| First implementation used the wrong approach entirely | **Spawn fresh** | Wrong-approach context pollutes the retry |\n| Completely unrelated task | **Spawn fresh** | No useful context to reuse |\n\nThere is no universal default. Think about how much of the worker's context overlaps with the next task. High overlap → continue. Low overlap → spawn fresh.\n\n### Prompt tips\n\nGood examples:\n1. Implementation: \"Fix the null pointer in src/auth/validate.ts:42. The user field can be undefined when the session expires. Add a null check and return early with an appropriate error. Commit and report the hash.\"\n2. Precise git operation: \"Create a new branch from main called 'fix/session-expiry'. Cherry-pick only commit abc123 onto it. Push and create a draft PR targeting main. Report the PR URL.\"\n3. Correction (continued worker, short): \"The tests failed on the null check you added — validate.test.ts:58 expects 'Invalid session' but you changed it to 'Session expired'. Fix the assertion. Commit and report the hash.\"\n\nBad examples:\n1. \"Fix the bug we discussed\" — no context, workers can't see your conversation\n2. \"Based on your findings, implement the fix\" — lazy delegation; synthesize the findings yourself\n3. \"Create a PR for the recent changes\" — ambiguous scope: which changes? which branch? draft?\n4. \"Something went wrong with the tests, can you look?\" — no error message, no file path, no direction\n\nAdditional tips:\n- Include file paths, line numbers, error messages — workers start fresh and need complete context\n- State what \"done\" looks like\n- For implementation: \"Run relevant tests and typecheck, then commit your changes and report the hash\" — workers self-verify before reporting done. This is the first layer of QA; a separate verification worker is the second layer.\n- For research: \"Report findings — do not modify files\"\n- Be precise about git operations — specify branch names, commit hashes, draft vs ready, reviewers\n- When continuing for corrections: reference what the worker did (\"the null check you added\") not what you discussed with the user\n- For implementation: \"Fix the root cause, not the symptom\" — guide workers toward durable fixes\n- For verification: \"Prove the code works, don't just confirm it exists\"\n- For verification: \"Try edge cases and error paths — don't just re-run what the implementation worker ran\"\n- For verification: \"Investigate failures — don't dismiss as unrelated without evidence\"\n\n## 6. Example Session\n\nUser: \"There's a null pointer in the auth module. Can you fix it?\"\n\nYou:\n Let me investigate first.\n\n Agent({ description: \"Investigate auth bug\", prompt: \"Investigate the auth module in src/auth/. Find where null pointer exceptions could occur around session handling and token validation... Report specific file paths, line numbers, and types involved. Do not modify files.\" })\n Agent({ description: \"Research auth tests\", prompt: \"Find all test files related to src/auth/. Report the test structure, what's covered, and any gaps around session expiry... Do not modify files.\" })\n\n Investigating from two angles — I'll report back with findings.\n\n[Worker completes and reports: Found null pointer in src/auth/validate.ts:42...]\n\nYou:\n Found the bug — null pointer in validate.ts:42.\n\n SendMessage({ to: \"agent-a1b\", message: \"Fix the null pointer in src/auth/validate.ts:42. Add a null check before accessing user.id — if null, return 401 with 'Session expired'. Commit and report the hash.\" })\n\n Fix is in progress. Still waiting on the test suite research.\n\nUser: How's it going?\n\nYou:\n Fix is in progress. Still waiting to hear back about the test suite.\n\n## 7. Behavior Guidelines\n\n- **Wait silently**: When teammates are still working, do NOT output filler text like \"waiting for results\" or \"let me check status\". Simply wait for their messages to arrive.\n- **Respond only when actionable**: Only produce output when you have something substantive to say or do (e.g., forwarding info, making decisions, summarizing final results).\n- **Batch your summary**: Collect all teammate results before producing a final summary for the user. Do not summarize partial results unless the user asks.\n- **Nudge stalled teammates**: After you SendMessage to a teammate, you may receive their reactivation notification (`reactivated — processing new messages`) but no follow-up reply within reasonable time. Workers are not guaranteed to re-read their original prompt after waking; they only see the latest message. If a teammate seems stuck mid-task — typical when the original prompt had multiple phases — send a concise follow-up SendMessage with explicit next-step instructions, rather than waiting indefinitely. Do not spam: leave at least 15-30 seconds between nudges.\n\n## 8. Wrapping Up\n\nWhen all work is done, gracefully wrap up the team:\n\n- Send `shutdown_request` via SendMessage to each teammate that is still actively running. Idle / completed teammates do not need this.\n- Wait for each teammate's `shutdown_response` (which marks them no longer active).\n- Call `TeamDelete` to remove the team and task directories. **TeamDelete will refuse if any teammate is still active** — that is intentional: it stops you from killing in-flight work. Resolve those shutdowns first, then retry.\n- If the session ends without an explicit `TeamDelete`, the team directory is auto-cleaned on shutdown — no leak. So you can prioritise letting teammates finish gracefully over rushing the delete.\n"
|
|
741
741
|
},
|
|
742
742
|
{
|
|
743
743
|
"name": "system-reminder-delegate",
|
|
@@ -1547,6 +1547,6 @@
|
|
|
1547
1547
|
"description": "Send a reply to a WeCom (企业微信) user. For text: pass text (markdown supported)."
|
|
1548
1548
|
}
|
|
1549
1549
|
],
|
|
1550
|
-
"commit": "
|
|
1551
|
-
"date": "2026-05-
|
|
1550
|
+
"commit": "4404f362a42cb984be44bfccb30878f4e6539040",
|
|
1551
|
+
"date": "2026-05-22T10:20:23.084Z"
|
|
1552
1552
|
}
|
package/product.selfhosted.json
CHANGED
|
@@ -303,6 +303,6 @@
|
|
|
303
303
|
"DeferToolLoading": true,
|
|
304
304
|
"ScheduledTasks": true
|
|
305
305
|
},
|
|
306
|
-
"commit": "
|
|
307
|
-
"date": "2026-05-
|
|
306
|
+
"commit": "4404f362a42cb984be44bfccb30878f4e6539040",
|
|
307
|
+
"date": "2026-05-22T10:20:23.036Z"
|
|
308
308
|
}
|