cc-viewer 1.9.14 → 1.9.16

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 (57) hide show
  1. package/cli.js +1 -0
  2. package/concepts/ar/UltraPlan.md +9 -9
  3. package/concepts/da/UltraPlan.md +9 -9
  4. package/concepts/de/UltraPlan.md +9 -9
  5. package/concepts/en/UltraPlan.md +9 -9
  6. package/concepts/es/UltraPlan.md +9 -9
  7. package/concepts/fr/UltraPlan.md +9 -9
  8. package/concepts/it/UltraPlan.md +9 -9
  9. package/concepts/ja/UltraPlan.md +9 -9
  10. package/concepts/ko/UltraPlan.md +9 -9
  11. package/concepts/no/UltraPlan.md +9 -9
  12. package/concepts/pl/UltraPlan.md +9 -9
  13. package/concepts/pt-BR/UltraPlan.md +9 -9
  14. package/concepts/ru/UltraPlan.md +9 -9
  15. package/concepts/th/UltraPlan.md +9 -9
  16. package/concepts/tr/UltraPlan.md +9 -9
  17. package/concepts/uk/UltraPlan.md +9 -9
  18. package/concepts/zh/UltraPlan.md +9 -9
  19. package/concepts/zh-TW/UltraPlan.md +9 -9
  20. package/dist/assets/App-BvVdj099.css +1 -0
  21. package/dist/assets/App-CYdOioAz.js +2 -0
  22. package/dist/assets/{MdxEditorPanel-DI3B4gsM.js → MdxEditorPanel-CuCAe1OG.js} +1 -1
  23. package/dist/assets/Mobile-CfNYOgRa.js +1 -0
  24. package/dist/assets/{ProxyStatsModal-B8K0AtAq.js → ProxyStatsModal-Dhj4EVnh.js} +1 -1
  25. package/dist/assets/index-sgW8MlD3.js +2 -0
  26. package/dist/assets/seqResourceLoaders-B-5xGs9q.css +41 -0
  27. package/dist/assets/seqResourceLoaders-Cj0pdz-l.js +2 -0
  28. package/dist/index.html +1 -1
  29. package/node_modules/@ccv/core/src/contentFilter.js +3 -0
  30. package/node_modules/@ccv/core/src/queued-prompt.js +66 -0
  31. package/node_modules/@ccv/core/src/v2-transcript-normalizer.js +78 -14
  32. package/package.json +1 -1
  33. package/server/lib/ask/perm-bridge.js +4 -1
  34. package/server/lib/auto-approve.js +160 -0
  35. package/server/lib/chat-queue.js +350 -120
  36. package/server/lib/file-access-policy.js +24 -2
  37. package/server/lib/scheduled-task-executor.js +3 -1
  38. package/server/lib/sdk-manager.js +377 -76
  39. package/server/lib/v2/conversation-store.js +15 -11
  40. package/server/lib/v2/v2-writer.js +1 -1
  41. package/server/lib/view-root.js +4 -4
  42. package/server/pty-manager.js +8 -8
  43. package/server/routes/ask-perm.js +54 -3
  44. package/server/routes/files-content.js +352 -16
  45. package/server/routes/files-fs.js +122 -36
  46. package/server/routes/resume.js +1 -1
  47. package/server/routes/sdk-context.js +13 -2
  48. package/server/routes/skills.js +19 -8
  49. package/server/server.js +205 -34
  50. package/server/system-prompt-templates/presets/kimi-k3.md +1 -0
  51. package/ultraAgents/code-expert.json +1 -1
  52. package/dist/assets/App-BzV1ieDH.js +0 -2
  53. package/dist/assets/App-DU5jmGrx.css +0 -1
  54. package/dist/assets/Mobile-qBkAnXy3.js +0 -1
  55. package/dist/assets/index-CU0gt6m1.js +0 -2
  56. package/dist/assets/seqResourceLoaders-CxUFE36z.css +0 -41
  57. package/dist/assets/seqResourceLoaders-nGCs11zu.js +0 -2
