ai newsDi., 1. Dez.

Claude Codes /ship auf Windows scheitert zuerst am PATH

Ein Test des neuen /ship-Befehls von Claude Code unter Windows brach vor der eigentlichen Arbeit mit dem Hinweis auf einen relativen oder leeren PATH-Eintrag ab. Ursache waren ein abschließendes Semikolon und zwei nicht expandierte nvm-windows-Variablen.

dev.toSonntag 15:28 · 29.11.DE17 Min. Lesezeit
Bild: dev.to

Veröffentlicht am 29. Nov • Ursprünglich veröffentlicht auf its-tahir.com

Ich habe Claude Codes neuen /ship-Befehl unter Windows in der Woche getestet, in der Claude Ship veröffentlicht wurde. Bevor er meinen Code anfasste, stoppte er mit der Meldung "your PATH has a relative or empty entry": ein abschließendes Semikolon und zwei nicht expandierte nvm-windows-Variablen. Nachdem das behoben war, committete er, pushte, öffnete den Pull Request, reviewte ihn und teilte mir anschließend mit: "on Windows the checks that limit a watch don't run yet". Hier ist, was /ship und Claude Ship jeweils tun und worauf ich gestoßen bin.

Claude Ship ist Anthropics Satz von drei GitHub-Pull-Request-Agents (Code Review, PR Steward und Claude Approvals) für Team- und Enterprise-Organisationen, veröffentlicht am 23. November 2026. /ship ist der Claude-Code-Befehl, der eine lokale, auf einen einzelnen Pull Request beschränkte Version dieser Review-und-Fix-Schleife in Ihrer eigenen Session ausführt, ab Claude Code 2.1.330 oder neuer: er committet Ihre Änderung, öffnet den Pull Request, reviewt ihn, überwacht ihn anschließend und pusht Fixes. Unter Windows stieß ich vor diesem letzten Schritt auf zwei Hürden: Ihre PATH enthält einen relativen oder leeren Eintrag, sodass Claude Code nicht erkennen kann, welche gh- und git-Programme ausgeführt würden, hier verursacht durch nvm-windows, und danach laufen unter Windows die Checks, die ein Watch begrenzen, noch nicht.

/ship ist nicht in Cloud-Sessions verfügbar oder in Sessions, die das Abrufen von Feature-Flags überspringen, zum Beispiel mit gesetztem DISABLE_TELEMETRY oder bei einem Drittanbieter, wie es die Troubleshooting-Dokumentation beschreibt.

Zuletzt geprüft am 24. November 2026, mit Claude Code 2.1.330 unter Windows 11 und Opus 5.5 im Auto-Modus. Die unten gezeigten /ship-Meldungen stammen aus meinen eigenen Läufen in einem privaten Wegwerf-Repository, aus dem Terminal übernommen; das Übrige stammt aus Anthropics /ship- und Claude-Ship-Dokumentation, an den jeweiligen Stellen verlinkt. Ich habe die Organisations-Agents von Claude Ship nicht getestet, die einen Team- oder Enterprise-Plan erfordern.

Drei Läufe von /ship unter Windows 11: zwei durch PATH blockiert, einer, der bis zum Review kam.

Claude Ship ist eine Sammlung von Agents, die einen GitHub-Pull Request durch Review, Fixes und eine Approval-Entscheidung führen, sodass ein Team nicht jeden Schritt manuell betreuen muss. Anthropics Claude-Ship-Dokumentation nennt drei:

Es ist für Organisationen mit Team- und Enterprise-Plänen gedacht, eingerichtet von einem Owner unter Organization settings > Claude Ship, jeweils ein Agent. Code Review ist allgemein verfügbar; PR Steward und Claude Approvals befinden sich in der öffentlichen Beta. Es ist nicht verfügbar mit Zero Data Retention, der HIPAA-Konfiguration oder von Kunden verwalteten Verschlüsselungsschlüsseln. Jeder Agent wird über die Token-Nutzung über die Usage-Credits der Organisation abgerechnet, getrennt von der im Plan enthaltenen Nutzung, und die Dokumentation warnt, dass PR Steward "has no spend limit of its own until you set one".

Die Berichterstattung zur Veröffentlichung, etwa bei TechCrunch, dreht sich überwiegend um diese Organisations-Agents. Wenn Ihr Plan nicht Team oder Enterprise ist, ist der Teil, den Sie heute nutzen können, der /ship-Befehl.

Nein. Vier Namen decken zwei Produkte ab: Claude Ship und PR Steward laufen auf GitHub für eine Organisation, während /ship und /steward in Ihrer eigenen Claude-Code-Session laufen.

ship-local ist der Name des eingebauten Skills hinter /ship, also der Name, den Sie in den Einstellungen verwenden, um ihn zu deaktivieren. Wo PR Steward bereits an einem Pull Request arbeitet, startet ein lokaler /steward-Watch nicht.

/ship bringt eine fertige Änderung auf Ihrem Rechner in einen gereviewten Pull Request und arbeitet dann daran weiter, bis er für Sie zum Mergen bereit ist. Aus der /ship-Dokumentation, in vier Schritten:

Es gibt keinen Bestätigungsdialog. Vor dem Commit und erneut vor dem Push zeigt eine Zeile mit Esc zum Abbrechen an, was gleich geschehen wird; wenn Sie nichts tun, fährt /ship nach wenigen Sekunden fort. In meinem Lauf lauteten diese Zeilen:

