NachschlagenQuellenregister

Dokumentationerreichbar

Anthropic, Keep Claude working toward a goal

code.claude.com (externe Seite)

Die Dokumentation zur Zielbedingung, der zweiten der vier Härtestufen. Daran hängt ein Ratschlag zur Formulierung: Der Bewerter urteilt allein über das, was in der Unterhaltung steht, ohne selbst Befehle auszuführen oder Dateien zu lesen. Als Beispiel für eine Nebenbedingung nennt die Seite ausgerechnet den Fall, um den es beim testgetriebenen Arbeiten geht, nämlich dass keine weitere Testdatei angefasst wird.

geprüft 07.11.2026

Worauf sich diese Seite beruft, wörtlich, abgerufen am 28.08.2026:

  • no other test file is modifiedbestätigt 07.11.2026
  • It doesn't run commands or read files independently, so write the condition as something Claude's own output can demonstrate.bestätigt 07.11.2026
  • If the model judges it not yet met, Claude starts another turn instead of returning control to you.bestätigt 07.11.2026
  • A goal doesn't change your permission mode.bestätigt 07.11.2026
  • One goal can be active per session.bestätigt 07.11.2026
  • Setting a goal starts a turn immediately, with the condition itself as the directive.bestätigt 07.11.2026
  • To bound how long a goal runs, include a turn or time clause in the conditionbestätigt 07.11.2026
  • the evaluator judged that the condition can never be satisfiedbestätigt 07.11.2026
  • Four kinds of failure clear the goalbestätigt 07.11.2026
  • After any other failure the goal stays set.bestätigt 07.11.2026
  • After three automatic retries, the goal pauses instead.bestätigt 07.11.2026
  • Once background work has kept the goal waiting for 30 minutes, a check-in is due.bestätigt 07.11.2026
  • Claude Code starts at most three idle check-ins per goal between your prompts.bestätigt 07.11.2026
  • Claude Code carries the condition over but resets the turn count, timer, and token-spend baseline.bestätigt 07.11.2026
  • Setting a goal with -p runs the loop to completion in a single invocationbestätigt 07.11.2026
  • is a wrapper around a session-scoped prompt-based Stop hookbestätigt 07.11.2026
  • Evaluation tokens are billed on the small fast model configured for your provider and are typically negligible compared to main-turn spend.bestätigt 07.11.2026
  • /goal and a Stop hook both fire after every turn.bestätigt 07.11.2026
  • The two are complementary: auto mode removes per-tool prompts, and /goal removes per-turn prompts.bestätigt 07.11.2026
  • The same command sets, checks, and clears it depending on the argument.bestätigt 07.11.2026
  • Claude Code leaves the goal active because the host restores access on its ownbestätigt 07.11.2026
  • Implementing a design doc until all acceptance criteria holdbestätigt 07.11.2026
  • One measurable end statebestätigt 07.11.2026
  • The condition can be up to 4,000 characters.bestätigt 07.11.2026
  • you can press Ctrl+O to see the reason behind itbestätigt 07.11.2026
  • A Stop hook lives in your settings file, applies to every session in its scope, and can run a script for deterministic checks or a prompt for model-evaluated ones.bestätigt 07.11.2026
  • so completion is decided by a fresh model rather than the one doing the workbestätigt 07.11.2026

Erst der rote Test07 Prüfen statt glauben18 Hooks und Mods24 Test und Spezifikation zuerst28 Lange Läufe

Alle Quellen

↑↓ auswählenEnter öffnenDie Suche läuft im Browser. Nichts wird übertragen.