ai newsMi., 25. Nov.
EilmeldungYale’s Sonnenfeld: Nvidia is a ‘detriment’ to U.S. industrial might — not a champion

Claude Ship ausprobieren: /ship-Befehl, approvals.yml und die Settings, die über Merges entscheiden

Anthropic hat Claude Ship am 23. November 2026 in der Beta veröffentlicht. Das Tool ergänzt das bestehende Code Review um zwei Agents: PR Steward pusht Fixes in GitHub-Pull-Requests, Claude Approvals entscheidet anhand einer YAML-Datei im Repo, wer noch zustimmen muss. Neu ist zudem der /ship-Befehl.

dev.toDienstag 04:28 · 24.11.DE5 Min. Lesezeit

Anthropic hat Claude Ship am 23. November 2026 in der Beta veröffentlicht. Die Erweiterung fügt der bestehenden Code-Review-Funktion von Claude zwei Agents hinzu: PR Steward, das Fixes direkt in Ihre GitHub-Pull-Requests pusht, und Claude Approvals, das anhand einer YAML-Datei in Ihrem Repository entscheidet, wer noch zustimmen muss. Außerdem gibt es den neuen Befehl /ship in Claude Code, den jeder Nutzer auf seinen eigenen Pull-Requests ausführen kann.

Dieser Beitrag ist die praktische Version: Was jedes einzelne Bauteil tut, die Befehle, eine Start-Richtlinie zum Kopieren und die Einstellungen, die beeinflussen, was gemergt werden kann und was Sie bezahlen. Alles im Folgenden stammt aus der Ankündigung von Anthropic und der Claude-Code-Dokumentation, inklusive Verlinkungen, damit Sie die Details selbst nachprüfen können.

Claude Ship funktioniert mit Repositories auf GitHub. Es steht Organisationen mit Zero Data Retention, der HIPAA-Konfiguration oder von Kunden verwalteten Verschlüsselungsschlüsseln nicht zur Verfügung.

Boris Cherny, der Claude Code leitet, brachte es auf den Punkt: "Anyone can use /ship."

claude --version gh --version gh auth status # run gh auth login if this fails git --version Enter fullscreen mode Exit fullscreen mode Führen Sie es aus der Claude-Code-CLI in einem Terminal aus, innerhalb Ihres lokalen Klons. Cloud-Sitzungen haben den Befehl nicht, und unter nativem Windows startet kein Watch-Modus.

/ship kann jede nicht committete Datei committen, einschließlich neuer Dateien, und fragt nicht nach Bestätigung. Vor dem Commit und vor dem Push gibt es eine Zeile aus, die mit Esc to cancel endet, und fährt nach wenigen Sekunden fort. Secrets werden allein anhand des Dateinamens erkannt, etwa.env, werfen Sie also einen Blick darauf, was gleich hineinwandert:

git status # keep a scratch file out of the PR git stash push -u -- notes.txt Enter fullscreen mode Exit fullscreen mode Wenn Sie nach dem Commit, aber vor dem Push abbrechen, bleibt der Commit bestehen. git reset HEAD~1 macht ihn rückgängig und behält Ihre Dateien.

Verwenden Sie dieselbe Sitzung, in der Sie die Änderung entwickelt haben, denn Claude schreibt die Commit-Nachricht auf Grundlage dieser Konversation. Geben Sie dann am Claude-Code-Prompt /ship ein. Die Schritte sind:

Wenn der Pull-Request bereits offen ist und Sie kein Review möchten, führen Sie /steward aus, um direkt zum Watch-Modus zu gelangen. Damit Claude die Kommentare eines anderen Bots lesen kann, fügen Sie ihn mit Namen hinzu: /steward +my-lint-bot.

Für unbeaufsichtigte Arbeit empfiehlt die Dokumentation den auto-Modus. In den meisten anderen Berechtigungsmodi wartet Claude bei jedem Prompt, und im Modus bypassPermissions startet kein Watch-Modus.