package/cli.js CHANGED
@@ -891,6 +891,7 @@ async function runSdkMode(extraClaudeArgs = [], cwd, noOpen = false) {
891
891
  // 注册 SDK 回调到 server.js(WS 消息路由用)
892
892
  serverMod.setSdkResolveApproval(sdkManager.resolveApproval);
893
893
  serverMod.setSdkCancelApproval(sdkManager.cancelApproval);
894
+ serverMod.setSdkAutoCancelApproval(sdkManager.autoCancelApproval);
894
895
  serverMod.setSdkSendUserMessage(sdkManager.sendUserMessage);
895
896
  serverMod.setSdkInterruptTurn(sdkManager.interruptTurn);
896
897
  serverMod.setSdkGetPendingApprovals(sdkManager.getPendingApprovals);
@@ -98,25 +98,25 @@ Your final plan must include the following elements:
98
98
  6. After the final plan has been successfully executed:
99
99
  First run `git diff --quiet && git diff --cached --quiet` (or equivalent) to detect whether the working tree actually has non-trivial changes; if there are no real changes (or only whitespace/comment-only edits), skip the UltraReview step.
100
100
  Otherwise, if the project is managed with Git:
101
- Initiate a team (`TeamCreate`), dynamically allocating the number of teammates based on task complexity (5 is recommended);
102
- If the `TeamCreate` tool is unavailable, spawn teammates directly with the `Agent` tool (note: as teammates, not plain subagents);
103
- Task: Conduct a Code Review of the current git changes from multiple perspectives;
101
+ Use the `Agent` tool to build a team, dynamically allocating the number of teammates based on task complexity (5+ is recommended);
102
+ Note: teammates are named (pass `name`), not plain subagents (which have no name);
103
+ Task: Conduct a Code Review of the current git changes from multiple roles and perspectives;
104
104
  Pre-requisites:
105
- - The git repository may be located in a subdirectory of the current directory; prefer `git rev-parse --show-toplevel` (fall back to recursive lookup) before proceeding;
106
- - In the case of multiple repositories, tasks may be executed separately;
107
- The team's goal is to analyze the current Git change log and validate each modification from different perspectives, specifically including:
105
+ - The git repository may be located in a subdirectory of the current directory; recursively locate the .git directory first (prefer `git rev-parse --show-toplevel`) before proceeding;
106
+ - In the case of multiple repositories, review tasks may be executed separately per repository;
107
+ Review dimensions (a reference framework — each role covers them as its perspective requires, aiming to be as comprehensive as possible):
108
108
  - Whether requirements/objectives have been met and functionality is complete;
109
109
  - Whether newly added code introduces side effects, breaks existing functionality, or poses potential risks;
110
110
  - Code quality: naming, readability, complexity, technical debt, maintainability;
111
111
  - Testing and documentation: whether there is adequate test coverage, and whether critical logic has necessary comments or documentation;
112
112
  - Dependencies and compatibility: whether new dependencies or version compatibility issues have been introduced;
113
+ - Any other dimensions you see fit;
113
114
  Workflow:
114
115
  - Each teammate, according to their own role, covers the review dimensions one by one and independently outputs a report;
115
116
  - After consolidating the reports, perform a cross-review to identify conflicts or shared concerns;
116
117
  - Distill specific, actionable modification suggestions and annotate them with priority levels (P0/P1/P2/P3);
117
- - Upon completion, adopt P0 items; adopt P1 and P2 items selectively based on evaluation; disregard P3 items.
118
- - After execution is complete, close the team (`TeamDelete`);
119
- - If the `TeamDelete` tool is unavailable, notify each teammate to exit individually;
118
+ - Upon completion, fix all P0 and P1 items; evaluate P2 items dialectically (use `AskUserQuestion` to consult the user when any item needs a special decision);
119
+ - After execution is complete, close the team: notify each teammate to exit individually;
120
120
  </system-reminder></textarea>
121
121
 
122
122
  ### Research Expert (researchExpert)
@@ -98,25 +98,25 @@ Your final plan must include the following elements:
98
98
  6. After the final plan has been successfully executed:
99
99
  First run `git diff --quiet && git diff --cached --quiet` (or equivalent) to detect whether the working tree actually has non-trivial changes; if there are no real changes (or only whitespace/comment-only edits), skip the UltraReview step.
100
100
  Otherwise, if the project is managed with Git:
101
- Initiate a team (`TeamCreate`), dynamically allocating the number of teammates based on task complexity (5 is recommended);
102
- If the `TeamCreate` tool is unavailable, spawn teammates directly with the `Agent` tool (note: as teammates, not plain subagents);
103
- Task: Conduct a Code Review of the current git changes from multiple perspectives;
101
+ Use the `Agent` tool to build a team, dynamically allocating the number of teammates based on task complexity (5+ is recommended);
102
+ Note: teammates are named (pass `name`), not plain subagents (which have no name);
103
+ Task: Conduct a Code Review of the current git changes from multiple roles and perspectives;
104
104
  Pre-requisites:
105
- - The git repository may be located in a subdirectory of the current directory; prefer `git rev-parse --show-toplevel` (fall back to recursive lookup) before proceeding;
106
- - In the case of multiple repositories, tasks may be executed separately;
107
- The team's goal is to analyze the current Git change log and validate each modification from different perspectives, specifically including:
105
+ - The git repository may be located in a subdirectory of the current directory; recursively locate the .git directory first (prefer `git rev-parse --show-toplevel`) before proceeding;
106
+ - In the case of multiple repositories, review tasks may be executed separately per repository;
107
+ Review dimensions (a reference framework — each role covers them as its perspective requires, aiming to be as comprehensive as possible):
108
108
  - Whether requirements/objectives have been met and functionality is complete;
109
109
  - Whether newly added code introduces side effects, breaks existing functionality, or poses potential risks;
110
110
  - Code quality: naming, readability, complexity, technical debt, maintainability;
111
111
  - Testing and documentation: whether there is adequate test coverage, and whether critical logic has necessary comments or documentation;
112
112
  - Dependencies and compatibility: whether new dependencies or version compatibility issues have been introduced;
113
+ - Any other dimensions you see fit;
113
114
  Workflow:
114
115
  - Each teammate, according to their own role, covers the review dimensions one by one and independently outputs a report;
115
116
  - After consolidating the reports, perform a cross-review to identify conflicts or shared concerns;
116
117
  - Distill specific, actionable modification suggestions and annotate them with priority levels (P0/P1/P2/P3);
117
- - Upon completion, adopt P0 items; adopt P1 and P2 items selectively based on evaluation; disregard P3 items.
118
- - After execution is complete, close the team (`TeamDelete`);
119
- - If the `TeamDelete` tool is unavailable, notify each teammate to exit individually;
118
+ - Upon completion, fix all P0 and P1 items; evaluate P2 items dialectically (use `AskUserQuestion` to consult the user when any item needs a special decision);
119
+ - After execution is complete, close the team: notify each teammate to exit individually;
120
120
  </system-reminder></textarea>
121
121
 
122
122
  ### Research Expert (researchExpert)
@@ -98,25 +98,25 @@ Your final plan must include the following elements:
98
98
  6. After the final plan has been successfully executed:
99
99
  First run `git diff --quiet && git diff --cached --quiet` (or equivalent) to detect whether the working tree actually has non-trivial changes; if there are no real changes (or only whitespace/comment-only edits), skip the UltraReview step.
100
100
  Otherwise, if the project is managed with Git:
101
- Initiate a team (`TeamCreate`), dynamically allocating the number of teammates based on task complexity (5 is recommended);
102
- If the `TeamCreate` tool is unavailable, spawn teammates directly with the `Agent` tool (note: as teammates, not plain subagents);
103
- Task: Conduct a Code Review of the current git changes from multiple perspectives;
101
+ Use the `Agent` tool to build a team, dynamically allocating the number of teammates based on task complexity (5+ is recommended);
102
+ Note: teammates are named (pass `name`), not plain subagents (which have no name);
103
+ Task: Conduct a Code Review of the current git changes from multiple roles and perspectives;
104
104
  Pre-requisites:
105
- - The git repository may be located in a subdirectory of the current directory; prefer `git rev-parse --show-toplevel` (fall back to recursive lookup) before proceeding;
106
- - In the case of multiple repositories, tasks may be executed separately;
107
- The team's goal is to analyze the current Git change log and validate each modification from different perspectives, specifically including:
105
+ - The git repository may be located in a subdirectory of the current directory; recursively locate the .git directory first (prefer `git rev-parse --show-toplevel`) before proceeding;
106
+ - In the case of multiple repositories, review tasks may be executed separately per repository;
107
+ Review dimensions (a reference framework — each role covers them as its perspective requires, aiming to be as comprehensive as possible):
108
108
  - Whether requirements/objectives have been met and functionality is complete;
109
109
  - Whether newly added code introduces side effects, breaks existing functionality, or poses potential risks;
110
110
  - Code quality: naming, readability, complexity, technical debt, maintainability;
111
111
  - Testing and documentation: whether there is adequate test coverage, and whether critical logic has necessary comments or documentation;
112
112
  - Dependencies and compatibility: whether new dependencies or version compatibility issues have been introduced;
113
+ - Any other dimensions you see fit;
113
114
  Workflow:
114
115
  - Each teammate, according to their own role, covers the review dimensions one by one and independently outputs a report;
115
116
  - After consolidating the reports, perform a cross-review to identify conflicts or shared concerns;
116
117
  - Distill specific, actionable modification suggestions and annotate them with priority levels (P0/P1/P2/P3);
117
- - Upon completion, adopt P0 items; adopt P1 and P2 items selectively based on evaluation; disregard P3 items.
118
- - After execution is complete, close the team (`TeamDelete`);
119
- - If the `TeamDelete` tool is unavailable, notify each teammate to exit individually;
118
+ - Upon completion, fix all P0 and P1 items; evaluate P2 items dialectically (use `AskUserQuestion` to consult the user when any item needs a special decision);
119
+ - After execution is complete, close the team: notify each teammate to exit individually;
120
120
  </system-reminder></textarea>
121
121
 
122
122
  ### Research Expert (researchExpert)
@@ -98,25 +98,25 @@ Your final plan must include the following elements:
98
98
  6. After the final plan has been successfully executed:
99
99
  First run `git diff --quiet && git diff --cached --quiet` (or equivalent) to detect whether the working tree actually has non-trivial changes; if there are no real changes (or only whitespace/comment-only edits), skip the UltraReview step.
100
100
  Otherwise, if the project is managed with Git:
101
- Initiate a team (`TeamCreate`), dynamically allocating the number of teammates based on task complexity (5 is recommended);
102
- If the `TeamCreate` tool is unavailable, spawn teammates directly with the `Agent` tool (note: as teammates, not plain subagents);
103
- Task: Conduct a Code Review of the current git changes from multiple perspectives;
101
+ Use the `Agent` tool to build a team, dynamically allocating the number of teammates based on task complexity (5+ is recommended);
102
+ Note: teammates are named (pass `name`), not plain subagents (which have no name);
103
+ Task: Conduct a Code Review of the current git changes from multiple roles and perspectives;
104
104
  Pre-requisites:
105
- - The git repository may be located in a subdirectory of the current directory; prefer `git rev-parse --show-toplevel` (fall back to recursive lookup) before proceeding;
106
- - In the case of multiple repositories, tasks may be executed separately;
107
- The team's goal is to analyze the current Git change log and validate each modification from different perspectives, specifically including:
105
+ - The git repository may be located in a subdirectory of the current directory; recursively locate the .git directory first (prefer `git rev-parse --show-toplevel`) before proceeding;
106
+ - In the case of multiple repositories, review tasks may be executed separately per repository;
107
+ Review dimensions (a reference framework — each role covers them as its perspective requires, aiming to be as comprehensive as possible):
108
108
  - Whether requirements/objectives have been met and functionality is complete;
109
109
  - Whether newly added code introduces side effects, breaks existing functionality, or poses potential risks;
110
110
  - Code quality: naming, readability, complexity, technical debt, maintainability;
111
111
  - Testing and documentation: whether there is adequate test coverage, and whether critical logic has necessary comments or documentation;
112
112
  - Dependencies and compatibility: whether new dependencies or version compatibility issues have been introduced;
113
+ - Any other dimensions you see fit;
113
114
  Workflow:
114
115
  - Each teammate, according to their own role, covers the review dimensions one by one and independently outputs a report;
115
116
  - After consolidating the reports, perform a cross-review to identify conflicts or shared concerns;
116
117
  - Distill specific, actionable modification suggestions and annotate them with priority levels (P0/P1/P2/P3);
117
- - Upon completion, adopt P0 items; adopt P1 and P2 items selectively based on evaluation; disregard P3 items.
118
- - After execution is complete, close the team (`TeamDelete`);
119
- - If the `TeamDelete` tool is unavailable, notify each teammate to exit individually;
118
+ - Upon completion, fix all P0 and P1 items; evaluate P2 items dialectically (use `AskUserQuestion` to consult the user when any item needs a special decision);
119
+ - After execution is complete, close the team: notify each teammate to exit individually;
120
120
  </system-reminder></textarea>
121
121
 
122
122
  ### Research Expert (researchExpert)
@@ -98,25 +98,25 @@ Your final plan must include the following elements:
98
98
  6. After the final plan has been successfully executed:
99
99
  First run `git diff --quiet && git diff --cached --quiet` (or equivalent) to detect whether the working tree actually has non-trivial changes; if there are no real changes (or only whitespace/comment-only edits), skip the UltraReview step.
100
100
  Otherwise, if the project is managed with Git:
101
- Initiate a team (`TeamCreate`), dynamically allocating the number of teammates based on task complexity (5 is recommended);
102
- If the `TeamCreate` tool is unavailable, spawn teammates directly with the `Agent` tool (note: as teammates, not plain subagents);
103
- Task: Conduct a Code Review of the current git changes from multiple perspectives;
101
+ Use the `Agent` tool to build a team, dynamically allocating the number of teammates based on task complexity (5+ is recommended);
102
+ Note: teammates are named (pass `name`), not plain subagents (which have no name);
103
+ Task: Conduct a Code Review of the current git changes from multiple roles and perspectives;
104
104
  Pre-requisites:
105
- - The git repository may be located in a subdirectory of the current directory; prefer `git rev-parse --show-toplevel` (fall back to recursive lookup) before proceeding;
106
- - In the case of multiple repositories, tasks may be executed separately;
107
- The team's goal is to analyze the current Git change log and validate each modification from different perspectives, specifically including:
105
+ - The git repository may be located in a subdirectory of the current directory; recursively locate the .git directory first (prefer `git rev-parse --show-toplevel`) before proceeding;
106
+ - In the case of multiple repositories, review tasks may be executed separately per repository;
107
+ Review dimensions (a reference framework — each role covers them as its perspective requires, aiming to be as comprehensive as possible):
108
108
  - Whether requirements/objectives have been met and functionality is complete;
109
109
  - Whether newly added code introduces side effects, breaks existing functionality, or poses potential risks;
110
110
  - Code quality: naming, readability, complexity, technical debt, maintainability;
111
111
  - Testing and documentation: whether there is adequate test coverage, and whether critical logic has necessary comments or documentation;
112
112
  - Dependencies and compatibility: whether new dependencies or version compatibility issues have been introduced;
113
+ - Any other dimensions you see fit;
113
114
  Workflow:
114
115
  - Each teammate, according to their own role, covers the review dimensions one by one and independently outputs a report;
115
116
  - After consolidating the reports, perform a cross-review to identify conflicts or shared concerns;
116
117
  - Distill specific, actionable modification suggestions and annotate them with priority levels (P0/P1/P2/P3);
117
- - Upon completion, adopt P0 items; adopt P1 and P2 items selectively based on evaluation; disregard P3 items.
118
- - After execution is complete, close the team (`TeamDelete`);
119
- - If the `TeamDelete` tool is unavailable, notify each teammate to exit individually;
118
+ - Upon completion, fix all P0 and P1 items; evaluate P2 items dialectically (use `AskUserQuestion` to consult the user when any item needs a special decision);
119
+ - After execution is complete, close the team: notify each teammate to exit individually;
120
120
  </system-reminder></textarea>
121
121
 
122
122
  ### Research Expert (researchExpert)
@@ -98,25 +98,25 @@ Your final plan must include the following elements:
98
98
  6. After the final plan has been successfully executed:
99
99
  First run `git diff --quiet && git diff --cached --quiet` (or equivalent) to detect whether the working tree actually has non-trivial changes; if there are no real changes (or only whitespace/comment-only edits), skip the UltraReview step.
100
100
  Otherwise, if the project is managed with Git:
101
- Initiate a team (`TeamCreate`), dynamically allocating the number of teammates based on task complexity (5 is recommended);
102
- If the `TeamCreate` tool is unavailable, spawn teammates directly with the `Agent` tool (note: as teammates, not plain subagents);
103
- Task: Conduct a Code Review of the current git changes from multiple perspectives;
101
+ Use the `Agent` tool to build a team, dynamically allocating the number of teammates based on task complexity (5+ is recommended);
102
+ Note: teammates are named (pass `name`), not plain subagents (which have no name);
103
+ Task: Conduct a Code Review of the current git changes from multiple roles and perspectives;
104
104
  Pre-requisites:
105
- - The git repository may be located in a subdirectory of the current directory; prefer `git rev-parse --show-toplevel` (fall back to recursive lookup) before proceeding;
106
- - In the case of multiple repositories, tasks may be executed separately;
107
- The team's goal is to analyze the current Git change log and validate each modification from different perspectives, specifically including:
105
+ - The git repository may be located in a subdirectory of the current directory; recursively locate the .git directory first (prefer `git rev-parse --show-toplevel`) before proceeding;
106
+ - In the case of multiple repositories, review tasks may be executed separately per repository;
107
+ Review dimensions (a reference framework — each role covers them as its perspective requires, aiming to be as comprehensive as possible):
108
108
  - Whether requirements/objectives have been met and functionality is complete;
109
109
  - Whether newly added code introduces side effects, breaks existing functionality, or poses potential risks;
110
110
  - Code quality: naming, readability, complexity, technical debt, maintainability;
111
111
  - Testing and documentation: whether there is adequate test coverage, and whether critical logic has necessary comments or documentation;
112
112
  - Dependencies and compatibility: whether new dependencies or version compatibility issues have been introduced;
113
+ - Any other dimensions you see fit;
113
114
  Workflow:
114
115
  - Each teammate, according to their own role, covers the review dimensions one by one and independently outputs a report;
115
116
  - After consolidating the reports, perform a cross-review to identify conflicts or shared concerns;
116
117
  - Distill specific, actionable modification suggestions and annotate them with priority levels (P0/P1/P2/P3);
117
- - Upon completion, adopt P0 items; adopt P1 and P2 items selectively based on evaluation; disregard P3 items.
118
- - After execution is complete, close the team (`TeamDelete`);
119
- - If the `TeamDelete` tool is unavailable, notify each teammate to exit individually;
118
+ - Upon completion, fix all P0 and P1 items; evaluate P2 items dialectically (use `AskUserQuestion` to consult the user when any item needs a special decision);
119
+ - After execution is complete, close the team: notify each teammate to exit individually;
120
120
  </system-reminder></textarea>
121
121
 
122
122
  ### Research Expert (researchExpert)
@@ -98,25 +98,25 @@ Your final plan must include the following elements:
98
98
  6. After the final plan has been successfully executed:
99
99
  First run `git diff --quiet && git diff --cached --quiet` (or equivalent) to detect whether the working tree actually has non-trivial changes; if there are no real changes (or only whitespace/comment-only edits), skip the UltraReview step.
100
100
  Otherwise, if the project is managed with Git:
101
- Initiate a team (`TeamCreate`), dynamically allocating the number of teammates based on task complexity (5 is recommended);
102
- If the `TeamCreate` tool is unavailable, spawn teammates directly with the `Agent` tool (note: as teammates, not plain subagents);
103
- Task: Conduct a Code Review of the current git changes from multiple perspectives;
101
+ Use the `Agent` tool to build a team, dynamically allocating the number of teammates based on task complexity (5+ is recommended);
102
+ Note: teammates are named (pass `name`), not plain subagents (which have no name);
103
+ Task: Conduct a Code Review of the current git changes from multiple roles and perspectives;
104
104
  Pre-requisites:
105
- - The git repository may be located in a subdirectory of the current directory; prefer `git rev-parse --show-toplevel` (fall back to recursive lookup) before proceeding;
106
- - In the case of multiple repositories, tasks may be executed separately;
107
- The team's goal is to analyze the current Git change log and validate each modification from different perspectives, specifically including:
105
+ - The git repository may be located in a subdirectory of the current directory; recursively locate the .git directory first (prefer `git rev-parse --show-toplevel`) before proceeding;
106
+ - In the case of multiple repositories, review tasks may be executed separately per repository;
107
+ Review dimensions (a reference framework — each role covers them as its perspective requires, aiming to be as comprehensive as possible):
108
108
  - Whether requirements/objectives have been met and functionality is complete;
109
109
  - Whether newly added code introduces side effects, breaks existing functionality, or poses potential risks;
110
110
  - Code quality: naming, readability, complexity, technical debt, maintainability;
111
111
  - Testing and documentation: whether there is adequate test coverage, and whether critical logic has necessary comments or documentation;
112
112
  - Dependencies and compatibility: whether new dependencies or version compatibility issues have been introduced;
113
+ - Any other dimensions you see fit;
113
114
  Workflow:
114
115
  - Each teammate, according to their own role, covers the review dimensions one by one and independently outputs a report;
115
116
  - After consolidating the reports, perform a cross-review to identify conflicts or shared concerns;
116
117
  - Distill specific, actionable modification suggestions and annotate them with priority levels (P0/P1/P2/P3);
117
- - Upon completion, adopt P0 items; adopt P1 and P2 items selectively based on evaluation; disregard P3 items.
118
- - After execution is complete, close the team (`TeamDelete`);
119
- - If the `TeamDelete` tool is unavailable, notify each teammate to exit individually;
118
+ - Upon completion, fix all P0 and P1 items; evaluate P2 items dialectically (use `AskUserQuestion` to consult the user when any item needs a special decision);
119
+ - After execution is complete, close the team: notify each teammate to exit individually;
120
120
  </system-reminder></textarea>
121
121
 
122
122
  ### Research Expert (researchExpert)
@@ -98,25 +98,25 @@ Your final plan must include the following elements:
98
98
  6. After the final plan has been successfully executed:
99
99
  First run `git diff --quiet && git diff --cached --quiet` (or equivalent) to detect whether the working tree actually has non-trivial changes; if there are no real changes (or only whitespace/comment-only edits), skip the UltraReview step.
100
100
  Otherwise, if the project is managed with Git:
101
- Initiate a team (`TeamCreate`), dynamically allocating the number of teammates based on task complexity (5 is recommended);
102
- If the `TeamCreate` tool is unavailable, spawn teammates directly with the `Agent` tool (note: as teammates, not plain subagents);
103
- Task: Conduct a Code Review of the current git changes from multiple perspectives;
101
+ Use the `Agent` tool to build a team, dynamically allocating the number of teammates based on task complexity (5+ is recommended);
102
+ Note: teammates are named (pass `name`), not plain subagents (which have no name);
103
+ Task: Conduct a Code Review of the current git changes from multiple roles and perspectives;
104
104
  Pre-requisites:
105
- - The git repository may be located in a subdirectory of the current directory; prefer `git rev-parse --show-toplevel` (fall back to recursive lookup) before proceeding;
106
- - In the case of multiple repositories, tasks may be executed separately;
107
- The team's goal is to analyze the current Git change log and validate each modification from different perspectives, specifically including:
105
+ - The git repository may be located in a subdirectory of the current directory; recursively locate the .git directory first (prefer `git rev-parse --show-toplevel`) before proceeding;
106
+ - In the case of multiple repositories, review tasks may be executed separately per repository;
107
+ Review dimensions (a reference framework — each role covers them as its perspective requires, aiming to be as comprehensive as possible):
108
108
  - Whether requirements/objectives have been met and functionality is complete;
109
109
  - Whether newly added code introduces side effects, breaks existing functionality, or poses potential risks;
110
110
  - Code quality: naming, readability, complexity, technical debt, maintainability;
111
111
  - Testing and documentation: whether there is adequate test coverage, and whether critical logic has necessary comments or documentation;
112
112
  - Dependencies and compatibility: whether new dependencies or version compatibility issues have been introduced;
113
+ - Any other dimensions you see fit;
113
114
  Workflow:
114
115
  - Each teammate, according to their own role, covers the review dimensions one by one and independently outputs a report;
115
116
  - After consolidating the reports, perform a cross-review to identify conflicts or shared concerns;
116
117
  - Distill specific, actionable modification suggestions and annotate them with priority levels (P0/P1/P2/P3);
117
- - Upon completion, adopt P0 items; adopt P1 and P2 items selectively based on evaluation; disregard P3 items.
118
- - After execution is complete, close the team (`TeamDelete`);
119
- - If the `TeamDelete` tool is unavailable, notify each teammate to exit individually;
118
+ - Upon completion, fix all P0 and P1 items; evaluate P2 items dialectically (use `AskUserQuestion` to consult the user when any item needs a special decision);
119
+ - After execution is complete, close the team: notify each teammate to exit individually;
120
120
  </system-reminder></textarea>
121
121
 
122
122
  ### Research Expert (researchExpert)
@@ -98,25 +98,25 @@ Your final plan must include the following elements:
98
98
  6. After the final plan has been successfully executed:
99
99
  First run `git diff --quiet && git diff --cached --quiet` (or equivalent) to detect whether the working tree actually has non-trivial changes; if there are no real changes (or only whitespace/comment-only edits), skip the UltraReview step.
100
100
  Otherwise, if the project is managed with Git:
101
- Initiate a team (`TeamCreate`), dynamically allocating the number of teammates based on task complexity (5 is recommended);
102
- If the `TeamCreate` tool is unavailable, spawn teammates directly with the `Agent` tool (note: as teammates, not plain subagents);
103
- Task: Conduct a Code Review of the current git changes from multiple perspectives;
101
+ Use the `Agent` tool to build a team, dynamically allocating the number of teammates based on task complexity (5+ is recommended);
102
+ Note: teammates are named (pass `name`), not plain subagents (which have no name);
103
+ Task: Conduct a Code Review of the current git changes from multiple roles and perspectives;
104
104
  Pre-requisites:
105
- - The git repository may be located in a subdirectory of the current directory; prefer `git rev-parse --show-toplevel` (fall back to recursive lookup) before proceeding;
106
- - In the case of multiple repositories, tasks may be executed separately;
107
- The team's goal is to analyze the current Git change log and validate each modification from different perspectives, specifically including:
105
+ - The git repository may be located in a subdirectory of the current directory; recursively locate the .git directory first (prefer `git rev-parse --show-toplevel`) before proceeding;
106
+ - In the case of multiple repositories, review tasks may be executed separately per repository;
107
+ Review dimensions (a reference framework — each role covers them as its perspective requires, aiming to be as comprehensive as possible):
108
108
  - Whether requirements/objectives have been met and functionality is complete;
109
109
  - Whether newly added code introduces side effects, breaks existing functionality, or poses potential risks;
110
110
  - Code quality: naming, readability, complexity, technical debt, maintainability;
111
111
  - Testing and documentation: whether there is adequate test coverage, and whether critical logic has necessary comments or documentation;
112
112
  - Dependencies and compatibility: whether new dependencies or version compatibility issues have been introduced;
113
+ - Any other dimensions you see fit;
113
114
  Workflow:
114
115
  - Each teammate, according to their own role, covers the review dimensions one by one and independently outputs a report;
115
116
  - After consolidating the reports, perform a cross-review to identify conflicts or shared concerns;
116
117
  - Distill specific, actionable modification suggestions and annotate them with priority levels (P0/P1/P2/P3);
117
- - Upon completion, adopt P0 items; adopt P1 and P2 items selectively based on evaluation; disregard P3 items.
118
- - After execution is complete, close the team (`TeamDelete`);
119
- - If the `TeamDelete` tool is unavailable, notify each teammate to exit individually;
118
+ - Upon completion, fix all P0 and P1 items; evaluate P2 items dialectically (use `AskUserQuestion` to consult the user when any item needs a special decision);
119
+ - After execution is complete, close the team: notify each teammate to exit individually;
120
120
  </system-reminder></textarea>
121
121
 
122
122
  ### Research Expert (researchExpert)
@@ -98,25 +98,25 @@ Your final plan must include the following elements:
98
98
  6. After the final plan has been successfully executed:
99
99
  First run `git diff --quiet && git diff --cached --quiet` (or equivalent) to detect whether the working tree actually has non-trivial changes; if there are no real changes (or only whitespace/comment-only edits), skip the UltraReview step.
100
100
  Otherwise, if the project is managed with Git:
101
- Initiate a team (`TeamCreate`), dynamically allocating the number of teammates based on task complexity (5 is recommended);
102
- If the `TeamCreate` tool is unavailable, spawn teammates directly with the `Agent` tool (note: as teammates, not plain subagents);
103
- Task: Conduct a Code Review of the current git changes from multiple perspectives;
101
+ Use the `Agent` tool to build a team, dynamically allocating the number of teammates based on task complexity (5+ is recommended);
102
+ Note: teammates are named (pass `name`), not plain subagents (which have no name);
103
+ Task: Conduct a Code Review of the current git changes from multiple roles and perspectives;
104
104
  Pre-requisites:
105
- - The git repository may be located in a subdirectory of the current directory; prefer `git rev-parse --show-toplevel` (fall back to recursive lookup) before proceeding;
106
- - In the case of multiple repositories, tasks may be executed separately;
107
- The team's goal is to analyze the current Git change log and validate each modification from different perspectives, specifically including:
105
+ - The git repository may be located in a subdirectory of the current directory; recursively locate the .git directory first (prefer `git rev-parse --show-toplevel`) before proceeding;
106
+ - In the case of multiple repositories, review tasks may be executed separately per repository;
107
+ Review dimensions (a reference framework — each role covers them as its perspective requires, aiming to be as comprehensive as possible):
108
108
  - Whether requirements/objectives have been met and functionality is complete;
109
109
  - Whether newly added code introduces side effects, breaks existing functionality, or poses potential risks;
110
110
  - Code quality: naming, readability, complexity, technical debt, maintainability;
111
111
  - Testing and documentation: whether there is adequate test coverage, and whether critical logic has necessary comments or documentation;
112
112
  - Dependencies and compatibility: whether new dependencies or version compatibility issues have been introduced;
113
+ - Any other dimensions you see fit;
113
114
  Workflow:
114
115
  - Each teammate, according to their own role, covers the review dimensions one by one and independently outputs a report;
115
116
  - After consolidating the reports, perform a cross-review to identify conflicts or shared concerns;
116
117
  - Distill specific, actionable modification suggestions and annotate them with priority levels (P0/P1/P2/P3);
117
- - Upon completion, adopt P0 items; adopt P1 and P2 items selectively based on evaluation; disregard P3 items.
118
- - After execution is complete, close the team (`TeamDelete`);
119
- - If the `TeamDelete` tool is unavailable, notify each teammate to exit individually;
118
+ - Upon completion, fix all P0 and P1 items; evaluate P2 items dialectically (use `AskUserQuestion` to consult the user when any item needs a special decision);
119
+ - After execution is complete, close the team: notify each teammate to exit individually;
120
120
  </system-reminder></textarea>
121
121
 
122
122
  ### Research Expert (researchExpert)
@@ -98,25 +98,25 @@ Your final plan must include the following elements:
98
98
  6. After the final plan has been successfully executed:
99
99
  First run `git diff --quiet && git diff --cached --quiet` (or equivalent) to detect whether the working tree actually has non-trivial changes; if there are no real changes (or only whitespace/comment-only edits), skip the UltraReview step.
100
100
  Otherwise, if the project is managed with Git:
101
- Initiate a team (`TeamCreate`), dynamically allocating the number of teammates based on task complexity (5 is recommended);
102
- If the `TeamCreate` tool is unavailable, spawn teammates directly with the `Agent` tool (note: as teammates, not plain subagents);
103
- Task: Conduct a Code Review of the current git changes from multiple perspectives;
101
+ Use the `Agent` tool to build a team, dynamically allocating the number of teammates based on task complexity (5+ is recommended);
102
+ Note: teammates are named (pass `name`), not plain subagents (which have no name);
103
+ Task: Conduct a Code Review of the current git changes from multiple roles and perspectives;
104
104
  Pre-requisites:
105
- - The git repository may be located in a subdirectory of the current directory; prefer `git rev-parse --show-toplevel` (fall back to recursive lookup) before proceeding;
106
- - In the case of multiple repositories, tasks may be executed separately;
107
- The team's goal is to analyze the current Git change log and validate each modification from different perspectives, specifically including:
105
+ - The git repository may be located in a subdirectory of the current directory; recursively locate the .git directory first (prefer `git rev-parse --show-toplevel`) before proceeding;
106
+ - In the case of multiple repositories, review tasks may be executed separately per repository;
107
+ Review dimensions (a reference framework — each role covers them as its perspective requires, aiming to be as comprehensive as possible):
108
108
  - Whether requirements/objectives have been met and functionality is complete;
109
109
  - Whether newly added code introduces side effects, breaks existing functionality, or poses potential risks;
110
110
  - Code quality: naming, readability, complexity, technical debt, maintainability;
111
111
  - Testing and documentation: whether there is adequate test coverage, and whether critical logic has necessary comments or documentation;
112
112
  - Dependencies and compatibility: whether new dependencies or version compatibility issues have been introduced;
113
+ - Any other dimensions you see fit;
113
114
  Workflow:
114
115
  - Each teammate, according to their own role, covers the review dimensions one by one and independently outputs a report;
115
116
  - After consolidating the reports, perform a cross-review to identify conflicts or shared concerns;
116
117
  - Distill specific, actionable modification suggestions and annotate them with priority levels (P0/P1/P2/P3);
117
- - Upon completion, adopt P0 items; adopt P1 and P2 items selectively based on evaluation; disregard P3 items.
118
- - After execution is complete, close the team (`TeamDelete`);
119
- - If the `TeamDelete` tool is unavailable, notify each teammate to exit individually;
118
+ - Upon completion, fix all P0 and P1 items; evaluate P2 items dialectically (use `AskUserQuestion` to consult the user when any item needs a special decision);
119
+ - After execution is complete, close the team: notify each teammate to exit individually;
120
120
  </system-reminder></textarea>
121
121
 
122
122
  ### Research Expert (researchExpert)
@@ -98,25 +98,25 @@ Your final plan must include the following elements:
98
98
  6. After the final plan has been successfully executed:
99
99
  First run `git diff --quiet && git diff --cached --quiet` (or equivalent) to detect whether the working tree actually has non-trivial changes; if there are no real changes (or only whitespace/comment-only edits), skip the UltraReview step.
100
100
  Otherwise, if the project is managed with Git:
101
- Initiate a team (`TeamCreate`), dynamically allocating the number of teammates based on task complexity (5 is recommended);
102
- If the `TeamCreate` tool is unavailable, spawn teammates directly with the `Agent` tool (note: as teammates, not plain subagents);
103
- Task: Conduct a Code Review of the current git changes from multiple perspectives;
101
+ Use the `Agent` tool to build a team, dynamically allocating the number of teammates based on task complexity (5+ is recommended);
102
+ Note: teammates are named (pass `name`), not plain subagents (which have no name);
103
+ Task: Conduct a Code Review of the current git changes from multiple roles and perspectives;
104
104
  Pre-requisites:
105
- - The git repository may be located in a subdirectory of the current directory; prefer `git rev-parse --show-toplevel` (fall back to recursive lookup) before proceeding;
106
- - In the case of multiple repositories, tasks may be executed separately;
107
- The team's goal is to analyze the current Git change log and validate each modification from different perspectives, specifically including:
105
+ - The git repository may be located in a subdirectory of the current directory; recursively locate the .git directory first (prefer `git rev-parse --show-toplevel`) before proceeding;
106
+ - In the case of multiple repositories, review tasks may be executed separately per repository;
107
+ Review dimensions (a reference framework — each role covers them as its perspective requires, aiming to be as comprehensive as possible):
108
108
  - Whether requirements/objectives have been met and functionality is complete;
109
109
  - Whether newly added code introduces side effects, breaks existing functionality, or poses potential risks;
110
110
  - Code quality: naming, readability, complexity, technical debt, maintainability;
111
111
  - Testing and documentation: whether there is adequate test coverage, and whether critical logic has necessary comments or documentation;
112
112
  - Dependencies and compatibility: whether new dependencies or version compatibility issues have been introduced;
113
+ - Any other dimensions you see fit;
113
114
  Workflow:
114
115
  - Each teammate, according to their own role, covers the review dimensions one by one and independently outputs a report;
115
116
  - After consolidating the reports, perform a cross-review to identify conflicts or shared concerns;
116
117
  - Distill specific, actionable modification suggestions and annotate them with priority levels (P0/P1/P2/P3);
117
- - Upon completion, adopt P0 items; adopt P1 and P2 items selectively based on evaluation; disregard P3 items.
118
- - After execution is complete, close the team (`TeamDelete`);
119
- - If the `TeamDelete` tool is unavailable, notify each teammate to exit individually;
118
+ - Upon completion, fix all P0 and P1 items; evaluate P2 items dialectically (use `AskUserQuestion` to consult the user when any item needs a special decision);
119
+ - After execution is complete, close the team: notify each teammate to exit individually;
120
120
  </system-reminder></textarea>
121
121
 
122
122
  ### Research Expert (researchExpert)
@@ -98,25 +98,25 @@ Your final plan must include the following elements:
98
98
  6. After the final plan has been successfully executed:
99
99
  First run `git diff --quiet && git diff --cached --quiet` (or equivalent) to detect whether the working tree actually has non-trivial changes; if there are no real changes (or only whitespace/comment-only edits), skip the UltraReview step.
100
100
  Otherwise, if the project is managed with Git:
101
- Initiate a team (`TeamCreate`), dynamically allocating the number of teammates based on task complexity (5 is recommended);
102
- If the `TeamCreate` tool is unavailable, spawn teammates directly with the `Agent` tool (note: as teammates, not plain subagents);
103
- Task: Conduct a Code Review of the current git changes from multiple perspectives;
101
+ Use the `Agent` tool to build a team, dynamically allocating the number of teammates based on task complexity (5+ is recommended);
102
+ Note: teammates are named (pass `name`), not plain subagents (which have no name);
103
+ Task: Conduct a Code Review of the current git changes from multiple roles and perspectives;
104
104
  Pre-requisites:
105
- - The git repository may be located in a subdirectory of the current directory; prefer `git rev-parse --show-toplevel` (fall back to recursive lookup) before proceeding;
106
- - In the case of multiple repositories, tasks may be executed separately;
107
- The team's goal is to analyze the current Git change log and validate each modification from different perspectives, specifically including:
105
+ - The git repository may be located in a subdirectory of the current directory; recursively locate the .git directory first (prefer `git rev-parse --show-toplevel`) before proceeding;
106
+ - In the case of multiple repositories, review tasks may be executed separately per repository;
107
+ Review dimensions (a reference framework — each role covers them as its perspective requires, aiming to be as comprehensive as possible):
108
108
  - Whether requirements/objectives have been met and functionality is complete;
109
109
  - Whether newly added code introduces side effects, breaks existing functionality, or poses potential risks;
110
110
  - Code quality: naming, readability, complexity, technical debt, maintainability;
111
111
  - Testing and documentation: whether there is adequate test coverage, and whether critical logic has necessary comments or documentation;
112
112
  - Dependencies and compatibility: whether new dependencies or version compatibility issues have been introduced;
113
+ - Any other dimensions you see fit;
113
114
  Workflow:
114
115
  - Each teammate, according to their own role, covers the review dimensions one by one and independently outputs a report;
115
116
  - After consolidating the reports, perform a cross-review to identify conflicts or shared concerns;
116
117
  - Distill specific, actionable modification suggestions and annotate them with priority levels (P0/P1/P2/P3);
117
- - Upon completion, adopt P0 items; adopt P1 and P2 items selectively based on evaluation; disregard P3 items.
118
- - After execution is complete, close the team (`TeamDelete`);
119
- - If the `TeamDelete` tool is unavailable, notify each teammate to exit individually;
118
+ - Upon completion, fix all P0 and P1 items; evaluate P2 items dialectically (use `AskUserQuestion` to consult the user when any item needs a special decision);
119
+ - After execution is complete, close the team: notify each teammate to exit individually;
120
120
  </system-reminder></textarea>
121
121
 
122
122
  ### Research Expert (researchExpert)
@@ -98,25 +98,25 @@ Your final plan must include the following elements:
98
98
  6. After the final plan has been successfully executed:
99
99
  First run `git diff --quiet && git diff --cached --quiet` (or equivalent) to detect whether the working tree actually has non-trivial changes; if there are no real changes (or only whitespace/comment-only edits), skip the UltraReview step.
100
100
  Otherwise, if the project is managed with Git:
101
- Initiate a team (`TeamCreate`), dynamically allocating the number of teammates based on task complexity (5 is recommended);
102
- If the `TeamCreate` tool is unavailable, spawn teammates directly with the `Agent` tool (note: as teammates, not plain subagents);
103
- Task: Conduct a Code Review of the current git changes from multiple perspectives;
101
+ Use the `Agent` tool to build a team, dynamically allocating the number of teammates based on task complexity (5+ is recommended);
102
+ Note: teammates are named (pass `name`), not plain subagents (which have no name);
103
+ Task: Conduct a Code Review of the current git changes from multiple roles and perspectives;
104
104
  Pre-requisites:
105
- - The git repository may be located in a subdirectory of the current directory; prefer `git rev-parse --show-toplevel` (fall back to recursive lookup) before proceeding;
106
- - In the case of multiple repositories, tasks may be executed separately;
107
- The team's goal is to analyze the current Git change log and validate each modification from different perspectives, specifically including:
105
+ - The git repository may be located in a subdirectory of the current directory; recursively locate the .git directory first (prefer `git rev-parse --show-toplevel`) before proceeding;
106
+ - In the case of multiple repositories, review tasks may be executed separately per repository;
107
+ Review dimensions (a reference framework — each role covers them as its perspective requires, aiming to be as comprehensive as possible):
108
108
  - Whether requirements/objectives have been met and functionality is complete;
109
109
  - Whether newly added code introduces side effects, breaks existing functionality, or poses potential risks;
110
110
  - Code quality: naming, readability, complexity, technical debt, maintainability;
111
111
  - Testing and documentation: whether there is adequate test coverage, and whether critical logic has necessary comments or documentation;
112
112
  - Dependencies and compatibility: whether new dependencies or version compatibility issues have been introduced;
113
+ - Any other dimensions you see fit;
113
114
  Workflow:
114
115
  - Each teammate, according to their own role, covers the review dimensions one by one and independently outputs a report;
115
116
  - After consolidating the reports, perform a cross-review to identify conflicts or shared concerns;
116
117
  - Distill specific, actionable modification suggestions and annotate them with priority levels (P0/P1/P2/P3);
117
- - Upon completion, adopt P0 items; adopt P1 and P2 items selectively based on evaluation; disregard P3 items.
118
- - After execution is complete, close the team (`TeamDelete`);
119
- - If the `TeamDelete` tool is unavailable, notify each teammate to exit individually;
118
+ - Upon completion, fix all P0 and P1 items; evaluate P2 items dialectically (use `AskUserQuestion` to consult the user when any item needs a special decision);
119
+ - After execution is complete, close the team: notify each teammate to exit individually;
120
120
  </system-reminder></textarea>
121
121
 
122
122
  ### Research Expert (researchExpert)