팟캐스트로 돌아가기Claude
Claude Code 101
How Claude Code Works
We know that Claude code is different from usual chat applications, but how does it work?
Claude Code가 일반 채팅 애플리케이션과 다르다는 것은 알지만, 어떻게 작동하는 걸까요?
Claude code is best explained through the agentic loop.
Claude Code는 agentic 루프를 통해 가장 잘 설명됩니다.
You enter a prompt into Claude code.
Claude Code에 프롬프트를 입력합니다.
Claude code will then gather contacts required to complete your prompt.
Claude Code는 프롬프트를 완료하는 데 필요한 컨텍스트를 수집합니다.
It does so by interacting with the model which will return text or a tool call that Claude code can execute.
이것은 모델과 상호작용하여 이루어지며, 모델은 텍스트 또는 Claude Code가 실행할 수 있는 도구 호출을 반환합니다.
Then it takes action.
그런 다음 행동을 취합니다.
For example, editing a file or running a command.
예를 들어, 파일을 편집하거나 명령을 실행합니다.
Finally, it verifies those results and determines if they achieve what your prompt set out to do in the first place.
마지막으로, 해당 결과를 검증하고 프롬프트가 처음에 목표로 했던 것을 달성했는지 판단합니다.
If they do, then Claude finishes and waits for the next prompt.
달성했다면 Claude는 완료하고 다음 프롬프트를 기다립니다.
And if they don't, Claude goes back and runs the loop again until the results are complete and verifiable.
달성하지 못했다면 Claude는 돌아가서 결과가 완전하고 검증 가능해질 때까지 루프를 다시 실행합니다.
Throughout this loop, you're able to add contacts, interrupt it, or steer the model to help guide it towards your end goal.
이 루프 전체에서 컨텍스트를 추가하거나, 중단하거나, 모델을 조종하여 최종 목표를 향해 이끌 수 있습니다.
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에는 컨텍스트 창이 있으며, 대화, 파일 내용, 명령 출력 등을 얼마나 저장하고 되돌아볼 수 있는지를 결정합니다.
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.
그 한도에 도달하면 Claude Code는 대화를 압축하여 컨텍스트 창에서 무엇을 제거할 수 있는지, 컨텍스트 창을 줄이기 위해 무엇을 요약할 수 있는지 자동으로 결정합니다.
Tools are the backbone of how agents work.
도구는 에이전트 작동 방식의 핵심입니다.
Currently, most AI assistants are simply input text and output text.
현재 대부분의 AI 어시스턴트는 단순히 텍스트를 입력받아 텍스트를 출력합니다.
Nothing in between.
그 사이에는 아무것도 없습니다.
Tools let Claude code and other agents determine when to execute code to get closer to a task.
도구를 통해 Claude Code와 다른 에이전트는 작업에 더 가까워지기 위해 코드를 언제 실행할지 결정할 수 있습니다.
This could be read file tool or search web tool, for example.
예를 들어, 파일 읽기 도구나 웹 검색 도구일 수 있습니다.
Claude code uses semantic searching to determine when to call a tool and get the output of it.
Claude Code는 시맨틱 검색을 사용하여 도구를 언제 호출하고 그 출력을 가져올지 결정합니다.
Claude code also has permission modes.
Claude Code에는 권한 모드도 있습니다.
Default behavior is that it has to ask explicit permission before editing a file or running a shell command.
기본 동작은 파일을 편집하거나 쉘 명령을 실행하기 전에 명시적인 권한을 요청해야 합니다.
You can use shift and tab to toggle between different modes.
Shift와 Tab을 사용하여 다양한 모드 간에 전환할 수 있습니다.
Auto accept edits files without asking, but still ask for commands.
자동 수락은 묻지 않고 파일을 편집하지만 명령에 대해서는 여전히 묻습니다.
Plan mode uses read-only tools to help compile a plan of action before starting.
계획 모드는 읽기 전용 도구를 사용하여 시작 전에 행동 계획을 수립하는 데 도움을 줍니다.
It's worth being cautious when skipping permissions.
권한을 건너뛸 때는 주의하는 것이 좋습니다.
Giving Claude code free reign to run commands means a mistake could be harder to catch before even happens.
Claude Code에게 명령을 자유롭게 실행할 수 있도록 하면 실수가 발생하기 전에 잡기가 더 어려울 수 있습니다.
Claude code works by combining different agentic concepts, an agentic loop, a managed context window, tools, and configurable permissions into your terminal.
Claude Code는 agentic 루프, 관리되는 컨텍스트 창, 도구, 설정 가능한 권한 등 다양한 agentic 개념을 터미널에 결합하여 작동합니다.
It can read your code base, take action, and verify its own work, and that makes it fundamentally different from a chat window.
코드베이스를 읽고, 행동을 취하고, 자신의 작업을 검증할 수 있어 채팅 창과는 근본적으로 다릅니다.