Der Watch-Modus nutzt Ihre gh- und git-Anmeldungen, sodass alles unter Ihrem Namen erscheint. Im auto-Modus pusht er Commits, mergt den Basis-Branch in Ihren, führt fehlgeschlagene Checks erneut aus, beantwortet Kommentare und löst Threads auf, ohne zu fragen. Halten Sie die Sitzung im Vordergrund und den Rechner wach. Beginnen Sie Ihre nächste Änderung in einem zweiten Klon, da Claude dasselbe Checkout bearbeitet.

Ein Hinweis aus der Dokumentation sollte hier wiederholt werden. Führen Sie einen Watch-Modus nur dort aus, wo Sie jedem vertrauen, der in den Basis-Branch mergen oder auf Ihren Branch pushen kann, denn jeder von ihnen kann mit Ihren Zugangsdaten Programme auf Ihrem Rechner ausführen.

Für diesen Teil braucht es einen Owner in einer Claude-Team- oder Enterprise-Organisation sowie die installierte und verknüpfte Claude GitHub App. Die Dokumentation empfiehlt, immer nur einen Agent gleichzeitig zu aktivieren, in einem Repository und in dieser Reihenfolge:

Bei einem Pull-Request, den PR Steward beobachtet, kommentieren Sie @claude mit einer Anweisung, um es zu steuern, oder @claude stop, um es zu beenden. Das Entfernen des Labels claude-pr-steward-watching beendet es ebenfalls. Es überspringt Drafts, Forks, von Bots eröffnete Pull-Requests und Autoren ohne Schreibrechte, sofern ein Owner das nicht ändert.

Claude Approvals wird aktiviert, sobald.claude/approvals.yml auf dem Standard-Branch existiert. Jede Regel hat paths und ein verdict. Im verdict bedeutet claude approves, comments oder blocks, und seats gibt an, wie viele Personen zustimmen müssen. Ein override ersetzt das verdict, solange seine if-Bedingung erfüllt ist.

Dies ist die erste Start-Richtlinie aus dem Einrichtungsleitfaden. Sie erlaubt Claude, zu genehmigen, wenn sein Review besteht, und hält für jede Änderung am.claude/-Ordner zwei Personen fest:

#.claude/approvals.yml version: 1 mode: observe rules: - purpose: "A change takes two people. When Claude's review passes, one is enough and Claude approves." paths: [ "**" ] verdict: { claude: comments, seats: 2 } override: - { if: "claude/code_review = pass", verdict: { claude: approves, seats: 1 } } - purpose: "A change to the review rules takes two people." paths: [ "**/.claude/**" ] nested: inherit verdict: { claude: comments, seats: 2 } Enter fullscreen mode Exit fullscreen mode Hier ist das umfangreichere Beispiel, das @ClaudeDevs geteilt hat, bei dem Dokumente allein auf Claudes Zustimmung gemergt werden können und Abrechnungscode zwei Personen außer dem Autor erfordert, davon eine aus einem Payments-Team:

Nützliche Bedingungen aus der Richtlinien-Referenz für Ihre eigenen Overrides:

Die Dokumentation warnt, dass, wenn Sie GitHub auto-merge oder eine Merge-Queue mit einer Richtlinie verwenden, die keine menschliche Person verlangt, eine Änderung ohne jegliches Zutun gemergt werden kann. @ctojmt hob am Launch-Abend denselben Punkt hervor.

Anthropic sagt, dass im Claude-Code-Team, wo Claudes Review eine Ebene in einem breiteren Prozess ist, die gemergten Pull-Requests von Juni bis September mehr als doppelt so viele wurden, während der Anteil der Reverts um mehr als 40 Prozent sank. Das ist die Firma, die ihr eigenes Team misst; führen Sie also den observe-Modus aus und sammeln Sie Ihre eigenen Zahlen, bevor Sie etwas erzwingen.

Wie sähe Ihre erste Override-Regel aus? Ich bin gespannt, ob die Leute mit Dokumentation, Dependency-Bumps oder kleinen Diffs anfangen.

Automatisch übersetzt. Das Original auf Englisch ist unten aufklappbar.

Original (Englisch) anzeigen

Anthropic released Claude Ship in beta on November 23, 2026. It adds two agents to Claude's existing Code Review: PR Steward, which pushes fixes to your GitHub pull requests, and Claude Approvals, which decides who still has to approve based on a YAML file in your repo. There is also a new /ship command in Claude Code that any user can run on their own PRs.