About to commit all your changes (2 files: math.js, math.test.js) as you, on add-multiply. Esc to cancel. Pushing 1 commit on add-multiply to its-tahir/claude-ship-test (private) and opening a PR. Esc to cancel. Enter fullscreen mode Exit fullscreen mode Anschließend: /ship pushed add-multiply to its-tahir/claude-ship-test and opened pull request #1 as you, ready for review. Es hat kein Upstream gesetzt, sodass ein schlichtes git pull oder git push auf add-multiply möglicherweise zuerst git branch -u origin/add-multiply benötigt. Setzen Sie dieses Upstream nicht, während ein Watch läuft: Änderungen an den Git-Einstellungen beenden den Watch.

/ship committet Ihre uncommitteten Änderungen nicht, wenn für den Branch bereits ein Pull Request offen ist, wenn das Repository öffentlich ist (dort pusht es nur bereits vorhandene Commits des Branches), wenn ein Dateiname auf ein Secret hindeutet wie etwa.env, oder wenn Sie eine Datei geändert haben, die git, CI oder einen Coding-Agent konfiguriert, etwa.gitignore, CLAUDE.md oder alles unter.github/. Es öffnet keine Pull Requests auf GitHub Enterprise oder aus einem Fork. Für einen Draft-Pull-Request, einen anderen Base-Branch oder das Pull-Request-Template Ihres Repositories öffnen Sie den Pull Request selbst und führen dann /ship aus.

Installieren Sie Claude Code 2.1.330 oder neuer, die GitHub CLI 2.63 oder neuer, angemeldet mit gh auth login, sowie git 2.38 oder neuer; wechseln Sie in den Auto-Modus; und tippen Sie dann in Ihrem lokalen Clone an der Claude-Code-Eingabeaufforderung /ship ein. Er startet nur aus einer Zeile, die Sie selbst eintippen. Laut Dokumentation startet er nicht aus claude -p oder aus einem Programm heraus, und Cloud-Sessions verfügen nicht darüber.

