Skip to content
WeChat · AI Era (Xinzhiyuan)·Indexed by this site · Originally published· AI updates →· Its place in the scan record →SelectedAttention72

Claude beta can automatically approve low-risk code according to rules

Claude能自己批代码了!8个月前还说那是人的事

AI summary

Anthropic launched the Claude Ship beta on November 23, in which three Claudes divide the work of reviewing, fixing and approving code according to rules after it is committed. Among them, Claude Approvals gives Claude the authority to approve PRs for the first time (during the testing phase), whereas when Code Review was launched in March this year, Anthropic still said that approving PRs is a human matter. The new component PR Steward is responsible for fixing tests, resolving conflicts and modifying code according to comments, but it neither approves nor merges PRs. The approval standards are written into .claude/approvals.yml on the default branch; development branches cannot lower the standards, and changes to billing, authentication and CI require at least 1 person's signature. Anthropic says that in repositories where about 90% of the code is written by Claude, the number of merged PRs from June to September this year more than doubled, the proportion of online rollbacks dropped by more than 40%, and the proportion of PRs receiving valid revision comments rose from 16% to 54%.

Why it was selected

The article sorts out the division of labor among the three components of review, fixing and approval. The design in which approval rules only recognize the file on the default branch and prevent development branches from lowering the standards can serve as a reference for teams introducing AI review.

Read originalmp.weixin.qq.com