360 Secure SkillHub
360 安全技能中心

swarm

依赖 T3 Code 及其 MCP 工具启动多个只读评审者,对代码或计划做多轮并行评审:先确定评审阵容与用量上限,写出评审简报,逐条核对意见、采纳后修复再进入下一轮,直到分数达标或达到轮次上限,最后汇总发现与分歧。

分类:开发
0xr3ngar
热度 0.00
最近更新 2026-11-20 05:22:39

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add 0xr3ngar/bstack/swarm
兼容性
T3 Code 专属
联网要求
需要联网
数据出网
必须出网
Metadata
name
swarm
description
Trigger this if the user says 'swarm'.
license
MIT
compatibility
Requires T3 Code and its MCP server `t3-code`, Git, and an authenticated GitHub CLI.

Swarm

Stop if the t3-code MCP server is unavailable.

Before an audit, address outstanding PR comments, fix known issues, and run relevant checks. Give the swarm the updated implementation; do not defer known fixes until reviews return. If the user wants to discard the implementation and explore new ideas, skip fixes to code being replaced.

Use the user's saved swarm: line in ~/.config/bstack/preferences.md when the request leaves reviewers unspecified. Reviewers named for one run override that lineup for that run only. If neither gives the members, ask which reviewers to use. The user can change their default with setup. Use the settings for effort, target, cap and usage floor. Without that file, use high effort for plans, medium for code, a target of 10, eight rounds and a 5% floor on each usage limit.

Use orchestrator_capabilities to resolve named models and effort options. If a member is unavailable, report it and wait. Announce members, effort and cap in one line.

Write the brief

Use a plan brief or code brief. For an open question, give each member the request, evidence and scope. Ask for a score in open mode only if requested.

Put the brief and one report per member or code area per round in the plan folder's swarm/, or in a scratch folder. List USER DECISIONS as “not open for debate”. Include the method of redesign from first principles. If it is missing, ask whether this is what one would build from scratch and whether every reference reflects it. Require a one-sentence verdict.

Run a round

Before launching reviewers, check each selected provider account using the provider usage procedure. If setup is absent, use the matching provider’s live usage report and the standalone floor above.

Use delegate_task with shared isolation, the resolved member's target.providerInstanceId and target.model, and the provider effort option in target.options. Launch fresh read-only reviewers in parallel. Begin each task with Read <absolute path>/delegates.md before anything else. Use the delegate rules. If unavailable, include the rules in the task: work alone within scope, verify claims against files, write only the assigned report, run read-only git, post nothing and finish with REPORT <path>.

Do not wait idle. When a result arrives, check its findings against the code at once and decide what to fix while the other delegates run. Do not edit files while a delegate still reviews the same checkout. If the user's instructions mark a delegate as non-blocking, do not wait for it; treat a late result as feedback and do not record its score.

For a code review, ask each delegate for a score out of 10. Count each full review pass as one round. A fresh review after fixes starts a new round.

Check each finding against the files. Accept or reject it with a reason. Settle disagreements from the code. Reject any finding that drops a USER DECISION and record it in the brief as settled.

After all blocking reviews return, apply accepted edits. Add “since round N” with the diff file, settled findings and earlier report paths to the next brief. Record a missing score as no score; that round cannot pass a score target.

Stop when every required score reaches the target and that round produced no accepted findings. For unscored open reviews, stop when reviewers are satisfied. At the cap, show scores and open findings. If a required target is still unmet, report the specific blocker and the decision needed. Return a passing plan to the lead. The feature playbook handles any user-requested plan review before building. At or below the usage floor, finish the running round and start no new one on the affected account.

Keep scores in the reply and the plan folder only. Summarize findings, disagreements and next steps. Keep the work within scope.