Die Argumente, so wie sie der Command-Hint anzeigt ( /ship [low|medium|high|xhigh|max] [<pr#>|<pr url>|stop|terms] [+bot...] ):

Setzen Sie die Effort-Stufe zuerst, wenn Sie sie kombinieren: /ship low 41 +my-lint-bot.

Ich erstellte ein privates Wegwerf-Repository mit einem bestandenen Test und einem GitHub-Actions-Workflow, fügte dann eine multiply-Funktion mit einem absichtlichen Fehler ( return a + b ) und einen fehlschlagenden Test hinzu, uncommittet auf einem Branch gelassen. Jeder Lauf fand in einem schlichten PowerShell-Fenster statt, nicht in VS Code, mit Claude Code 2.1.330, Opus 5.5 und Auto-Modus.

Läufe 1 und 2: durch PATH blockiert. /ship begann mit:

I didn't look for a pull request or push anything: your PATH has a relative or empty entry, so Claude Code can't tell which gh and git would run. Once that's fixed, run /ship again. /ship runs in this session, on your plan's usage limits or your API or cloud bill. Reviewing at high effort.

I fix the real problems in your working tree, and I don't commit, push or comment. Enter fullscreen mode Exit fullscreen mode /ship führte das Review dennoch im Hintergrund aus (19 Sekunden), fand den Fehler in math.js:6 ("multiply added its two numbers instead of multiplying them, so multiply(3, 4) gave 7 instead of 12") und behob ihn in meinem Working Tree, ohne zu committen. /steward verweigerte kategorisch: /steward didn't start. I can't watch a pull request here: your PATH has a relative or empty entry, so Claude Code can't tell which gh and git would run.

Lauf 3: sauberer PATH. Er committete, pushte, öffnete Pull Request #1 und reviewte ihn mit hohem Aufwand (28 Sekunden; der gesamte Lauf dauerte 1 Minute 38 Sekunden). Der Code war da bereits in Ordnung. Die eine echte Feststellung betraf seinen eigenen Commit, weiter unten behandelt. Dann wurde der Watch verweigert:

I can't watch pull request #1 here: on Windows the checks that limit a watch don't run yet. Enter fullscreen mode Exit fullscreen mode /steward gab dieselbe Antwort: /steward didn't start. I can't watch pull request #1 here: on Windows the checks that limit a watch don't run yet. Beide GitHub-Actions-Läufe auf dem Branch bestanden. Unter nativem Windows bekommen Sie mit /ship also einen Commit, einen Pull Request und ein Review, aber nicht den Teil, der fehlschlagende Checks behebt und Kommentare für Sie beantwortet.

your PATH has a relative or empty entry, so Claude Code can't tell which gh and git would run bedeutet, dass mindestens ein Eintrag in Ihrer PATH leer oder kein vollständiger Pfad ist, sodass Claude Code nicht sicher sein kann, welche gh- und git-Programme ein Befehl ausführen würde, und es verweigert Commit, Push und Watch. /ship ohne Pull-Request-Nummer reviewt dann nur Ihre Änderung. Die Troubleshooting-Dokumentation nennt eine Ursache, "a trailing:, or; on Windows". Auf meinem Rechner gab es zwei, und die zweite steht nicht in der Dokumentation:

Die zweite übersieht man leicht. nvm-windows trägt %NVM_HOME% und %NVM_SYMLINK% in die System-PATH ein, und in meinem Terminal ließ Windows sie unexpandiert, sodass Claude Code zwei relative Einträge sah. Ich kann nicht sagen, warum: beide Variablen waren definiert, und die System-PATH lag als expandierender Registry-Typ vor, wie es sein sollte. Ein Check, den ich aus einem anderen Programm heraus ausführte, zeigte sie expandiert, weshalb der erste Fix (das abschließende; ) zunächst wirkungslos schien.

1. Finden Sie die problematischen Einträge, im selben PowerShell-Fenster, aus dem Sie claude starten:

$i = 0; $env: Path - split ';' | ForEach - Object { $i ++; if ( $_ - eq '' - or - not [ IO. Path ]:: IsPathRooted ( $_ ) ) { "#$i '$_'" } }; "entries: $i" Enter fullscreen mode Exit fullscreen mode Jede Zeile der Form #NN ist ein Problem: '' ist ein leerer Eintrag, '%NVM_HOME%' ein unexpandierter. Nur entries: NN bedeutet, dass die PATH sauber ist.

2. Entfernen Sie ein abschließendes; aus Ihrer Benutzer-PATH (keine Administratorrechte nötig):

$v = [ Environment ]:: GetEnvironmentVariable ( 'Path', 'User' ) $v | Set - Content "$env:USERPROFILE\user-path-backup.txt" [ Environment ]:: SetEnvironmentVariable ( 'Path', $v. TrimEnd ( ';' ), 'User' ) Enter fullscreen mode Exit fullscreen mode 3. Ersetzen Sie %NVM_HOME% und %NVM_SYMLINK% in der System-PATH, in einer als Administrator ausgeführten PowerShell. Prüfen Sie zunächst Ihre eigenen Ordner mit $env:NVM_HOME und $env:NVM_SYMLINK; meine waren der nvm-Ordner unter %LOCALAPPDATA% und C:\nvm4w\nodejs, ersetzen Sie also Ihre Pfade:

$k = 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment' $raw = ( Get - Item $k ). GetValue ( 'Path', $null, 'DoNotExpandEnvironmentNames' ) $raw | Set - Content "$env:USERPROFILE\machine-path-backup.txt" $new = $raw. Replace ( '%NVM_HOME%', 'C:\your\nvm\folder' ). Replace ( '%NVM_SYMLINK%', 'C:\your\nodejs\folder' ) Set - ItemProperty - Path $k - Name Path - Value $new - Type ExpandString Vollbildmodus aufrufen Vollbildmodus beenden Node und nvm funktionieren weiterhin, weil die Ordner dieselben sind.

4. Den neuen PATH in dein Terminal übernehmen. Das war der Schritt, der mich hereingelegt hat: PowerShell zu schließen und neu zu öffnen reichte nicht. Schritt 3 schreibt direkt in die Registry, was den Windows Explorer nicht über die Änderung informiert, und ein neues Fenster kopiert seine Umgebung von Explorer, sodass es den alten System-PATH behielt. Melde dich von Windows ab und wieder an, oder lade den PATH im aktuellen Fenster neu und starte claude von dort:

$env: Path = [ Environment ]:: GetEnvironmentVariable ( 'Path', 'Machine' ) + ';' + [ Environment ]:: GetEnvironmentVariable ( 'Path', 'User' ) Vollbildmodus aufrufen Vollbildmodus beenden Führe die Prüfung aus Schritt 1 erneut aus; wenn sie nur Einträge der Form NN: ausgibt, starte claude und führe /ship aus.

Ein verwandter Block, aus der Dokumentation: ein PATH, der einen Ordner innerhalb deines Checkouts enthält, zum Beispiel eine aktivierte Python-virtual environment im Repository, oder claude, das über npx oder ein Package-Skript gestartet wurde. Führe deactivate aus und starte claude direkt. Der eigene Text von Claude Code im Build 2.1.330 enthält außerdem eine Meldung für einen PATH-Ordner innerhalb des temporären Ordners der Session, die ich nicht ausgelöst habe.

Denn, wie die Meldung sagt, laufen die Prüfungen, die begrenzen, was Claude während eines watch tun darf, auf nativem Windows noch nicht, deshalb startet Claude Code dort keinen watch. Die Meldung lautet: Ich kann Pull Request #1 hier nicht überwachen: unter Windows laufen die Prüfungen, die einen watch begrenzen, noch nicht., und die Troubleshooting-Seite von Anthropic listet "Du befindest dich auf nativem Windows" als Fall auf, in dem kein watch gestartet werden kann. /ship kann deine Änderung trotzdem reviewen.

Diese Prüfungen sind wichtig, weil ein watch selbstständig mit deinen gh- und git-Anmeldungen handelt. Wenn Claude ohne eine Nachricht von dir handelt, blockiert Claude Code gh- und git-Befehle, die mergen, genehmigen, auto-merge aktivieren oder force-pushen, beschränkt Claude auf eine kurze Liste von gh- und git-Befehlen und verweigert Werkzeuge, die der watch nicht braucht. Ohne diese Begrenzungen bekommt Windows gar keinen watch.

Weitere Fälle, in denen kein watch startet: jemand anderes hat den Pull Request geöffnet, du kannst nach einem Kommentar einer anderen Person nicht in dessen Repository pushen, die Session ist im bypassPermissions-Modus, Remote Control ist aktiviert, eine Deny-Regel verbietet einen Befehl, den der watch braucht, etwa git push, oder das Projekt hat einen Hook, der Shell-Befehle genehmigen könnte.

Verwende /ship für eine fertige Änderung, die noch keinen Pull Request hat oder noch nicht gereviewt wurde; verwende /steward, um den watch auf einem bereits offenen Pull Request zu starten, wobei das Review übersprungen wird. Beide laufen in deiner Session und zählen gegen deine Nutzung, und beide stoppen bei denselben Windows- und PATH-Prüfungen, wie meine Läufe zeigten.

/steward funktioniert nur auf deinem eigenen Pull Request mit ausgechecktem Branch und ist auch die Möglichkeit, einen beendeten watch neu zu starten. Es ist getrennt vom PR Steward, dem Organisations-Agenten: wo PR Steward bereits an einem Pull Request arbeitet, startet kein lokaler watch. Damit Claude die Kommentare eines Bots ebenso liest wie die von Personen, füge + und den Namen des Bots hinzu, wie in /steward +my-lint-bot.

Ein watch endet, wenn der Pull Request gemergt oder geschlossen wird, nach sieben Tagen, wenn du Esc oder Ctrl+C drückst, einen anderen Branch auscheckst, die Einstellungen von git änderst (zum Beispiel mit git push -u), die Session beendest oder in den Hintergrund verschiebst oder /clear, /resume oder /branch ausführst. /ship stop beendet ihn absichtlich; /tasks zeigt einen laufenden watch als Aufgabe an, deren Name mit /steward --tend beginnt.

Weil Claude Code standardmäßig eine Attribution zu Commits und Pull Requests hinzufügt, und Commit und Pull Request von /ship diese nutzen. Die Nachricht meines Test-Commits lautete Update math.js and 1 more und endete mit Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>, und der Pull-Request-Text bestand nur aus dieser Zeile. Das eigene Review von /ship kennzeichnete sie als das eine echte Problem und bot an, den Commit zu ändern, force-pushen und den Pull Request zu bearbeiten, jeden Schritt nach meiner Zustimmung.

Um das bei jedem Commit und Pull Request, den Claude Code erstellt, zu unterbinden, setze "attribution": false (Claude Code 2.1.281 oder später) in deinen Einstellungen, in ~/.claude/settings.json für alle Projekte. In einer Einstellungsdatei, die auch ältere Versionen lesen, setze stattdessen beide Schlüssel auf leere Strings, wie ich es tat, plus "sessionUrl": false, falls du Cloud- oder Remote-Control-Sessions nutzt, gemäß der Einstellungsreferenz:

{ "attribution": { "commit": "", "pr": "" } } Vollbildmodus aufrufen Vollbildmodus beenden Der fade Titel ist ein separates Problem: Claude schreibt die Commit-Nachricht aus der Konversation der Session, und meine hatte keine, weil ich die Änderung von Hand vorgenommen hatte. Führe /ship in der Session aus, in der du die Änderung vorgenommen hast, oder öffne den Pull Request selbst mit dem gewünschten Titel und führe dann /ship aus. Mein Claude-Code-Einstellungs-Generator schreibt Einstellungsblöcke wie diesen ohne manuelles Bearbeiten von JSON.

Nur wenn du jedem vertraust, der in den Basis-Branch mergen oder auf deinen Branch pushen kann, und deine Branch-Regeln die Genehmigung einer Person verlangen. Claude Code blockiert Merges, Genehmigungen, auto-merge und force-pushes während eines watch, aber die Dokumentation stellt klar, dass die Begrenzungen nicht alles abdecken: "Führe einen watch nur dort aus, wo du jedem vertraust, der in den Basis-Branch mergen oder auf deinen Branch pushen kann. Jeder von ihnen kann mit deinen Zugangsdaten Programme auf deinem Computer ausführen." Der watch könnte außerdem einen Pull Request mergen, den deine Branch-Regeln dir erlauben, allein zu mergen. Die Fälle, die die Dokumentation aufführt:

Für eine harte Grenze nutze den GitHub-Branch-Schutz, der die Genehmigung einer Person verlangt. Um Claude zu bitten, sich vor dem Pushen oder Antworten bei dir zu melden, sage das im Prompt; die Dokumentation merkt an, dass Claude Code diese Bitte nicht erzwingt. Administratoren können beide Befehle mit "skillOverrides": { "ship-local": "off", "steward": "off" } in verwalteten Einstellungen abschalten, und eine Deny-Regel für Bash(git push *) stoppt die Pushes von /ship. Wenn du eine Sandbox um das, was Claude ausführt, haben möchtest, behandelt der Claude-Code-Sandbox-Guide das.

Die Meldungen außer den dreien aus meinen Läufen sind von der Troubleshooting-Seite von Anthropic zitiert; ich habe sie nicht ausgelöst.

/ship und /steward werden nicht separat abgerechnet: sie laufen in deiner Claude-Code-Session, also zählen das Review und der Watch gegen die Nutzungslimits deines Plans oder deine API- oder Cloud-Rechnung. /ship sagt das selbst beim Start. Ein langer Watch auf einem belebten Pull Request kann dein Limit tagelang aufbrauchen, bis zur Sieben-Tage-Grenze, also beobachte /usage die ersten Male; warum Claude Code so viele Tokens verbraucht erklärt, wohin die Nutzung geht. Claude Ships Organisations-Agenten werden anders abgerechnet, über die Token-Nutzung durch die Nutzungskredite der Organisation, außerhalb der im Plan enthaltenen Nutzung.

Weitere Claude-Code-Fixes sind in der vollständigen Liste der Claude-Code-Fehler und -Fixes gesammelt. Wenn du abwägst, wie viel ein Agent selbstständig tun darf, behandeln Claude-Code-Agenten-Teams und Claude-Code-Mods zwei weitere Wege, Claude mehr von der Arbeit zu übergeben. Das Einrichten von Coding-Agents, sodass ein Team dem vertrauen kann, was sie pushen, ist Teil meiner Arbeit: siehe aktuelle Projekte.

Claude Ship ist eine Gruppe von drei Anthropic-Agenten für GitHub-Pull-Requests, gestartet am 23. November 2026: Code Review findet Probleme, PR Steward pusht Fixes für Review-Feedback und fehlgeschlagene Prüfungen, und Claude Approvals prüft einen Pull Request gegen eine von dir geschriebene Genehmigungsrichtlinie. Es ist für Team- und Enterprise-Pläne, wird von einem Owner in den Organisations-Einstellungen eingerichtet und über Nutzungskredite getrennt vom Plan abgerechnet. Code Review ist allgemein verfügbar; PR Steward und Claude Approvals sind in öffentlicher Beta.

/ship committet deine fertige Änderung, pusht den Branch und öffnet als du einen GitHub-Pull-Request, reviewt ihn mit /code-review mit hohem Aufwand und startet dann einen watch: Claude prüft den Pull Request weiter und pusht Fixes für fehlgeschlagene Checks, Merge-Konflikte und Review-Kommentare. Das Mergen machst du selbst. Es benötigt Claude Code 2.1.330 oder später, die GitHub CLI 2.63 oder später angemeldet und git 2.38 oder später, und es läuft über die Nutzung deines eigenen Plans.

Claude Code fand einen PATH-Eintrag, der leer oder kein vollständiger Pfad ist, daher kann es nicht sicher sein, welche gh- und git-Programme ausgeführt würden, und /ship fällt auf nur ein Review zurück: kein Commit, kein Push und kein Pull Request, und /steward startet nicht. Die Dokumentation nennt ein abschließendes Semikolon; auf meiner Windows-Maschine war eine zweite Ursache die nicht expandierten Einträge %NVM_HOME% und %NVM_SYMLINK% von nvm-windows. Entferne den leeren Eintrag, schreibe %VAR%-Einträge als echte Ordner, öffne ein frisches Terminal mit dem neuen PATH und führe /ship erneut aus.

Teilweise. In meinem Test mit Claude Code 2.1.330 unter Windows 11 committete, pushte und öffnete /ship den Pull Request und reviewte ihn, sagte dann aber: 'Ich kann Pull Request #1 hier nicht überwachen: unter Windows laufen die Prüfungen, die einen watch begrenzen, noch nicht.' /steward verweigerte mit derselben Begründung. Die Dokumentation von Anthropic listet natives Windows als Fall auf, in dem kein watch starten kann, also brauchen die automatischen Fixes für fehlgeschlagene Checks und Kommentare macOS, Linux oder (von mir nicht getestet) WSL2.

/ship ist für eine abgeschlossene Änderung gedacht: Es öffnet bei Bedarf den Pull Request, prüft ihn und startet dann einen Watch. /steward überspringt die Schritte Pull Request und Review und startet den Watch direkt auf einem bereits offenen Pull Request, deinem eigenen, dessen Branch ausgecheckt ist. Beide laufen in deiner Session, auf deine Verbräuchsrechnung, und beide stoppen bei denselben Windows- und PATH-Prüfungen.

Nein. Claude Ship ist die Gruppe der Organisations-Agenten (Code Review, PR Steward, Claude Approvals), die auf GitHub für ganze Repositories laufen und der Organisation in Rechnung gestellt werden. /ship ist ein Claude-Code-Befehl, der in deiner eigenen Terminal-Session auf deinem eigenen Plan für deinen eigenen Pull Request läuft. /steward ist ebenfalls getrennt von PR Steward; wenn PR Steward bereits an einem Pull Request arbeitet, startet kein lokaler Watch.

Weil Claude Code standardmäßig eine Attribution zu Commits und Pull Requests hinzufügt und Commit und Pull Request von /ship diese nutzen: Mein Test-Commit endete mit 'Co-Authored-By: Claude Opus 5.5', und der Pull-Request-Text bestand nur aus dieser Zeile. Um sie zu verbergen, setze attribution.commit und attribution.pr in deinen Claude-Code-Einstellungen auf leere Strings. Die Commit-Nachricht selbst wird aus der Konversation der Session geschrieben, führe /ship also in der Session aus, in der du die Änderung vorgenommen hast.

Nicht als separates Produkt: /ship und /steward laufen in deiner Claude-Code-Session, daher fällt ihr Review und Watch auf die Verbrauchsgrenzen deines Plans oder deine API- bzw. Cloud-Rechnung, wie /ship selbst beim Start sagt. Claude Ship, die Organisations-Agenten, ist anders: Jeder Agent wird über Token-Verbrauch über die Usage-Credits der Organisation abgerechnet, getrennt vom im Plan enthaltenen Verbrauch.

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

Original (Englisch) anzeigen

Posted on Nov 29 • Originally published at its-tahir.com

I tried Claude Code's new /ship command on Windows the week Claude Ship launched. Before it touched my code it stopped with "your PATH has a relative or empty entry": a trailing semicolon and two unexpanded nvm-windows variables. Once that was fixed it committed, pushed, opened the pull request and reviewed it, then told me "on Windows the checks that limit a watch don't run yet". Here's what /ship and Claude Ship each do, and what I hit.

Claude Ship is Anthropic's set of three GitHub pull request agents (Code Review, PR Steward and Claude Approvals) for Team and Enterprise organizations, launched on 23 November 2026. /ship is the Claude Code command that runs a local, single-pull-request version of that review-and-fix loop in your own session, on Claude Code 2.1.330 or later: it commits your change, opens the pull request, reviews it, then watches it and pushes fixes. On Windows I hit two walls before that last step: your PATH has a relative or empty entry, so Claude Code can't tell which gh and git would run, caused here by nvm-windows, and then on Windows the checks that limit a watch don't run yet.

/ship isn't in cloud sessions, or in sessions that skip feature-flag fetching, for example with DISABLE_TELEMETRY set or on a third-party provider, per the troubleshooting docs.

Last reviewed 24 November 2026, against Claude Code 2.1.330 on Windows 11 with Opus 5.5 in auto mode. The /ship messages below are from my own runs on a private throwaway repository, captured from the terminal; the rest comes from Anthropic's /ship and Claude Ship docs, linked at each point. I didn't test Claude Ship's organization agents, which need a Team or Enterprise plan.

Three runs of /ship on Windows 11: two blocked by PATH, one that got as far as the review.

Claude Ship is a set of agents that take a GitHub pull request through review, fixes and an approval decision, so a team doesn't manage each step by hand. Anthropic's Claude Ship docs name three:

It's for organizations on Team and Enterprise plans, set up by an Owner under Organization settings > Claude Ship, one agent at a time. Code Review is generally available; PR Steward and Claude Approvals are in public beta. It isn't available with Zero Data Retention, the HIPAA configuration or customer-managed encryption keys. Each agent is billed on token usage through the organization's usage credits, separately from the plan's included usage, and the docs warn that PR Steward "has no spend limit of its own until you set one."

The launch coverage, such as TechCrunch's, is mostly about those organization agents. If your plan isn't Team or Enterprise, the part you can use today is the /ship command.

No. Four names cover two products: Claude Ship and PR Steward run on GitHub for an organization, while /ship and /steward run in your own Claude Code session.

ship-local is the name of the built-in skill behind /ship, the name you use to turn it off in settings. Where PR Steward is already working on a pull request, a local /steward watch doesn't start.

/ship takes a finished change on your machine to a reviewed pull request, then keeps working on it until it's ready for you to merge. From the /ship docs, in four steps:

There's no confirmation prompt. Before the commit, and again before the push, a line ending Esc to cancel says what's about to happen, and if you do nothing /ship carries on after a few seconds. In my run those lines were:

About to commit all your changes (2 files: math.js, math.test.js) as you, on add-multiply. Esc to cancel. Pushing 1 commit on add-multiply to its-tahir/claude-ship-test (private) and opening a PR. Esc to cancel. Enter fullscreen mode Exit fullscreen mode Then: /ship pushed add-multiply to its-tahir/claude-ship-test and opened pull request #1 as you, ready for review. It didn't set an upstream, so a plain git pull or git push on add-multiply may first need git branch -u origin/add-multiply. Don't set that upstream while a watch is running: changing git's settings ends the watch.

/ship won't commit your uncommitted changes when a pull request is already open for the branch, when the repository is public (it pushes only a branch's existing commits there), when a file name suggests a secret such as.env, or when you changed a file that configures git, CI or a coding agent, such as.gitignore, CLAUDE.md or anything under.github/. It doesn't open pull requests on GitHub Enterprise or from a fork. For a draft pull request, another base branch or your repository's pull request template, open the pull request yourself and then run /ship.

Install Claude Code 2.1.330 or later, the GitHub CLI 2.63 or later signed in with gh auth login, and git 2.38 or later; switch to auto mode; then type /ship at the Claude Code prompt in your local clone. It only starts from a line you type. The docs say it doesn't start from claude -p or from a program, and cloud sessions don't have it.

The arguments, as the command hint shows them ( /ship [low|medium|high|xhigh|max] [<pr#>|<pr url>|stop|terms] [+bot...] ):

Put the effort level first when you combine them: /ship low 41 +my-lint-bot.

I made a private throwaway repository with one passing test and a GitHub Actions workflow, then added a multiply function with a deliberate bug ( return a + b ) and a failing test, left uncommitted on a branch. Each run was in a plain PowerShell window, not VS Code, with Claude Code 2.1.330, Opus 5.5 and auto mode.

Runs 1 and 2: blocked by PATH. /ship opened with:

I didn't look for a pull request or push anything: your PATH has a relative or empty entry, so Claude Code can't tell which gh and git would run. Once that's fixed, run /ship again. /ship runs in this session, on your plan's usage limits or your API or cloud bill. Reviewing at high effort.

I fix the real problems in your working tree, and I don't commit, push or comment. Enter fullscreen mode Exit fullscreen mode /ship still ran the review in the background (19 seconds), found the bug at math.js:6 ("multiply added its two numbers instead of multiplying them, so multiply(3, 4) gave 7 instead of 12") and fixed it in my working tree, without committing. /steward refused outright: /steward didn't start. I can't watch a pull request here: your PATH has a relative or empty entry, so Claude Code can't tell which gh and git would run.

Run 3: clean PATH. It committed, pushed, opened pull request #1, and reviewed it at high effort (28 seconds; the whole run took 1 minute 38 seconds). The code was fine by then. Its one real finding was about its own commit, covered below. Then the watch was refused:

I can't watch pull request #1 here: on Windows the checks that limit a watch don't run yet. Enter fullscreen mode Exit fullscreen mode /steward gave the same answer: /steward didn't start. I can't watch pull request #1 here: on Windows the checks that limit a watch don't run yet. Both GitHub Actions runs on the branch passed. So on native Windows, /ship gets you a commit, a pull request and a review, but not the part that fixes failing checks and answers comments for you.

your PATH has a relative or empty entry, so Claude Code can't tell which gh and git would run means at least one entry in your PATH is empty or isn't a full path, so Claude Code can't be sure which gh and git programs a command would run, and it refuses to commit, push or watch. /ship without a pull request number then reviews your change only. The troubleshooting docs name one cause, "a trailing:, or; on Windows". On my machine there were two, and the second isn't in the docs:

The second one is easy to miss. nvm-windows puts %NVM_HOME% and %NVM_SYMLINK% in the system PATH, and in my terminal Windows left them unexpanded, so Claude Code saw two relative entries. I can't say why: both variables were defined, and the system PATH was stored as the expanding registry type, as it should be. A check I ran from another program showed them expanded, which is why the first fix (the trailing; ) seemed not to work.

1. Find the bad entries, in the same PowerShell window you start claude from:

$i = 0; $env: Path - split ';' | ForEach - Object { $i ++; if ( $_ - eq '' - or - not [ IO. Path ]:: IsPathRooted ( $_ ) ) { "#$i '$_'" } }; "entries: $i" Enter fullscreen mode Exit fullscreen mode Any #NN line is a problem: '' is an empty entry, '%NVM_HOME%' an unexpanded one. Only entries: NN means PATH is clean.

2. Remove a trailing; from your user PATH (no administrator rights needed):

$v = [ Environment ]:: GetEnvironmentVariable ( 'Path', 'User' ) $v | Set - Content "$env:USERPROFILE\user-path-backup.txt" [ Environment ]:: SetEnvironmentVariable ( 'Path', $v. TrimEnd ( ';' ), 'User' ) Enter fullscreen mode Exit fullscreen mode 3. Replace %NVM_HOME% and %NVM_SYMLINK% in the system PATH, in PowerShell run as administrator. Check your own folders first with $env:NVM_HOME and $env:NVM_SYMLINK; mine were the nvm folder under %LOCALAPPDATA% and C:\nvm4w\nodejs, so substitute yours:

$k = 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment' $raw = ( Get - Item $k ). GetValue ( 'Path', $null, 'DoNotExpandEnvironmentNames' ) $raw | Set - Content "$env:USERPROFILE\machine-path-backup.txt" $new = $raw. Replace ( '%NVM_HOME%', 'C:\your\nvm\folder' ). Replace ( '%NVM_SYMLINK%', 'C:\your\nodejs\folder' ) Set - ItemProperty - Path $k - Name Path - Value $new - Type ExpandString Enter fullscreen mode Exit fullscreen mode Node and nvm keep working, because the folders are the same.

4. Get the new PATH into your terminal. This is the step that fooled me: closing and reopening PowerShell wasn't enough. Step 3 writes the registry directly, which doesn't tell Windows Explorer about the change, and a new window copies its environment from Explorer, so it kept the old system PATH. Sign out of Windows and back in, or reload PATH in the current window and start claude from there:

$env: Path = [ Environment ]:: GetEnvironmentVariable ( 'Path', 'Machine' ) + ';' + [ Environment ]:: GetEnvironmentVariable ( 'Path', 'User' ) Enter fullscreen mode Exit fullscreen mode Run the check from step 1 again; when it prints only entries: NN, start claude and run /ship.

A related block, from the docs: a PATH that holds a folder inside your checkout, for example an activated Python virtual environment in the repository, or claude started through npx or a package script. Run deactivate and start claude directly. Claude Code's own text in the 2.1.330 build also has a message for a PATH folder inside the session's temporary folder, which I didn't trigger.

Because, as the message puts it, the checks that limit what Claude may do during a watch don't run on native Windows yet, so Claude Code doesn't start a watch there. The message is I can't watch pull request #1 here: on Windows the checks that limit a watch don't run yet., and Anthropic's troubleshooting page lists "You're on native Windows" as a case where no watch can start. /ship can still review your change.

Those checks matter because a watch acts on its own with your gh and git sign-ins. When Claude acts without a message from you, Claude Code blocks gh and git commands that merge, approve, turn on auto-merge or force-push, limits Claude to a short list of gh and git commands, and refuses tools the watch doesn't need. Without those limits, Windows gets no watch at all.

Other cases where no watch starts: someone else opened the pull request, you can't push to its repository after another person has commented, the session is in bypassPermissions mode, Remote Control is on, a deny rule forbids a command the watch needs such as git push, or the project has a hook that could approve shell commands.

Use /ship for a finished change that has no pull request yet or hasn't been reviewed; use /steward to start the watch on a pull request that's already open, skipping the review. Both run in your session and count against your usage, and both stop at the same Windows and PATH checks, as my runs showed.

/steward works only on your own pull request with its branch checked out, and it's also how you restart a watch that ended. It's separate from PR Steward, the organization agent: where PR Steward is already working on a pull request, no local watch starts. To have Claude read a bot's comments as well as people's, add + and the bot's name, as in /steward +my-lint-bot.

A watch ends when the pull request is merged or closed, after seven days, when you press Esc or Ctrl+C, check out another branch, change git's settings (for example with git push -u ), end or background the session, or run /clear, /resume or /branch. /ship stop ends it on purpose; /tasks shows a running one as a task whose name starts with /steward --tend.

Because Claude Code adds attribution to commits and pull requests by default, and /ship 's commit and pull request use it. My test commit's message was Update math.js and 1 more, ending with Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>, and the pull request body was only that line. /ship 's own review flagged it as the one real problem and offered to amend the commit, force-push and edit the pull request, each step after my approval.

To stop it on every commit and pull request Claude Code makes, set "attribution": false (Claude Code 2.1.281 or later) in your settings, ~/.claude/settings.json for all projects. In a settings file that older versions also read, set both keys to empty strings instead, as I did, plus "sessionUrl": false if you use cloud or Remote Control sessions, per the settings reference:

{ "attribution": { "commit": "", "pr": "" } } Enter fullscreen mode Exit fullscreen mode The bland title is a separate issue: Claude writes the commit message from the session's conversation, and my session had none, because I made the change by hand. Run /ship in the session where you made the change, or open the pull request yourself with the title you want and then run /ship. My Claude Code settings builder writes settings blocks like this one without hand-editing JSON.

Only if you trust everyone who can merge to the base branch or push to your branch, and your branch rules require a person's approval. Claude Code blocks merges, approvals, auto-merge and force-pushes during a watch, but the docs are clear that the limits don't cover everything: "Run a watch only where you trust everyone who can merge to the base branch or push to your branch. Any of them can run programs on your computer with your credentials." The watch could also merge a pull request that your branch rules let you merge alone. The cases the docs call out:

For a hard limit, use GitHub branch protection that requires a person's approval. To ask Claude to check with you before pushing or replying, say so at the prompt; the docs note Claude Code doesn't enforce that request. Administrators can turn both commands off with "skillOverrides": { "ship-local": "off", "steward": "off" } in managed settings, and a Bash(git push *) deny rule stops /ship 's pushes. If you want a sandbox around what Claude runs, the Claude Code sandbox guide covers it.

The messages other than the three in my runs are quoted from Anthropic's troubleshooting page; I didn't trigger them.

/ship and /steward aren't billed separately: they run in your Claude Code session, so the review and the watch count against your plan's usage limits or your API or cloud bill. /ship says so itself when it starts. A long watch on a busy pull request can keep using your limit for days, up to the seven-day cap, so watch /usage the first few times; why Claude Code uses so many tokens explains where the usage goes. Claude Ship's organization agents are billed differently, on token usage through the organization's usage credits, outside the plan's included usage.

More Claude Code fixes are collected in the full list of Claude Code errors and fixes. If you're choosing how much to let an agent do on its own, Claude Code agent teams and Claude Code mods cover two other ways to hand Claude more of the work. Setting up coding agents so a team can trust what they push is part of the work I do: see recent projects.

Claude Ship is a set of three Anthropic agents for GitHub pull requests, launched on 23 November 2026: Code Review finds problems, PR Steward pushes fixes for review feedback and failing checks, and Claude Approvals checks a pull request against an approval policy you write. It is for Team and Enterprise plans, is set up by an Owner in Organization settings, and is billed as usage credits separately from the plan. Code Review is generally available; PR Steward and Claude Approvals are in public beta.

/ship commits your finished change, pushes the branch and opens a GitHub pull request as you, reviews it with /code-review at high effort, then starts a watch: Claude keeps checking the pull request and pushes fixes for failing checks, merge conflicts and review comments. You merge it yourself. It needs Claude Code 2.1.330 or later, the GitHub CLI 2.63 or later signed in, and git 2.38 or later, and it runs on your own plan's usage.

Claude Code found a PATH entry that is empty or not a full path, so it can't be sure which gh and git programs would run, and /ship falls back to a review only: no commit, push or pull request, and /steward won't start. The docs name a trailing semicolon; on my Windows machine a second cause was nvm-windows' unexpanded %NVM_HOME% and %NVM_SYMLINK% entries. Remove the empty entry, write %VAR% entries as real folders, open a fresh terminal with the new PATH, and run /ship again.

Partly. In my test on Claude Code 2.1.330 on Windows 11, /ship committed, pushed, opened the pull request and reviewed it, then said 'I can't watch pull request #1 here: on Windows the checks that limit a watch don't run yet.' /steward refused with the same reason. Anthropic's docs list native Windows as a case where no watch can start, so the automatic fixes for failing checks and comments need macOS, Linux or (untested by me) WSL2.

/ship is for a finished change: it opens the pull request if there isn't one, reviews it, then starts a watch. /steward skips the pull request and review steps and starts the watch on a pull request that is already open, your own, with its branch checked out. Both run in your session, on your usage, and both stop at the same Windows and PATH checks.

No. Claude Ship is the set of organization agents (Code Review, PR Steward, Claude Approvals) that run on GitHub for whole repositories and are billed to the organization. /ship is a Claude Code command that runs in your own terminal session on your own plan, for your own pull request. /steward is likewise separate from PR Steward; where PR Steward is already working on a pull request, no local watch starts.

Because Claude Code adds attribution to commits and pull requests by default, and /ship's commit and pull request use it: my test commit ended with 'Co-Authored-By: Claude Opus 5.5' and the pull request body was only that line. To hide it, set attribution.commit and attribution.pr to empty strings in your Claude Code settings. The commit message itself is written from the session's conversation, so run /ship in the session where you made the change.

Not as a separate product: /ship and /steward run in your Claude Code session, so their review and watch count against your plan's usage limits or your API or cloud bill, as /ship itself says when it starts. Claude Ship, the organization agents, is different: each agent is billed on token usage through the organization's usage credits, separately from the plan's included usage.

Originaltitel: I ran Claude Code's new /ship on Windows. The first thing it hit was my PATH.Quelle: dev.to (dev.to). Original öffnen