Artikelerreichbar
Anthropic, Claude Code: Best practices for agentic coding (Archivfassung)
web.archive.org (externe Seite)
Anthropics erster Beitrag mit Empfehlungen für Claude Code, erschienen am 18.04.2025 im Blog Engineering at Anthropic, hier in der Archivfassung vom 20.04.2025. Er nennt testgetriebene Entwicklung einen bevorzugten Ablauf für Änderungen, die sich mit Tests leicht prüfen lassen: Tests aus Paaren von Eingabe und Ausgabe schreiben, rot laufen lassen und committen, danach Code schreiben, bis alle Tests bestehen, ohne die Tests zu ändern. Unabhängige Subagents sollen dabei prüfen, ob sich die Umsetzung an die Tests überanpasst. Die alte Adresse leitet heute auf die Seite mit den Empfehlungen in der Doku um, die den Namen testgetriebene Entwicklung nicht mehr verwendet.
geprüft 10.11.2026
Worauf sich diese Seite beruft, wörtlich, abgerufen am 12.10.2026:
This is an Anthropic-favorite workflow for changes that are easily verifiable with unit, integration, or end-to-end tests.
bestätigt 10.11.2026Test-driven development (TDD) becomes even more powerful with agentic coding
bestätigt 10.11.2026Tell Claude to run the tests and confirm they fail
bestätigt 10.11.2026it can help to ask it to verify with independent subagents that the implementation isn’t overfitting to the tests
bestätigt 10.11.2026Claude performs best when it has a clear target to iterate against
bestätigt 10.11.2026Explicitly telling it not to write any implementation code at this stage is often helpful.
bestätigt 10.11.2026A simple but effective approach is to have one Claude write code while another reviews or tests it.
bestätigt 10.11.2026have one Claude write tests, then have another Claude write code to make the tests pass
bestätigt 10.11.2026