This post is the practical version: what each piece does, the commands, a starter policy you can copy, and the settings that affect what can merge and what you pay. Everything below comes from Anthropic's announcement and the Claude Code docs, with links so you can check the details.

Claude Ship works with repositories on GitHub. It is not available to organizations with Zero Data Retention, the HIPAA configuration, or customer managed encryption keys.

Boris Cherny, who leads Claude Code, put it plainly: "Anyone can use /ship."

claude --version gh --version gh auth status # run gh auth login if this fails git --version Enter fullscreen mode Exit fullscreen mode Run it from the Claude Code CLI in a terminal, inside your local clone. Cloud sessions don't have the command, and on native Windows no watch starts.

/ship can commit every uncommitted file, including new ones, and it doesn't ask for confirmation. Before the commit and before the push it prints a line ending in Esc to cancel, then continues after a few seconds. It detects secrets only by file name, such as.env, so look at what is about to go in:

git status # keep a scratch file out of the PR git stash push -u -- notes.txt Enter fullscreen mode Exit fullscreen mode If you cancel after the commit but before the push, the commit stays. git reset HEAD~1 undoes it and keeps your files.

Use the same session you built the change in, because Claude writes the commit message from that conversation. Then type /ship at the Claude Code prompt. The steps are:

If the PR is already open and you don't want a review, run /steward to go straight to the watch. To let Claude read another bot's comments, add it by name: /steward +my-lint-bot.

For unattended work, the docs suggest auto mode. In most other permission modes Claude waits at each prompt, and in bypassPermissions mode no watch starts.

The watch uses your gh and git sign ins, so everything appears under your name. In auto mode it pushes commits, merges the base branch into yours, re-runs failed checks, answers comments and resolves threads without asking. Keep the session in the foreground and the machine awake. Start your next change in a second clone, since Claude edits the same checkout.

One warning from the docs is worth repeating here. Only run a watch where you trust everyone who can merge to the base branch or push to your branch, because any of them can run programs on your computer with your credentials.

This part needs an Owner in a Claude Team or Enterprise organization and the Claude GitHub App installed and linked. The docs say to enable one agent at a time, in one repository, in this order:

On a PR that PR Steward is watching, comment @claude plus an instruction to steer it, or @claude stop to end it. Removing the claude-pr-steward-watching label also stops it. It skips drafts, forks, PRs opened by bots, and authors without write access unless an Owner changes that.

Claude Approvals turns on when.claude/approvals.yml exists on the default branch. Each rule has paths and a verdict. In the verdict, claude is approves, comments or blocks, and seats is how many people must approve. An override swaps the verdict while its if condition is true.

This is the first starter policy from the setup guide. It lets Claude approve when its review passes, and keeps two people on any change to the.claude/ folder:

#.claude/approvals.yml version: 1 mode: observe rules: - purpose: "A change takes two people. When Claude's review passes, one is enough and Claude approves." paths: [ "**" ] verdict: { claude: comments, seats: 2 } override: - { if: "claude/code_review = pass", verdict: { claude: approves, seats: 1 } } - purpose: "A change to the review rules takes two people." paths: [ "**/.claude/**" ] nested: inherit verdict: { claude: comments, seats: 2 } Enter fullscreen mode Exit fullscreen mode Here is the richer example @ClaudeDevs shared, where docs can merge on Claude's approval alone and billing code needs two non-authors, one from a payments team:

Useful conditions from the policy reference for your own overrides:

The docs warn that if you use GitHub auto-merge or a merge queue with a policy that doesn't require a person, a change can merge with nobody acting. @ctojmt raised the same point on launch night.

Anthropic says that on the Claude Code team, where Claude's review is one layer of a broader process, merged PRs more than doubled from June to September while the share reverted fell by more than 40%. That is the company measuring its own team, so run observe mode and collect your own numbers before you enforce anything.

What would your first override rule be? I'm curious whether people start with docs, dependency bumps or small diffs.

Originaltitel: How to try Claude Ship today: /ship, a starter approvals.yml, and the settings that decide what mergesQuelle: dev.to (dev.to). Original öffnen