跳到正文
FunCoding

搜索

搜索文档、Skill 和 MCP

本地预评审与 Bugbot Autofix

在推送前检查 branch diff,并控制自动修复的分支、模型和次数。

Cursor 3.7+、网页 Agents 和 CLI 提供 /review-bugbot 与 /review Skills,可在推送前运行评审。默认比较当前分支相对 base branch 的全部变化,包括已提交与未提交内容;需要仅检查未提交内容时明确说明。

Base branch 与重复评审

不是默认 base 时显式指定比较分支。/review-bugbot 记录 diff 的 patch ID,连接的 GitHub/GitLab/Bitbucket 远程 Bugbot 看到同一 patch ID 时可跳过重复 review 并留下说明。它识别相同差异,不等于永久跳过整个 PR。

Autofix 流程

发现 bug 后启动 Cloud Agent,分析和修改,按设置推到新分支或现有 PR 分支,再评论结果。需要 on-demand usage 和允许存储,Legacy Privacy Mode 不适用。它消耗 Cloud Agent credits,不能当作评审本身的零成本附带操作。

模式与服务商

服务New BranchExisting Branch
GitHub / Origin支持支持
GitLab / Bitbucket Cloud不支持支持
Azure DevOps / Bitbucket Data Center不支持不支持

Bugbot 主表笼统列 Bitbucket 支持 existing branch,但 Data Center 集成页明确不支持,因此这里按具体部署类型区分。

Commit to Existing Branch 每 PR 最多 3 次尝试以避免循环。个人可选 Use Installation Default、Off、Create New Branch、Commit to Existing Branch,覆盖自己 PR 的团队默认。选了服务商不支持的个人模式会跳过该 PR Autofix,不自动转换模式。

模型与设置

Autofix 使用 Settings > Models 的 Default agent model,未设个人值时退回团队再到系统默认。仓库 YAML 的 autofix.mode 只能降低 dashboard 模式,见配置优先级。

Team/Enterprise 可向 Bugbot 添加 MCP tools 作为额外上下文和评审能力,在 Automations 的 Bugbot 工具设置启用;这与 Autofix 对外部系统的访问应分别核对。