Back to PodcastsClaude
Claude Code 101
How Claude Code Works
We know that Claude code is different from usual chat applications, but how does it work?
Wir wissen, dass Claude Code sich von normalen Chat-Anwendungen unterscheidet, aber wie funktioniert es?
Claude code is best explained through the agentic loop.
Claude Code lässt sich am besten durch die agentische Schleife erklären.
You enter a prompt into Claude code.
Sie geben einen Prompt in Claude Code ein.
Claude code will then gather contacts required to complete your prompt.
Claude Code sammelt dann den Kontext, der zum Abschluss Ihres Prompts erforderlich ist.
It does so by interacting with the model which will return text or a tool call that Claude code can execute.
Dies geschieht durch Interaktion mit dem Modell, das Text oder einen Tool-Aufruf zurückgibt, den Claude Code ausführen kann.
Then it takes action.
Dann handelt es.
For example, editing a file or running a command.
Zum Beispiel eine Datei bearbeiten oder einen Befehl ausführen.
Finally, it verifies those results and determines if they achieve what your prompt set out to do in the first place.
Schließlich überprüft es diese Ergebnisse und stellt fest, ob sie das erreichen, was Ihr Prompt ursprünglich beabsichtigt hat.
If they do, then Claude finishes and waits for the next prompt.
Wenn ja, beendet Claude und wartet auf den nächsten Prompt.
And if they don't, Claude goes back and runs the loop again until the results are complete and verifiable.
Und wenn nicht, kehrt Claude zurück und führt die Schleife erneut aus, bis die Ergebnisse vollständig und überprüfbar sind.
Throughout this loop, you're able to add contacts, interrupt it, or steer the model to help guide it towards your end goal.
Während dieser Schleife können Sie Kontext hinzufügen, sie unterbrechen oder das Modell steuern, um es auf Ihr Endziel hinzuführen.
Claude has a context window, which determines how much of your conversation, file contents, command outputs, and more it can store and look back on.
Claude hat ein Kontextfenster, das bestimmt, wie viel von Ihrem Gespräch, Dateiinhalten, Befehlsausgaben und mehr es speichern und zurückverfolgen kann.
Once you reach that limit, Claude code compacts your conversation, which automatically determines what it can take out of the context window and what it can summarize in order to bring the context window back down.
Sobald Sie dieses Limit erreichen, komprimiert Claude Code Ihr Gespräch und bestimmt automatisch, was aus dem Kontextfenster entfernt und was zusammengefasst werden kann, um das Kontextfenster zu verkleinern.
Tools are the backbone of how agents work.
Tools sind das Rückgrat der Funktionsweise von Agents.
Currently, most AI assistants are simply input text and output text.
Derzeit nehmen die meisten KI-Assistenten einfach Text als Eingabe entgegen und geben Text als Ausgabe aus.
Nothing in between.
Nichts dazwischen.
Tools let Claude code and other agents determine when to execute code to get closer to a task.
Tools ermöglichen es Claude Code und anderen Agents zu bestimmen, wann Code ausgeführt werden soll, um einer Aufgabe näher zu kommen.
This could be read file tool or search web tool, for example.
Das könnte zum Beispiel ein Datei-Lese-Tool oder ein Web-Such-Tool sein.
Claude code uses semantic searching to determine when to call a tool and get the output of it.
Claude Code verwendet semantische Suche, um zu bestimmen, wann ein Tool aufgerufen und dessen Ausgabe abgerufen werden soll.
Claude code also has permission modes.
Claude Code hat auch Berechtigungsmodi.
Default behavior is that it has to ask explicit permission before editing a file or running a shell command.
Das Standardverhalten ist, dass es explizite Erlaubnis einholen muss, bevor es eine Datei bearbeitet oder einen Shell-Befehl ausführt.
You can use shift and tab to toggle between different modes.
Sie können Shift und Tab verwenden, um zwischen verschiedenen Modi zu wechseln.
Auto accept edits files without asking, but still ask for commands.
Automatisches Akzeptieren bearbeitet Dateien ohne Nachfrage, fragt aber weiterhin bei Befehlen nach.
Plan mode uses read-only tools to help compile a plan of action before starting.
Der Planmodus verwendet Nur-Lese-Tools, um einen Aktionsplan zu erstellen, bevor begonnen wird.
It's worth being cautious when skipping permissions.
Es lohnt sich, beim Überspringen von Berechtigungen vorsichtig zu sein.
Giving Claude code free reign to run commands means a mistake could be harder to catch before even happens.
Claude Code freie Hand beim Ausführen von Befehlen zu geben bedeutet, dass ein Fehler schwerer zu erkennen sein könnte, bevor er passiert.
Claude code works by combining different agentic concepts, an agentic loop, a managed context window, tools, and configurable permissions into your terminal.
Claude Code funktioniert, indem es verschiedene agentische Konzepte in Ihr Terminal kombiniert: eine agentische Schleife, ein verwaltetes Kontextfenster, Tools und konfigurierbare Berechtigungen.
It can read your code base, take action, and verify its own work, and that makes it fundamentally different from a chat window.
Es kann Ihre Codebasis lesen, handeln und seine eigene Arbeit überprüfen, was es grundlegend von einem Chat-Fenster unterscheidet.