Claude Ship puts AI at the helm of pull request approvals
Tired of waiting for a meatbag to approve a change? Anthropic has an agent for that
Anthropic has launched an AI-powered tool named Claude Ship to scrutinize, enhance, and endorse pull requests (PRs) on GitHub. This innovation integrates with the existing Code Review service and introduces two novel agents, PR Steward and Claude Approvals, both available in beta. The service is tailored for Claude Team and Enterprise customers utilizing GitHub repositories.
Anthropic disclosed, "On the Claude Code team, Claude composes much of our code, and we aimed for rapid progression beyond the PR stage as well." The primary objective is to expedite the code delivery process in line with the speed at which teams code. The surge in AI-generated code necessitates thorough review and approval before deployment.
Claude Ship aims to automate this process to some extent. PR Steward manages issues like failed continuous integration (CI) checks, merge conflicts, and review feedback. Claude Approvals can actually green-light a PR, an action that might be unsettling for some engineers. Claude Approvals operates based on an approval policy, scripted as a file within the repository.
The policy permits Claude to green-light routine changes autonomously or necessitates human verification for certain situations. Anthropic cautioned, "For most customers, we suggest commencing this in observe-only mode to establish confidence before configuring branch protection to rely on Claude Approvals' green light." Developers can experiment with Claude Ship on their individual PRs (subject to permissions and branch rules) using a /ship command in Claude Code.
However, administrators are tasked with establishing the rules at the repository level. Claude Approvals commences when a connected repository possesses a policy file on its default branch, and an admin can deactivate it. Teams have control over the pace, starting with one repository, selecting a review level, establishing a monthly spend cap, and executing their approval policy in observe mode until they gain confidence in its efficacy.
This added automation brings extra expenses. Usage is token-based, and even observe-only approval policies can incur costs if they activate classifiers or Code Review. Anthropic also reiterates the standard disclaimer: "Claude Ship utilizes AI and might overlook bugs, security vulnerabilities, or other issues." A developer employed at a company utilizing Claude expressed some skepticism regarding the whole endeavor.
They remarked, "It seems like an embellishment of what I already employ Claude for – git merge or git rebase." The developer's guiding principle thus far with Git is to limit Claude to read operations. This stratification permits developers to retain control and assess the AI modifications – whether to retain, adjust, or incorporate them.
Should this responsibility be entirely offloaded to Claude and granted git history-rewrite access, developers may forfeit their oversight and judgment opportunity.
Rewritten by urgent.news; may contain errors — check the original.
Source: theregister.com