NachschlagenQuellenregister

Dokumentationerreichbar

Anthropic, Best practices for Claude Code

code.claude.com (externe Seite)

Die Sammlung der Muster, die sich bei Anthropic intern und bei Anwendern bewährt haben. Der erste Abschnitt der Seite ist zugleich ihre stärkste Aussage: Ein Agent braucht eine Prüfung, die er selbst fahren kann, sonst ist der Mensch die Prüfschleife und jeder Fehler wartet darauf, bemerkt zu werden. Die Seite nennt vier Stufen, wie hart die Prüfung das Ende einer Runde blockiert, vom Satz im Auftrag über eine Zielbedingung und einen Stop-Hook bis zum zweiten Modell, das den eigenen Befund zu widerlegen versucht. Sie ist außerdem die Quelle für den Unterschied zwischen einer Projektanweisung und einem Hook: Die eine ist beratend, der andere läuft.

geprüft 24.09.2026

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

  • Give Claude a check it can run: tests, a build, a screenshot to compare.bestätigt 24.09.2026
  • you become the verification loop: every mistake waits for you to notice itbestätigt 24.09.2026
  • The check is anything that returns a signal Claude can read in the conversation: a test suite, a build exit code, a linter, a script that diffs output against a fixture, or a browser screenshot compared against a design.bestätigt 24.09.2026
  • a fresh model try to refute the result, so the agent doing the work isn't the one grading itbestätigt 24.09.2026
  • Have Claude show evidence rather than asserting successbestätigt 24.09.2026
  • Unlike CLAUDE.md instructions which are advisory, hooks are deterministic and guarantee the action happens.bestätigt 24.09.2026
  • A reviewer running in a fresh subagent context sees only the diff and the criteria you give it, not the reasoning that produced the changebestätigt 24.09.2026
  • Claude Code overrides the hook and ends the turn after 8 consecutive blocks.bestätigt 24.09.2026
  • Claude produces a plausible-looking implementation that doesn't handle edge cases.bestätigt 24.09.2026
  • If you can't verify it, don't ship it.bestätigt 24.09.2026
  • write a failing test that reproduces the issue, then fix itbestätigt 24.09.2026
  • You can do something similar with tests: have one Claude write tests, then another write code to pass them.bestätigt 24.09.2026
  • Testing instructions and preferred test runnersbestätigt 24.09.2026
  • If you could describe the diff in one sentence, skip the plan.bestätigt 24.09.2026

ADR und Spezifikation: wie viel Papier ein Agent brauchtErst der rote Test07 Prüfen statt glauben08 Hooks und Skills09 Subagenten und Schleifen

Alle Quellen

Tippen Sie los.

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